The following Fortran code (to be preprocessed and compiled with OpenMP) gives inconsistent OpenMP version information:
print *, “openmp_version=”, openmp_version
print *, “_OPENMP =”, _OPENMP
end program p
% nvfortran -Mpreprocess -mp openmp-version.F90 && ./a.out
_OPENMP = 201307
Note that 200805 refers to OpenMP 3.0, 201307 to 4.0.
It would be great to have this consistent (and correct).