omp_conditional.cpp (240B)
1 #include <iostream> 2 3 int main(void) 4 { 5 #ifdef _OPENMP 6 std::cout << "Compiled with -fopenmp (OpenMP Standard: " << _OPENMP 7 << ")\n"; 8 #else 9 std::cout << "Compiled without -fopenmp\n"; 10 #endif /* _OPENMP */ 11 return 0; 12 }