Ticket #8647: nvcc.hpp.johnmaddock.patch

File nvcc.hpp.johnmaddock.patch, 1.6 KB (added by ryo-nishimura@…, 9 years ago)
  • boost/config/compiler/nvcc.hpp

     
    1414// NVIDIA Specific support
    1515// BOOST_GPU_ENABLED : Flag a function or a method as being enabled on the host and device
    1616#define BOOST_GPU_ENABLED __host__ __device__
    17 
    18 // Boost support macro for NVCC
    19 // NVCC Basically behaves like some flavor of MSVC6 + some specific quirks
    20 #ifdef __GNUC__
    21 
    22 #include <boost/config/compiler/gcc.hpp>
    23 
    24 #elif defined(_MSC_VER)
    25 
    26 #include <boost/config/compiler/visualc.hpp>
    27 
    28 #endif
  • boost/config/select_compiler_config.hpp

     
    1313// locate which compiler we are using and define
    1414// BOOST_COMPILER_CONFIG as needed:
    1515
     16#if defined __CUDACC__
     17//  NVIDIA CUDA C++ compiler for GPU
     18#   include "boost/config/compiler/nvcc.hpp"
     19
     20#endif
     21
    1622#if defined(__GCCXML__)
    1723// GCC-XML emulates other compilers, it has to appear first here!
    1824#   define BOOST_COMPILER_CONFIG "boost/config/compiler/gcc_xml.hpp"
     
    2127// EDG based Cray compiler:
    2228#   define BOOST_COMPILER_CONFIG "boost/config/compiler/cray.hpp"
    2329
    24 #elif defined __CUDACC__
    25 //  NVIDIA CUDA C++ compiler for GPU
    26 #   define BOOST_COMPILER_CONFIG "boost/config/compiler/nvcc.hpp"
    27 
    2830#elif defined __COMO__
    2931//  Comeau C++
    3032#   define BOOST_COMPILER_CONFIG "boost/config/compiler/comeau.hpp"