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