xref: /freebsd/lib/libomp/kmp_config.h (revision e9e8876a4d6afc1ad5315faaa191b25121a813d7)
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_OMPD_SUPPORT 0
49 #define OMPD_SUPPORT LIBOMP_OMPD_SUPPORT
50 #define LIBOMP_PROFILING_SUPPORT 0
51 #define OMP_PROFILING_SUPPORT LIBOMP_PROFILING_SUPPORT
52 #define LIBOMP_OMPT_OPTIONAL 1
53 #define OMPT_OPTIONAL LIBOMP_OMPT_OPTIONAL
54 #define LIBOMP_USE_ADAPTIVE_LOCKS 1
55 #define KMP_USE_ADAPTIVE_LOCKS LIBOMP_USE_ADAPTIVE_LOCKS
56 #define KMP_DEBUG_ADAPTIVE_LOCKS 0
57 #define LIBOMP_USE_INTERNODE_ALIGNMENT 0
58 #define KMP_USE_INTERNODE_ALIGNMENT LIBOMP_USE_INTERNODE_ALIGNMENT
59 #define LIBOMP_ENABLE_ASSERTIONS 1
60 #define KMP_USE_ASSERT LIBOMP_ENABLE_ASSERTIONS
61 #define LIBOMP_USE_HIER_SCHED 0
62 #define KMP_USE_HIER_SCHED LIBOMP_USE_HIER_SCHED
63 #define STUBS_LIBRARY 0
64 #define LIBOMP_USE_HWLOC 0
65 #define KMP_USE_HWLOC LIBOMP_USE_HWLOC
66 #define LIBOMP_ENABLE_SHARED 1
67 #define KMP_DYNAMIC_LIB LIBOMP_ENABLE_SHARED
68 #define KMP_ARCH_STR "Intel(R) 64"
69 #define KMP_LIBRARY_FILE "libomp.so"
70 #define KMP_VERSION_MAJOR 5
71 #define KMP_VERSION_MINOR 0
72 #define MSVC 0
73 #define KMP_MSVC_COMPAT MSVC
74 #define LIBOMP_HAVE_WAITPKG_INTRINSICS 1
75 #define KMP_HAVE_WAITPKG_INTRINSICS LIBOMP_HAVE_WAITPKG_INTRINSICS
76 #define LIBOMP_HAVE_RTM_INTRINSICS 1
77 #define KMP_HAVE_RTM_INTRINSICS LIBOMP_HAVE_RTM_INTRINSICS
78 #define LIBOMP_HAVE_IMMINTRIN_H 1
79 #define KMP_HAVE_IMMINTRIN_H LIBOMP_HAVE_IMMINTRIN_H
80 #define LIBOMP_HAVE_INTRIN_H 0
81 #define KMP_HAVE_INTRIN_H LIBOMP_HAVE_INTRIN_H
82 #define LIBOMP_HAVE_ATTRIBUTE_WAITPKG 1
83 #define KMP_HAVE_ATTRIBUTE_WAITPKG LIBOMP_HAVE_ATTRIBUTE_WAITPKG
84 #define LIBOMP_HAVE_ATTRIBUTE_RTM 1
85 #define KMP_HAVE_ATTRIBUTE_RTM LIBOMP_HAVE_ATTRIBUTE_RTM
86 #define LIBOMP_ARCH_AARCH64_A64FX 0
87 #define KMP_ARCH_AARCH64_A64FX LIBOMP_ARCH_AARCH64_A64FX
88 
89 // Configured cache line based on architecture
90 #if KMP_ARCH_PPC64
91 # define CACHE_LINE 128
92 #elif KMP_ARCH_AARCH64_A64FX
93 # define CACHE_LINE 256
94 #else
95 # define CACHE_LINE 64
96 #endif
97 
98 #if ! KMP_32_BIT_ARCH
99 # define BUILD_I8 1
100 #endif
101 
102 #define KMP_NESTED_HOT_TEAMS 1
103 #define KMP_ADJUST_BLOCKTIME 1
104 #define BUILD_PARALLEL_ORDERED 1
105 #define KMP_ASM_INTRINS 1
106 #define USE_ITT_BUILD LIBOMP_USE_ITT_NOTIFY
107 #define INTEL_ITTNOTIFY_PREFIX __kmp_itt_
108 #if ! KMP_MIC
109 # define USE_LOAD_BALANCE 1
110 #endif
111 #if ! (KMP_OS_WINDOWS || KMP_OS_DARWIN)
112 # define KMP_TDATA_GTID 1
113 #endif
114 #if STUBS_LIBRARY
115 # define KMP_STUB 1
116 #endif
117 #if DEBUG_BUILD || RELWITHDEBINFO_BUILD
118 # define KMP_DEBUG 1
119 #endif
120 
121 #if KMP_OS_WINDOWS
122 # define KMP_WIN_CDECL
123 #else
124 # define BUILD_TV
125 # define KMP_GOMP_COMPAT
126 #endif
127 
128 #endif // KMP_CONFIG_H
129