[Openmp-commits] [PATCH] D24761: Fixed incorrect OpenMP version in Fortran module.
Jonathan Peyton via Openmp-commits
openmp-commits at lists.llvm.org
Fri Sep 30 08:59:08 PDT 2016
This revision was automatically updated to reflect the committed changes.
Closed by commit rL282868: Fix incorrect OpenMP version in Fortran module. (authored by jlpeyton).
Changed prior to commit:
https://reviews.llvm.org/D24761?vs=71920&id=73063#toc
Repository:
rL LLVM
https://reviews.llvm.org/D24761
Files:
openmp/trunk/runtime/CMakeLists.txt
openmp/trunk/runtime/src/kmp_runtime.c
openmp/trunk/runtime/src/kmp_version.c
Index: openmp/trunk/runtime/CMakeLists.txt
===================================================================
--- openmp/trunk/runtime/CMakeLists.txt
+++ openmp/trunk/runtime/CMakeLists.txt
@@ -96,7 +96,9 @@
endif()
libomp_check_variable(LIBOMP_OMP_VERSION 45 40 30)
# Set the OpenMP Year and Month assiociated with version
-if(${LIBOMP_OMP_VERSION} GREATER 40 OR ${LIBOMP_OMP_VERSION} EQUAL 40)
+if(${LIBOMP_OMP_VERSION} GREATER 45 OR ${LIBOMP_OMP_VERSION} EQUAL 45)
+ set(LIBOMP_OMP_YEAR_MONTH 201511)
+elseif(${LIBOMP_OMP_VERSION} GREATER 40 OR ${LIBOMP_OMP_VERSION} EQUAL 40)
set(LIBOMP_OMP_YEAR_MONTH 201307)
elseif(${LIBOMP_OMP_VERSION} GREATER 30 OR ${LIBOMP_OMP_VERSION} EQUAL 30)
set(LIBOMP_OMP_YEAR_MONTH 201107)
Index: openmp/trunk/runtime/src/kmp_runtime.c
===================================================================
--- openmp/trunk/runtime/src/kmp_runtime.c
+++ openmp/trunk/runtime/src/kmp_runtime.c
@@ -43,7 +43,9 @@
#endif /* defined(KMP_GOMP_COMPAT) */
char const __kmp_version_omp_api[] = KMP_VERSION_PREFIX "API version: "
-#if OMP_40_ENABLED
+#if OMP_45_ENABLED
+ "4.5 (201511)";
+#elif OMP_40_ENABLED
"4.0 (201307)";
#else
"3.1 (201107)";
Index: openmp/trunk/runtime/src/kmp_version.c
===================================================================
--- openmp/trunk/runtime/src/kmp_version.c
+++ openmp/trunk/runtime/src/kmp_version.c
@@ -89,7 +89,9 @@
int const __kmp_version_minor = KMP_VERSION_MINOR;
int const __kmp_version_build = KMP_VERSION_BUILD;
int const __kmp_openmp_version =
- #if OMP_40_ENABLED
+ #if OMP_45_ENABLED
+ 201511;
+ #elif OMP_40_ENABLED
201307;
#else
201107;
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D24761.73063.patch
Type: text/x-patch
Size: 1691 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/openmp-commits/attachments/20160930/8949f139/attachment.bin>
More information about the Openmp-commits
mailing list