Jeff Thompson | f7d4994 | 2013-08-01 16:47:40 -0700 | [diff] [blame] | 1 | // (C) Copyright Eric Jourdanneau, Joel Falcou 2010 |
| 2 | // Use, modification and distribution are subject to the |
| 3 | // Boost Software License, Version 1.0. (See accompanying file |
| 4 | // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) |
| 5 | |
| 6 | // See http://www.boost.org for most recent version. |
| 7 | |
| 8 | // NVIDIA CUDA C++ compiler setup |
| 9 | |
Jeff Thompson | 3d613fd | 2013-10-15 15:39:04 -0700 | [diff] [blame] | 10 | #ifndef NDNBOOST_COMPILER |
| 11 | # define NDNBOOST_COMPILER "NVIDIA CUDA C++ Compiler" |
Jeff Thompson | f7d4994 | 2013-08-01 16:47:40 -0700 | [diff] [blame] | 12 | #endif |
| 13 | |
| 14 | // NVIDIA Specific support |
Jeff Thompson | 3d613fd | 2013-10-15 15:39:04 -0700 | [diff] [blame] | 15 | // NDNBOOST_GPU_ENABLED : Flag a function or a method as being enabled on the host and device |
| 16 | #define NDNBOOST_GPU_ENABLED __host__ __device__ |
Jeff Thompson | f7d4994 | 2013-08-01 16:47:40 -0700 | [diff] [blame] | 17 | |
| 18 | // Boost support macro for NVCC |
| 19 | // NVCC Basically behaves like some flavor of MSVC6 + some specific quirks |
| 20 | #ifdef __GNUC__ |
| 21 | |
Jeff Thompson | 2277ce5 | 2013-08-01 17:34:11 -0700 | [diff] [blame] | 22 | #include <ndnboost/config/compiler/gcc.hpp> |
Jeff Thompson | f7d4994 | 2013-08-01 16:47:40 -0700 | [diff] [blame] | 23 | |
| 24 | #elif defined(_MSC_VER) |
| 25 | |
Jeff Thompson | 2277ce5 | 2013-08-01 17:34:11 -0700 | [diff] [blame] | 26 | #include <ndnboost/config/compiler/visualc.hpp> |
Jeff Thompson | f7d4994 | 2013-08-01 16:47:40 -0700 | [diff] [blame] | 27 | |
| 28 | #endif |