Go to the documentation of this file. 1 #ifndef INCLUDED_EXTERNAL_LIBRARIES_OPENMP
2 #define INCLUDED_EXTERNAL_LIBRARIES_OPENMP
8 # if ENABLE_OPENMP && !defined(_OPENMP)
9 # error "either enable OpenMP in the compiler settings or don't set ENABLE_OPENMP to 1"
11 #else // no user preference; default to compiler setting
13 # define ENABLE_OPENMP 1
15 # define ENABLE_OPENMP 0
22 # define omp_get_num_threads() 1
23 # define omp_get_thread_num() 0
24 # define omp_in_parallel() 0
31 # define OMP(args) __pragma(omp args)
33 # define OMP _Pragma("omp " #args)
41 #endif // #ifndef INCLUDED_EXTERNAL_LIBRARIES_OPENMP