Ticket #8647: nvcc.hpp.johnmaddock.patch
File nvcc.hpp.johnmaddock.patch, 1.6 KB (added by , 9 years ago) |
---|
-
boost/config/compiler/nvcc.hpp
14 14 // NVIDIA Specific support 15 15 // BOOST_GPU_ENABLED : Flag a function or a method as being enabled on the host and device 16 16 #define BOOST_GPU_ENABLED __host__ __device__ 17 18 // Boost support macro for NVCC19 // NVCC Basically behaves like some flavor of MSVC6 + some specific quirks20 #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
13 13 // locate which compiler we are using and define 14 14 // BOOST_COMPILER_CONFIG as needed: 15 15 16 #if defined __CUDACC__ 17 // NVIDIA CUDA C++ compiler for GPU 18 # include "boost/config/compiler/nvcc.hpp" 19 20 #endif 21 16 22 #if defined(__GCCXML__) 17 23 // GCC-XML emulates other compilers, it has to appear first here! 18 24 # define BOOST_COMPILER_CONFIG "boost/config/compiler/gcc_xml.hpp" … … 21 27 // EDG based Cray compiler: 22 28 # define BOOST_COMPILER_CONFIG "boost/config/compiler/cray.hpp" 23 29 24 #elif defined __CUDACC__25 // NVIDIA CUDA C++ compiler for GPU26 # define BOOST_COMPILER_CONFIG "boost/config/compiler/nvcc.hpp"27 28 30 #elif defined __COMO__ 29 31 // Comeau C++ 30 32 # define BOOST_COMPILER_CONFIG "boost/config/compiler/comeau.hpp"