diff --git a/runtime/src/kmp_settings.cpp b/runtime/src/kmp_settings.cpp index ab0535a070c6119fbaa4a59105c3ac6c25abd8d8..aca5b89b06a11225d272f862465f06bc1874bc6d 100644 --- a/runtime/src/kmp_settings.cpp +++ b/runtime/src/kmp_settings.cpp @@ -5345,6 +5345,26 @@ void __kmp_env_print_2() { __kmp_stg_table[ i ].print( & buffer, __kmp_stg_table[ i ].name, __kmp_stg_table[ i ].data ); }; // if }; // for +#if OMP_30_ENABLED +# define K_30 "+3.0" +#else +# define K_30 "" +#endif +#if OMP_40_ENABLED +# define K_40 "+4.0" +#else +# define K_40 "" +#endif +#if OMP_45_ENABLED +# define K_45 "+4.5" +#else +# define K_45 "" +#endif +#if OMP_50_ENABLED +# define K_50 "+5.0" +#else +# define K_50 "" +#endif #if LIBOMP_USE_AFFINITY # define K_AFFINITY "+affinity" #else @@ -5360,12 +5380,12 @@ void __kmp_env_print_2() { #else # define K_QUEUE "" #endif -#if LIBOMP_USE_CONCURRENT_WRITE +#if LIBOMP_USE_CONCURRENT_WRITE && OMP_40_ENABLED # define K_CW "+Concurrent write" #else # define K_CW "" #endif -#if LIBOMP_USE_VARDEP +#if LIBOMP_USE_VARDEP && OMP_40_ENABLED # define K_VD "+Var. length deps." #else # define K_VD "" @@ -5378,7 +5398,7 @@ void __kmp_env_print_2() { #if LIBOMP_USE_AFFINITY || LIBOMP_USE_THEQUEUE || LIBOMP_USE_THE_AGGREGATION \ || LIBOMP_USE_CONCURRENT_WRITE || LIBOMP_USE_VARDEP || LIBOMP_USE_DYNHASH - __kmp_str_buf_print( & buffer, " Extended with: " K_QUEUE K_AFFINITY K_AGGREGATION K_CW K_DH K_VD"\n", 0 ); + __kmp_str_buf_print( & buffer, " OMP version enabled: " K_30 K_40 K_45 K_50 ", extended with: " K_QUEUE K_AFFINITY K_AGGREGATION K_CW K_DH K_VD"\n", 0 ); #endif __kmp_str_buf_print(&buffer, "%s\n", KMP_I18N_STR(DisplayEnvEnd));