llvm/projects/openmp/runtime/src/kmp_config.h

/*
 * kmp_config.h -- Feature macros
 */
//===----------------------------------------------------------------------===//
//
// 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
//
//===----------------------------------------------------------------------===//
#ifndef KMP_CONFIG_H
#define KMP_CONFIG_H

#include "kmp_platform.h"

// cmakedefine01 MACRO will define MACRO as either 0 or 1
// cmakedefine MACRO 1 will define MACRO as 1 or leave undefined
#define DEBUG_BUILD
#define RELWITHDEBINFO_BUILD
#define LIBOMP_USE_ITT_NOTIFY
#define USE_ITT_NOTIFY
#if ! LIBOMP_USE_ITT_NOTIFY
#define INTEL_NO_ITTNOTIFY_API
#endif
#define LIBOMP_USE_VERSION_SYMBOLS
#if LIBOMP_USE_VERSION_SYMBOLS
#define KMP_USE_VERSION_SYMBOLS
#endif
#define LIBOMP_HAVE_WEAK_ATTRIBUTE
#define KMP_HAVE_WEAK_ATTRIBUTE
#define LIBOMP_HAVE_PSAPI
#define KMP_HAVE_PSAPI
#define LIBOMP_STATS
#define KMP_STATS_ENABLED
#define LIBOMP_HAVE_X86INTRIN_H
#define KMP_HAVE_X86INTRIN_H
#define LIBOMP_HAVE___BUILTIN_READCYCLECOUNTER
#define KMP_HAVE___BUILTIN_READCYCLECOUNTER
#define LIBOMP_HAVE___RDTSC
#define KMP_HAVE___RDTSC
#define LIBOMP_USE_DEBUGGER
#define USE_DEBUGGER
#define LIBOMP_OMPT_DEBUG
#define OMPT_DEBUG
#define LIBOMP_OMPT_SUPPORT
#define OMPT_SUPPORT
#define LIBOMP_OMPD_SUPPORT
#define OMPD_SUPPORT
#define LIBOMP_OMPX_TASKGRAPH
#define OMPX_TASKGRAPH
#define LIBOMP_PROFILING_SUPPORT
#define OMP_PROFILING_SUPPORT
#define LIBOMP_OMPT_OPTIONAL
#define OMPT_OPTIONAL
#define LIBOMP_USE_ADAPTIVE_LOCKS
#define KMP_USE_ADAPTIVE_LOCKS
#define KMP_DEBUG_ADAPTIVE_LOCKS
#define LIBOMP_USE_INTERNODE_ALIGNMENT
#define KMP_USE_INTERNODE_ALIGNMENT
#define LIBOMP_ENABLE_ASSERTIONS
#define KMP_USE_ASSERT
#define LIBOMP_USE_HIER_SCHED
#define KMP_USE_HIER_SCHED
#define STUBS_LIBRARY
#define LIBOMP_USE_HWLOC
#define KMP_USE_HWLOC
#define LIBOMP_ENABLE_SHARED
#define KMP_DYNAMIC_LIB
#define KMP_ARCH_STR
#define KMP_LIBRARY_FILE
#define KMP_VERSION_MAJOR
#define KMP_VERSION_MINOR
#define MSVC
#define KMP_MSVC_COMPAT
#define LIBOMP_HAVE_WAITPKG_INTRINSICS
#define KMP_HAVE_WAITPKG_INTRINSICS
#define LIBOMP_HAVE_RTM_INTRINSICS
#define KMP_HAVE_RTM_INTRINSICS
#define LIBOMP_HAVE_IMMINTRIN_H
#define KMP_HAVE_IMMINTRIN_H
#define LIBOMP_HAVE_INTRIN_H
#define KMP_HAVE_INTRIN_H
#define LIBOMP_HAVE_ATTRIBUTE_WAITPKG
#define KMP_HAVE_ATTRIBUTE_WAITPKG
#define LIBOMP_HAVE_ATTRIBUTE_RTM
#define KMP_HAVE_ATTRIBUTE_RTM
#define LIBOMP_ARCH_AARCH64_A64FX
#define KMP_ARCH_AARCH64_A64FX
#define LIBOMP_HAVE_XMMINTRIN_H
#define KMP_HAVE_XMMINTRIN_H
#define LIBOMP_HAVE__MM_MALLOC
#define KMP_HAVE__MM_MALLOC
#define LIBOMP_HAVE_ALIGNED_ALLOC
#define KMP_HAVE_ALIGNED_ALLOC
#define LIBOMP_HAVE_POSIX_MEMALIGN
#define KMP_HAVE_POSIX_MEMALIGN
#define LIBOMP_HAVE__ALIGNED_MALLOC
#define KMP_HAVE__ALIGNED_MALLOC
#define OPENMP_ENABLE_LIBOMPTARGET
#define ENABLE_LIBOMPTARGET

// Configured cache line based on architecture
#if KMP_ARCH_PPC64 || KMP_ARCH_PPC
#define CACHE_LINE
#elif KMP_ARCH_AARCH64_A64FX
#define CACHE_LINE
#elif KMP_ARCH_S390X
#define CACHE_LINE
#else
#define CACHE_LINE
#endif

#if ! KMP_32_BIT_ARCH
#define BUILD_I8
#endif

#define KMP_NESTED_HOT_TEAMS
#define KMP_ADJUST_BLOCKTIME
#define BUILD_PARALLEL_ORDERED
#define KMP_ASM_INTRINS
#define USE_ITT_BUILD
#define INTEL_ITTNOTIFY_PREFIX
#if ! KMP_MIC
#define USE_LOAD_BALANCE
#endif
#if ! (KMP_OS_WINDOWS || KMP_OS_DARWIN)
#define KMP_TDATA_GTID
#endif
#if STUBS_LIBRARY
#define KMP_STUB
#endif
#if DEBUG_BUILD || RELWITHDEBINFO_BUILD
#define KMP_DEBUG
#endif

#if KMP_OS_WINDOWS
#define KMP_WIN_CDECL
#else
#define BUILD_TV
#define KMP_GOMP_COMPAT
#endif

// use shared memory with dynamic library (except Android, where shm_*
// functions don't exist).
#if KMP_OS_UNIX && KMP_DYNAMIC_LIB && !__ANDROID__
#define KMP_USE_SHM
#endif
#endif // KMP_CONFIG_H