GPU

Issues encountered during compilation of stripped GPU version of BornAgain:
  • /usr/include/fftw3.h(371): error: identifier "__float128" is undefined: add CUDACC variable detection in fftw3.h:
    /* __float128 (quad precision) is a gcc extension on i386, x86_64, and ia64     
       for gcc >= 4.6 (compiled in FFTW with --enable-quad-precision) */
    #if (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 6)) \
     && !(defined(__ICC) || defined(__INTEL_COMPILER) || defined(__CUDACC__)) \
     && (defined(__i386__) || defined(__x86_64__) || defined(__ia64__))
    
  • Issue with boost 1.53: use fix of https://svn.boost.org/trac/boost/changeset/83012
  • Make sure both gcc and g++ refer to the same version (preferably 4.6, as higher versions are in principle not supported by nvcc)