LLVM OpenMP* Runtime Library
kmp_version.h
1 /*
2  * kmp_version.h -- version number for this release
3  */
4 
5 //===----------------------------------------------------------------------===//
6 //
7 // The LLVM Compiler Infrastructure
8 //
9 // This file is dual licensed under the MIT and the University of Illinois Open
10 // Source Licenses. See LICENSE.txt for details.
11 //
12 //===----------------------------------------------------------------------===//
13 
14 #ifndef KMP_VERSION_H
15 #define KMP_VERSION_H
16 
17 #ifdef __cplusplus
18 extern "C" {
19 #endif // __cplusplus
20 
21 #ifndef KMP_VERSION_MAJOR
22 #error KMP_VERSION_MAJOR macro is not defined.
23 #endif
24 #define KMP_VERSION_MINOR 0
25 /* Using "magic" prefix in all the version strings is rather convenient to get
26  static version info from binaries by using standard utilities "strings" and
27  "grep", e. g.:
28  $ strings libomp.so | grep "@(#)"
29  gives clean list of all version strings in the library. Leading zero helps
30  to keep version string separate from printable characters which may occurs
31  just before version string. */
32 #define KMP_VERSION_MAGIC_STR "\x00@(#) "
33 #define KMP_VERSION_MAGIC_LEN 6 // Length of KMP_VERSION_MAGIC_STR.
34 #define KMP_VERSION_PREF_STR "Intel(R) OMP "
35 #define KMP_VERSION_PREFIX KMP_VERSION_MAGIC_STR KMP_VERSION_PREF_STR
36 
37 /* declare all the version string constants for KMP_VERSION env. variable */
38 extern int const __kmp_version_major;
39 extern int const __kmp_version_minor;
40 extern int const __kmp_version_build;
41 extern int const __kmp_openmp_version;
42 extern char const
43  __kmp_copyright[]; // Old variable, kept for compatibility with ITC and ITP.
44 extern char const __kmp_version_copyright[];
45 extern char const __kmp_version_lib_ver[];
46 extern char const __kmp_version_lib_type[];
47 extern char const __kmp_version_link_type[];
48 extern char const __kmp_version_build_time[];
49 extern char const __kmp_version_target_env[];
50 extern char const __kmp_version_build_compiler[];
51 extern char const __kmp_version_alt_comp[];
52 extern char const __kmp_version_omp_api[];
53 // ??? extern char const __kmp_version_debug[];
54 extern char const __kmp_version_lock[];
55 extern char const __kmp_version_nested_stats_reporting[];
56 extern char const __kmp_version_ftnstdcall[];
57 extern char const __kmp_version_ftncdecl[];
58 extern char const __kmp_version_ftnextra[];
59 
60 void __kmp_print_version_1(void);
61 void __kmp_print_version_2(void);
62 
63 #ifdef __cplusplus
64 } // extern "C"
65 #endif // __cplusplus
66 
67 #endif /* KMP_VERSION_H */