OpenMPCD
CompilerDetection.hpp
Go to the documentation of this file.
1 /**
2  * @file
3  * Defines compiler-dependent macros.
4  */
5 
6 #ifndef OPENMPCD_UTILITY_COMPILERDETECTION_HPP
7 #define OPENMPCD_UTILITY_COMPILERDETECTION_HPP
8 
9 #ifdef __NVCC__
10  #define OPENMPCD_COMPILER_NVCC ///< Defined when compiling with NVIDIA NVCC.
11 #endif
12 
13 #if (defined(__GNUC__) || defined(__GNUG__)) && !(defined(__clang__) || defined(__INTEL_COMPILER))
14  #define OPENMPCD_COMPILER_GCC ///< Defined when compiling with GNU GCC or G++
15 #endif
16 
17 #endif //OPENMPCD_UTILITY_COMPILERDETECTION_HPP