[Openmp-commits] [PATCH] D154652: [OpenMP] Move KMP_VERSION printout logic to post-serial-init

Jonathan Peyton via Phabricator via Openmp-commits openmp-commits at lists.llvm.org
Mon Jul 24 14:03:32 PDT 2023


This revision was automatically updated to reflect the committed changes.
Closed by commit rG4e680ae5f22a: [OpenMP] Move KMP_VERSION printout logic to post-serial-init (authored by jlpeyton).

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D154652/new/

https://reviews.llvm.org/D154652

Files:
  openmp/runtime/src/kmp_runtime.cpp
  openmp/runtime/src/kmp_settings.cpp


Index: openmp/runtime/src/kmp_settings.cpp
===================================================================
--- openmp/runtime/src/kmp_settings.cpp
+++ openmp/runtime/src/kmp_settings.cpp
@@ -6362,10 +6362,6 @@
 
 #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
Index: openmp/runtime/src/kmp_runtime.cpp
===================================================================
--- openmp/runtime/src/kmp_runtime.cpp
+++ openmp/runtime/src/kmp_runtime.cpp
@@ -7287,6 +7287,10 @@
 
   __kmp_init_serial = TRUE;
 
+  if (__kmp_version) {
+    __kmp_print_version_1();
+  }
+
   if (__kmp_settings) {
     __kmp_env_print();
   }


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D154652.543691.patch
Type: text/x-patch
Size: 824 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/openmp-commits/attachments/20230724/649eb1d8/attachment.bin>


More information about the Openmp-commits mailing list