cs205-lecture-examples

Example codes used during Harvard CS205 lectures
git clone https://git.0xfab.ch/cs205-lecture-examples.git
Log | Files | Refs | README | LICENSE

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 }