1 // $FreeBSD$ 2 /* 3 * kmp_config.h -- Feature macros 4 */ 5 //===----------------------------------------------------------------------===// 6 // 7 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. 8 // See https://llvm.org/LICENSE.txt for license information. 9 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 10 // 11 //===----------------------------------------------------------------------===// 12 #ifndef KMP_CONFIG_H 13 #define KMP_CONFIG_H 14 15 #include "kmp_platform.h" 16 17 // cmakedefine01 MACRO will define MACRO as either 0 or 1 18 // cmakedefine MACRO 1 will define MACRO as 1 or leave undefined 19 #define DEBUG_BUILD 0 20 #define RELWITHDEBINFO_BUILD 0 21 #define LIBOMP_USE_ITT_NOTIFY 1 22 #define USE_ITT_NOTIFY LIBOMP_USE_ITT_NOTIFY 23 #if ! LIBOMP_USE_ITT_NOTIFY 24 # define INTEL_NO_ITTNOTIFY_API 25 #endif 26 #define LIBOMP_USE_VERSION_SYMBOLS 1 27 #if LIBOMP_USE_VERSION_SYMBOLS 28 # define KMP_USE_VERSION_SYMBOLS 29 #endif 30 #define LIBOMP_HAVE_WEAK_ATTRIBUTE 1 31 #define KMP_HAVE_WEAK_ATTRIBUTE LIBOMP_HAVE_WEAK_ATTRIBUTE 32 #define LIBOMP_HAVE_PSAPI 0 33 #define KMP_HAVE_PSAPI LIBOMP_HAVE_PSAPI 34 #define LIBOMP_STATS 0 35 #define KMP_STATS_ENABLED LIBOMP_STATS 36 #define LIBOMP_HAVE_X86INTRIN_H 0 37 #define KMP_HAVE_X86INTRIN_H LIBOMP_HAVE_X86INTRIN_H 38 #define LIBOMP_HAVE___BUILTIN_READCYCLECOUNTER 0 39 #define KMP_HAVE___BUILTIN_READCYCLECOUNTER LIBOMP_HAVE___BUILTIN_READCYCLECOUNTER 40 #define LIBOMP_HAVE___RDTSC 0 41 #define KMP_HAVE___RDTSC LIBOMP_HAVE___RDTSC 42 #define LIBOMP_USE_DEBUGGER 0 43 #define USE_DEBUGGER LIBOMP_USE_DEBUGGER 44 #define LIBOMP_OMPT_DEBUG 0 45 #define OMPT_DEBUG LIBOMP_OMPT_DEBUG 46 #define LIBOMP_OMPT_SUPPORT 1 47 #define OMPT_SUPPORT LIBOMP_OMPT_SUPPORT 48 #define LIBOMP_PROFILING_SUPPORT 0 49 #define OMP_PROFILING_SUPPORT LIBOMP_PROFILING_SUPPORT 50 #define LIBOMP_OMPT_OPTIONAL 1 51 #define OMPT_OPTIONAL LIBOMP_OMPT_OPTIONAL 52 #define LIBOMP_USE_ADAPTIVE_LOCKS 1 53 #define KMP_USE_ADAPTIVE_LOCKS LIBOMP_USE_ADAPTIVE_LOCKS 54 #define KMP_DEBUG_ADAPTIVE_LOCKS 0 55 #define LIBOMP_USE_INTERNODE_ALIGNMENT 0 56 #define KMP_USE_INTERNODE_ALIGNMENT LIBOMP_USE_INTERNODE_ALIGNMENT 57 #define LIBOMP_ENABLE_ASSERTIONS 1 58 #define KMP_USE_ASSERT LIBOMP_ENABLE_ASSERTIONS 59 #define LIBOMP_USE_HIER_SCHED 0 60 #define KMP_USE_HIER_SCHED LIBOMP_USE_HIER_SCHED 61 #define STUBS_LIBRARY 0 62 #define LIBOMP_USE_HWLOC 0 63 #define KMP_USE_HWLOC LIBOMP_USE_HWLOC 64 #define LIBOMP_ENABLE_SHARED 1 65 #define KMP_DYNAMIC_LIB LIBOMP_ENABLE_SHARED 66 #define KMP_ARCH_STR "Intel(R) 64" 67 #define KMP_LIBRARY_FILE "libomp.so" 68 #define KMP_VERSION_MAJOR 5 69 #define KMP_VERSION_MINOR 0 70 #define LIBOMP_TSAN_SUPPORT 0 71 #if LIBOMP_TSAN_SUPPORT 72 #define TSAN_SUPPORT 73 #endif 74 #define MSVC 0 75 #define KMP_MSVC_COMPAT MSVC 76 #define LIBOMP_HAVE_WAITPKG_INTRINSICS 1 77 #define KMP_HAVE_WAITPKG_INTRINSICS LIBOMP_HAVE_WAITPKG_INTRINSICS 78 #define LIBOMP_HAVE_RTM_INTRINSICS 1 79 #define KMP_HAVE_RTM_INTRINSICS LIBOMP_HAVE_RTM_INTRINSICS 80 #define LIBOMP_HAVE_IMMINTRIN_H 1 81 #define KMP_HAVE_IMMINTRIN_H LIBOMP_HAVE_IMMINTRIN_H 82 #define LIBOMP_HAVE_INTRIN_H 0 83 #define KMP_HAVE_INTRIN_H LIBOMP_HAVE_INTRIN_H 84 #define LIBOMP_HAVE_ATTRIBUTE_WAITPKG 1 85 #define KMP_HAVE_ATTRIBUTE_WAITPKG LIBOMP_HAVE_ATTRIBUTE_WAITPKG 86 #define LIBOMP_HAVE_ATTRIBUTE_RTM 1 87 #define KMP_HAVE_ATTRIBUTE_RTM LIBOMP_HAVE_ATTRIBUTE_RTM 88 #define LIBOMP_ARCH_AARCH64_A64FX 0 89 #define KMP_ARCH_AARCH64_A64FX LIBOMP_ARCH_AARCH64_A64FX 90 91 // Configured cache line based on architecture 92 #if KMP_ARCH_PPC64 93 # define CACHE_LINE 128 94 #elif KMP_ARCH_AARCH64_A64FX 95 # define CACHE_LINE 256 96 #else 97 # define CACHE_LINE 64 98 #endif 99 100 #if ! KMP_32_BIT_ARCH 101 # define BUILD_I8 1 102 #endif 103 104 #define KMP_NESTED_HOT_TEAMS 1 105 #define KMP_ADJUST_BLOCKTIME 1 106 #define BUILD_PARALLEL_ORDERED 1 107 #define KMP_ASM_INTRINS 1 108 #define USE_ITT_BUILD LIBOMP_USE_ITT_NOTIFY 109 #define INTEL_ITTNOTIFY_PREFIX __kmp_itt_ 110 #if ! KMP_MIC 111 # define USE_LOAD_BALANCE 1 112 #endif 113 #if ! (KMP_OS_WINDOWS || KMP_OS_DARWIN) 114 # define KMP_TDATA_GTID 1 115 #endif 116 #if STUBS_LIBRARY 117 # define KMP_STUB 1 118 #endif 119 #if DEBUG_BUILD || RELWITHDEBINFO_BUILD 120 # define KMP_DEBUG 1 121 #endif 122 123 #if KMP_OS_WINDOWS 124 # define KMP_WIN_CDECL 125 #else 126 # define BUILD_TV 127 # define KMP_GOMP_COMPAT 128 #endif 129 130 #endif // KMP_CONFIG_H 131