3 * kmp_config.h -- Feature macros
5 //===----------------------------------------------------------------------===//
7 // The LLVM Compiler Infrastructure
9 // This file is dual licensed under the MIT and the University of Illinois Open
10 // Source Licenses. See LICENSE.txt for details.
12 //===----------------------------------------------------------------------===//
16 #include "kmp_platform.h"
18 // cmakedefine01 MACRO will define MACRO as either 0 or 1
19 // cmakedefine MACRO 1 will define MACRO as 1 or leave undefined
21 #define RELWITHDEBINFO_BUILD 0
22 #define LIBOMP_USE_ITT_NOTIFY 1
23 #define USE_ITT_NOTIFY LIBOMP_USE_ITT_NOTIFY
24 #if ! LIBOMP_USE_ITT_NOTIFY
25 # define INTEL_NO_ITTNOTIFY_API
27 #define LIBOMP_USE_VERSION_SYMBOLS 1
28 #if LIBOMP_USE_VERSION_SYMBOLS
29 # define KMP_USE_VERSION_SYMBOLS
31 #define LIBOMP_HAVE_WEAK_ATTRIBUTE 1
32 #define KMP_HAVE_WEAK_ATTRIBUTE LIBOMP_HAVE_WEAK_ATTRIBUTE
33 #define LIBOMP_HAVE_PSAPI 0
34 #define KMP_HAVE_PSAPI LIBOMP_HAVE_PSAPI
35 #define LIBOMP_STATS 0
36 #define KMP_STATS_ENABLED LIBOMP_STATS
37 #define LIBOMP_HAVE_X86INTRIN_H 0
38 #define KMP_HAVE_X86INTRIN_H LIBOMP_HAVE_X86INTRIN_H
39 #define LIBOMP_HAVE___BUILTIN_READCYCLECOUNTER 0
40 #define KMP_HAVE___BUILTIN_READCYCLECOUNTER LIBOMP_HAVE___BUILTIN_READCYCLECOUNTER
41 #define LIBOMP_HAVE___RDTSC 0
42 #define KMP_HAVE___RDTSC LIBOMP_HAVE___RDTSC
43 #define LIBOMP_USE_DEBUGGER 0
44 #define USE_DEBUGGER LIBOMP_USE_DEBUGGER
45 #define LIBOMP_OMPT_DEBUG 0
46 #define OMPT_DEBUG LIBOMP_OMPT_DEBUG
47 #define LIBOMP_OMPT_SUPPORT 1
48 #define OMPT_SUPPORT LIBOMP_OMPT_SUPPORT
49 #define LIBOMP_OMPT_OPTIONAL 1
50 #define OMPT_OPTIONAL LIBOMP_OMPT_OPTIONAL
51 #define LIBOMP_USE_ADAPTIVE_LOCKS 1
52 #define KMP_USE_ADAPTIVE_LOCKS LIBOMP_USE_ADAPTIVE_LOCKS
53 #define KMP_DEBUG_ADAPTIVE_LOCKS 0
54 #define LIBOMP_USE_INTERNODE_ALIGNMENT 0
55 #define KMP_USE_INTERNODE_ALIGNMENT LIBOMP_USE_INTERNODE_ALIGNMENT
56 #define LIBOMP_ENABLE_ASSERTIONS 1
57 #define KMP_USE_ASSERT LIBOMP_ENABLE_ASSERTIONS
58 #define LIBOMP_USE_HIER_SCHED 0
59 #define KMP_USE_HIER_SCHED LIBOMP_USE_HIER_SCHED
60 #define STUBS_LIBRARY 0
61 #define LIBOMP_USE_HWLOC 0
62 #define KMP_USE_HWLOC LIBOMP_USE_HWLOC
63 #define LIBOMP_ENABLE_SHARED 1
64 #define KMP_DYNAMIC_LIB LIBOMP_ENABLE_SHARED
65 #define KMP_ARCH_STR "Intel(R) 64"
66 #define KMP_LIBRARY_FILE "libomp.so"
67 #define KMP_VERSION_MAJOR 5
68 #define KMP_VERSION_MINOR 0
69 #define LIBOMP_OMP_VERSION 50
70 #define OMP_50_ENABLED (LIBOMP_OMP_VERSION >= 50)
71 #define OMP_45_ENABLED (LIBOMP_OMP_VERSION >= 45)
72 #define OMP_40_ENABLED (LIBOMP_OMP_VERSION >= 40)
73 #define OMP_30_ENABLED (LIBOMP_OMP_VERSION >= 30)
74 #define LIBOMP_TSAN_SUPPORT 0
75 #if LIBOMP_TSAN_SUPPORT
79 #define KMP_MSVC_COMPAT MSVC
81 // Configured cache line based on architecture
83 # define CACHE_LINE 128
85 # define CACHE_LINE 64
92 #define KMP_NESTED_HOT_TEAMS 1
93 #define KMP_ADJUST_BLOCKTIME 1
94 #define BUILD_PARALLEL_ORDERED 1
95 #define KMP_ASM_INTRINS 1
96 #define USE_ITT_BUILD LIBOMP_USE_ITT_NOTIFY
97 #define INTEL_ITTNOTIFY_PREFIX __kmp_itt_
99 # define USE_LOAD_BALANCE 1
101 #if ! (KMP_OS_WINDOWS || KMP_OS_DARWIN)
102 # define KMP_TDATA_GTID 1
107 #if DEBUG_BUILD || RELWITHDEBINFO_BUILD
112 # define KMP_WIN_CDECL
115 # define KMP_GOMP_COMPAT
118 #endif // KMP_CONFIG_H