Inconsistent openmp_version / _OPENMP macro values

The following Fortran code (to be preprocessed and compiled with OpenMP) gives inconsistent OpenMP version information:

program p
use omp_lib
print *, “openmp_version=”, openmp_version
print *, “_OPENMP =”, _OPENMP
end program p

% nvfortran -Mpreprocess -mp openmp-version.F90 && ./a.out
openmp_version= 200805
_OPENMP = 201307

Note that 200805 refers to OpenMP 3.0, 201307 to 4.0.

It would be great to have this consistent (and correct).

Thanks,
Harald

Thanks Harald. Looks like we missed updating the version in on spot. We’ll get this fixed in a future release.