OpenMPCheckVersion.cpp 605 B

1234567891011121314151617
  1. #include <stdio.h>
  2. #include <omp.h>
  3. const char ompver_str[] = { 'I', 'N', 'F', 'O', ':', 'O', 'p', 'e', 'n', 'M',
  4. 'P', '-', 'd', 'a', 't', 'e', '[',
  5. ('0' + ((_OPENMP/100000)%10)),
  6. ('0' + ((_OPENMP/10000)%10)),
  7. ('0' + ((_OPENMP/1000)%10)),
  8. ('0' + ((_OPENMP/100)%10)),
  9. ('0' + ((_OPENMP/10)%10)),
  10. ('0' + ((_OPENMP/1)%10)),
  11. ']', '\0' };
  12. int main()
  13. {
  14. puts(ompver_str);
  15. return 0;
  16. }