OpenMPCD
PlatformDetection.hpp
Go to the documentation of this file.
1 /**
2  * @file
3  * Defines platform-dependent macros.
4  */
5 
6 #ifndef OPENMPCD_UTILITY_PLATFORMDETECTION_HPP
7 #define OPENMPCD_UTILITY_PLATFORMDETECTION_HPP
8 
9 #if defined(__linux__)
10  #define OPENMPCD_PLATFORM_LINUX ///< Signifies the linux platform.
11  #define OPENMPCD_PLATFORM_POSIX ///< Signifies a POSIX-compliant platform.
12 #elif defined(_WIN32)
13  #define OPENMPCD_PLATFORM_WIN32 ///< Signifies the Win32 platform.
14 #endif
15 
16 #ifdef __CUDACC__
17  #define OPENMPCD_PLATFORM_CUDA ///< Signifies compilation of CUDA sources.
18 #endif
19 
20 #endif //OPENMPCD_UTILITY_PLATFORMDETECTION_HPP