fork download
  1. #include <stdio.h>
  2. #include <omp.h>
  3.  
  4. int main() {
  5. #ifdef _OPENMP
  6. printf("OpenMP is supported. Version: %d\n", _OPENMP);
  7. #else
  8. printf("OpenMP is NOT supported.\n");
  9. #endif
  10. return 0;
  11. }
  12.  
Success #stdin #stdout 0s 5316KB
stdin
Standard input is empty
stdout
OpenMP is NOT supported.