003 File Manager
Current Path:
/usr/src/contrib/llvm-project/openmp/runtime/src
usr
/
src
/
contrib
/
llvm-project
/
openmp
/
runtime
/
src
/
📁
..
📄
dllexports
(49.75 KB)
📄
exports_so.txt
(2.97 KB)
📄
extractExternal.cpp
(14.86 KB)
📁
i18n
📁
include
📄
kmp.h
(150.49 KB)
📄
kmp_affinity.cpp
(184.91 KB)
📄
kmp_affinity.h
(28.58 KB)
📄
kmp_alloc.cpp
(69.75 KB)
📄
kmp_atomic.cpp
(179.29 KB)
📄
kmp_atomic.h
(90.96 KB)
📄
kmp_barrier.cpp
(88.39 KB)
📄
kmp_cancel.cpp
(11.35 KB)
📄
kmp_config.h.cmake
(3.37 KB)
📄
kmp_csupport.cpp
(138.04 KB)
📄
kmp_debug.cpp
(3.54 KB)
📄
kmp_debug.h
(8.17 KB)
📄
kmp_debugger.cpp
(10.44 KB)
📄
kmp_debugger.h
(1.97 KB)
📄
kmp_dispatch.cpp
(90.11 KB)
📄
kmp_dispatch.h
(17.22 KB)
📄
kmp_dispatch_hier.h
(41.94 KB)
📄
kmp_environment.cpp
(14.35 KB)
📄
kmp_environment.h
(2.22 KB)
📄
kmp_error.cpp
(16 KB)
📄
kmp_error.h
(2.11 KB)
📄
kmp_ftn_cdecl.cpp
(1018 B)
📄
kmp_ftn_entry.h
(41.9 KB)
📄
kmp_ftn_extra.cpp
(971 B)
📄
kmp_ftn_os.h
(30.82 KB)
📄
kmp_ftn_stdcall.cpp
(895 B)
📄
kmp_global.cpp
(19.3 KB)
📄
kmp_gsupport.cpp
(91.3 KB)
📄
kmp_i18n.cpp
(27.56 KB)
📄
kmp_i18n.h
(6.77 KB)
📄
kmp_import.cpp
(1.04 KB)
📄
kmp_io.cpp
(6.38 KB)
📄
kmp_io.h
(1.1 KB)
📄
kmp_itt.cpp
(4.96 KB)
📄
kmp_itt.h
(14.32 KB)
📄
kmp_itt.inl
(38.74 KB)
📄
kmp_lock.cpp
(134.18 KB)
📄
kmp_lock.h
(52.92 KB)
📄
kmp_omp.h
(8.34 KB)
📄
kmp_os.h
(44.1 KB)
📄
kmp_platform.h
(5.35 KB)
📄
kmp_runtime.cpp
(289.73 KB)
📄
kmp_safe_c_api.h
(2.28 KB)
📄
kmp_sched.cpp
(37.33 KB)
📄
kmp_settings.cpp
(191.93 KB)
📄
kmp_settings.h
(3.26 KB)
📄
kmp_stats.cpp
(29.13 KB)
📄
kmp_stats.h
(40.94 KB)
📄
kmp_stats_timing.cpp
(3.59 KB)
📄
kmp_stats_timing.h
(3.6 KB)
📄
kmp_str.cpp
(22.28 KB)
📄
kmp_str.h
(4.48 KB)
📄
kmp_stub.cpp
(9.68 KB)
📄
kmp_stub.h
(1.56 KB)
📄
kmp_taskdeps.cpp
(29.79 KB)
📄
kmp_taskdeps.h
(3.93 KB)
📄
kmp_tasking.cpp
(177.28 KB)
📄
kmp_threadprivate.cpp
(26.22 KB)
📄
kmp_utility.cpp
(10.73 KB)
📄
kmp_version.cpp
(7.04 KB)
📄
kmp_version.h
(2.38 KB)
📄
kmp_wait_release.cpp
(905 B)
📄
kmp_wait_release.h
(32.1 KB)
📄
kmp_wrapper_getpid.h
(2.04 KB)
📄
kmp_wrapper_malloc.h
(7.2 KB)
📄
libomp.rc.var
(2.81 KB)
📄
ompt-event-specific.h
(4.38 KB)
📄
ompt-general.cpp
(23.73 KB)
📄
ompt-internal.h
(3.62 KB)
📄
ompt-specific.cpp
(14.43 KB)
📄
ompt-specific.h
(5.32 KB)
📄
test-touch.c
(688 B)
📁
thirdparty
📄
tsan_annotations.cpp
(5.92 KB)
📄
tsan_annotations.h
(6.77 KB)
📄
z_Linux_asm.S
(41.09 KB)
📄
z_Linux_util.cpp
(81.69 KB)
📄
z_Windows_NT-586_asm.asm
(30.37 KB)
📄
z_Windows_NT-586_util.cpp
(3.49 KB)
📄
z_Windows_NT_util.cpp
(52.15 KB)
Editing: kmp_version.cpp
/* * kmp_version.cpp */ //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===----------------------------------------------------------------------===// #include "kmp.h" #include "kmp_io.h" #include "kmp_version.h" // Replace with snapshot date YYYYMMDD for promotion build. #define KMP_VERSION_BUILD 20140926 // Helper macros to convert value of macro to string literal. #define _stringer(x) #x #define stringer(x) _stringer(x) // Detect compiler. #if KMP_COMPILER_ICC #if __INTEL_COMPILER == 1010 #define KMP_COMPILER "Intel(R) C++ Compiler 10.1" #elif __INTEL_COMPILER == 1100 #define KMP_COMPILER "Intel(R) C++ Compiler 11.0" #elif __INTEL_COMPILER == 1110 #define KMP_COMPILER "Intel(R) C++ Compiler 11.1" #elif __INTEL_COMPILER == 1200 #define KMP_COMPILER "Intel(R) C++ Compiler 12.0" #elif __INTEL_COMPILER == 1210 #define KMP_COMPILER "Intel(R) C++ Compiler 12.1" #elif __INTEL_COMPILER == 1300 #define KMP_COMPILER "Intel(R) C++ Compiler 13.0" #elif __INTEL_COMPILER == 1310 #define KMP_COMPILER "Intel(R) C++ Compiler 13.1" #elif __INTEL_COMPILER == 1400 #define KMP_COMPILER "Intel(R) C++ Compiler 14.0" #elif __INTEL_COMPILER == 1410 #define KMP_COMPILER "Intel(R) C++ Compiler 14.1" #elif __INTEL_COMPILER == 1500 #define KMP_COMPILER "Intel(R) C++ Compiler 15.0" #elif __INTEL_COMPILER == 1600 #define KMP_COMPILER "Intel(R) C++ Compiler 16.0" #elif __INTEL_COMPILER == 1700 #define KMP_COMPILER "Intel(R) C++ Compiler 17.0" #elif __INTEL_COMPILER == 1800 #define KMP_COMPILER "Intel(R) C++ Compiler 18.0" #elif __INTEL_COMPILER == 1900 #define KMP_COMPILER "Intel(R) C++ Compiler 19.0" #elif __INTEL_COMPILER >= 9900 #define KMP_COMPILER "Intel(R) C++ Compiler mainline" #endif #elif KMP_COMPILER_CLANG #define KMP_COMPILER \ "Clang " stringer(__clang_major__) "." stringer(__clang_minor__) #elif KMP_COMPILER_GCC #define KMP_COMPILER "GCC " stringer(__GNUC__) "." stringer(__GNUC_MINOR__) #elif KMP_COMPILER_MSVC #define KMP_COMPILER "MSVC " stringer(_MSC_FULL_VER) #endif #ifndef KMP_COMPILER #warning "Unknown compiler" #define KMP_COMPILER "unknown compiler" #endif // Detect librray type (perf, stub). #ifdef KMP_STUB #define KMP_LIB_TYPE "stub" #else #define KMP_LIB_TYPE "performance" #endif // KMP_LIB_TYPE // Detect link type (static, dynamic). #if KMP_DYNAMIC_LIB #define KMP_LINK_TYPE "dynamic" #else #define KMP_LINK_TYPE "static" #endif // KMP_LINK_TYPE // Finally, define strings. #define KMP_LIBRARY KMP_LIB_TYPE " library (" KMP_LINK_TYPE ")" #define KMP_COPYRIGHT "" int const __kmp_version_major = KMP_VERSION_MAJOR; int const __kmp_version_minor = KMP_VERSION_MINOR; int const __kmp_version_build = KMP_VERSION_BUILD; int const __kmp_openmp_version = 201611; /* Do NOT change the format of this string! Intel(R) Thread Profiler checks for a specific format some changes in the recognition routine there need to be made before this is changed. */ char const __kmp_copyright[] = KMP_VERSION_PREFIX KMP_LIBRARY " ver. " stringer(KMP_VERSION_MAJOR) "." stringer( KMP_VERSION_MINOR) "." stringer(KMP_VERSION_BUILD) " " KMP_COPYRIGHT; char const __kmp_version_copyright[] = KMP_VERSION_PREFIX KMP_COPYRIGHT; char const __kmp_version_lib_ver[] = KMP_VERSION_PREFIX "version: " stringer(KMP_VERSION_MAJOR) "." stringer( KMP_VERSION_MINOR) "." stringer(KMP_VERSION_BUILD); char const __kmp_version_lib_type[] = KMP_VERSION_PREFIX "library type: " KMP_LIB_TYPE; char const __kmp_version_link_type[] = KMP_VERSION_PREFIX "link type: " KMP_LINK_TYPE; char const __kmp_version_build_time[] = KMP_VERSION_PREFIX "build time: " "no_timestamp"; #if KMP_MIC2 char const __kmp_version_target_env[] = KMP_VERSION_PREFIX "target environment: MIC2"; #endif char const __kmp_version_build_compiler[] = KMP_VERSION_PREFIX "build compiler: " KMP_COMPILER; // Called at serial initialization time. static int __kmp_version_1_printed = FALSE; void __kmp_print_version_1(void) { if (__kmp_version_1_printed) { return; } __kmp_version_1_printed = TRUE; #ifndef KMP_STUB kmp_str_buf_t buffer; __kmp_str_buf_init(&buffer); // Print version strings skipping initial magic. __kmp_str_buf_print(&buffer, "%s\n", &__kmp_version_lib_ver[KMP_VERSION_MAGIC_LEN]); __kmp_str_buf_print(&buffer, "%s\n", &__kmp_version_lib_type[KMP_VERSION_MAGIC_LEN]); __kmp_str_buf_print(&buffer, "%s\n", &__kmp_version_link_type[KMP_VERSION_MAGIC_LEN]); __kmp_str_buf_print(&buffer, "%s\n", &__kmp_version_build_time[KMP_VERSION_MAGIC_LEN]); #if KMP_MIC __kmp_str_buf_print(&buffer, "%s\n", &__kmp_version_target_env[KMP_VERSION_MAGIC_LEN]); #endif __kmp_str_buf_print(&buffer, "%s\n", &__kmp_version_build_compiler[KMP_VERSION_MAGIC_LEN]); #if defined(KMP_GOMP_COMPAT) __kmp_str_buf_print(&buffer, "%s\n", &__kmp_version_alt_comp[KMP_VERSION_MAGIC_LEN]); #endif /* defined(KMP_GOMP_COMPAT) */ __kmp_str_buf_print(&buffer, "%s\n", &__kmp_version_omp_api[KMP_VERSION_MAGIC_LEN]); __kmp_str_buf_print(&buffer, "%sdynamic error checking: %s\n", KMP_VERSION_PREF_STR, (__kmp_env_consistency_check ? "yes" : "no")); #ifdef KMP_DEBUG for (int i = bs_plain_barrier; i < bs_last_barrier; ++i) { __kmp_str_buf_print( &buffer, "%s%s barrier branch bits: gather=%u, release=%u\n", KMP_VERSION_PREF_STR, __kmp_barrier_type_name[i], __kmp_barrier_gather_branch_bits[i], __kmp_barrier_release_branch_bits[i]); // __kmp_str_buf_print } for (int i = bs_plain_barrier; i < bs_last_barrier; ++i) { __kmp_str_buf_print( &buffer, "%s%s barrier pattern: gather=%s, release=%s\n", KMP_VERSION_PREF_STR, __kmp_barrier_type_name[i], __kmp_barrier_pattern_name[__kmp_barrier_gather_pattern[i]], __kmp_barrier_pattern_name [__kmp_barrier_release_pattern[i]]); // __kmp_str_buf_print } __kmp_str_buf_print(&buffer, "%s\n", &__kmp_version_lock[KMP_VERSION_MAGIC_LEN]); #endif __kmp_str_buf_print( &buffer, "%sthread affinity support: %s\n", KMP_VERSION_PREF_STR, #if KMP_AFFINITY_SUPPORTED (KMP_AFFINITY_CAPABLE() ? (__kmp_affinity_type == affinity_none ? "not used" : "yes") : "no") #else "no" #endif ); __kmp_printf("%s", buffer.str); __kmp_str_buf_free(&buffer); K_DIAG(1, ("KMP_VERSION is true\n")); #endif // KMP_STUB } // __kmp_print_version_1 // Called at parallel initialization time. static int __kmp_version_2_printed = FALSE; void __kmp_print_version_2(void) { if (__kmp_version_2_printed) { return; } __kmp_version_2_printed = TRUE; } // __kmp_print_version_2 // end of file //
Upload File
Create Folder