Skip to content

Commit

Permalink
[OpenMP] Move KMP_VERSION printout logic to post-serial-init
Browse files Browse the repository at this point in the history
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
  • Loading branch information
jpeyton52 committed Jul 24, 2023
1 parent fda2977 commit 4e680ae
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 4 additions & 0 deletions openmp/runtime/src/kmp_runtime.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand Down
4 changes: 0 additions & 4 deletions openmp/runtime/src/kmp_settings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4e680ae

Please sign in to comment.