[Openmp-commits] [openmp] 4e680ae - [OpenMP] Move KMP_VERSION printout logic to post-serial-init
Jonathan Peyton via Openmp-commits
openmp-commits at lists.llvm.org
Mon Jul 24 14:03:25 PDT 2023
Author: Jonathan Peyton
Date: 2023-07-24T16:02:03-05:00
New Revision: 4e680ae5f22ad5de65e9019e8ad51d1494d1b6bd
URL: https://github.com/llvm/llvm-project/commit/4e680ae5f22ad5de65e9019e8ad51d1494d1b6bd
DIFF: https://github.com/llvm/llvm-project/commit/4e680ae5f22ad5de65e9019e8ad51d1494d1b6bd.diff
LOG: [OpenMP] Move KMP_VERSION printout logic to post-serial-init
Get the KMP_VERSION printout logic out of environment variable file
(kmp_settings.cpp) and move to end of serial initialization where
KMP_SETTINGS and OMP_DISPLAY_ENV are.
Differential Revision: https://reviews.llvm.org/D154652
Added:
Modified:
openmp/runtime/src/kmp_runtime.cpp
openmp/runtime/src/kmp_settings.cpp
Removed:
################################################################################
diff --git a/openmp/runtime/src/kmp_runtime.cpp b/openmp/runtime/src/kmp_runtime.cpp
index 695bb5e7744c52..e55798df610cef 100644
--- a/openmp/runtime/src/kmp_runtime.cpp
+++ b/openmp/runtime/src/kmp_runtime.cpp
@@ -7287,6 +7287,10 @@ static void __kmp_do_serial_initialize(void) {
__kmp_init_serial = TRUE;
+ if (__kmp_version) {
+ __kmp_print_version_1();
+ }
+
if (__kmp_settings) {
__kmp_env_print();
}
diff --git a/openmp/runtime/src/kmp_settings.cpp b/openmp/runtime/src/kmp_settings.cpp
index eb92de11333b2b..b81376d1632bad 100644
--- a/openmp/runtime/src/kmp_settings.cpp
+++ b/openmp/runtime/src/kmp_settings.cpp
@@ -6362,10 +6362,6 @@ void __kmp_env_initialize(char const *string) {
#endif /* KMP_AFFINITY_SUPPORTED */
- if (__kmp_version) {
- __kmp_print_version_1();
- }
-
// Post-initialization step: some env. vars need their value's further
// processing
if (string != NULL) { // kmp_set_defaults() was called
More information about the Openmp-commits
mailing list