llvm/openmp/runtime/src/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

// Helper macros to convert value of macro to string literal.
#define _stringer(x)
#define stringer(x)

// Detect compiler.
#if KMP_COMPILER_ICX
#define KMP_COMPILER
#elif KMP_COMPILER_ICC
#if __INTEL_COMPILER == 1010
#define KMP_COMPILER
#elif __INTEL_COMPILER == 1100
#define KMP_COMPILER
#elif __INTEL_COMPILER == 1110
#define KMP_COMPILER
#elif __INTEL_COMPILER == 1200
#define KMP_COMPILER
#elif __INTEL_COMPILER == 1210
#define KMP_COMPILER
#elif __INTEL_COMPILER == 1300
#define KMP_COMPILER
#elif __INTEL_COMPILER == 1310
#define KMP_COMPILER
#elif __INTEL_COMPILER == 1400
#define KMP_COMPILER
#elif __INTEL_COMPILER == 1410
#define KMP_COMPILER
#elif __INTEL_COMPILER == 1500
#define KMP_COMPILER
#elif __INTEL_COMPILER == 1600
#define KMP_COMPILER
#elif __INTEL_COMPILER == 1700
#define KMP_COMPILER
#elif __INTEL_COMPILER == 1800
#define KMP_COMPILER
#elif __INTEL_COMPILER == 1900
#define KMP_COMPILER
#elif __INTEL_COMPILER == 1910
#define KMP_COMPILER
#elif __INTEL_COMPILER > 1910
#define KMP_COMPILER
#endif
#elif KMP_COMPILER_CLANG
#define KMP_COMPILER
#elif KMP_COMPILER_GCC
#define KMP_COMPILER
#elif KMP_COMPILER_MSVC
#define KMP_COMPILER
#endif
#ifndef KMP_COMPILER
#warning "Unknown compiler"
#define KMP_COMPILER
#endif

// Detect librray type (perf, stub).
#ifdef KMP_STUB
#define KMP_LIB_TYPE
#else
#define KMP_LIB_TYPE
#endif // KMP_LIB_TYPE

// Detect link type (static, dynamic).
#if KMP_DYNAMIC_LIB
#define KMP_LINK_TYPE
#else
#define KMP_LINK_TYPE
#endif // KMP_LINK_TYPE

// Finally, define strings.
#define KMP_LIBRARY
#define KMP_COPYRIGHT

int const __kmp_version_major =;
int const __kmp_version_minor =;
int const __kmp_version_build =;
int const __kmp_openmp_version =;

/* 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[] =;

char const __kmp_version_copyright[] =;
char const __kmp_version_lib_ver[] =;
char const __kmp_version_lib_type[] =;
char const __kmp_version_link_type[] =;
char const __kmp_version_build_time[] =;
#if KMP_MIC2
char const __kmp_version_target_env[] =
    KMP_VERSION_PREFIX "target environment: MIC2";
#endif
char const __kmp_version_build_compiler[] =;

// Called at serial initialization time.
static int __kmp_version_1_printed =;

void __kmp_print_version_1(void) {} // __kmp_print_version_1

// Called at parallel initialization time.
static int __kmp_version_2_printed =;

void __kmp_print_version_2(void) {} // __kmp_print_version_2

// end of file //