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 /*
28     Using "magic" prefix in all the version strings is rather convenient to get static version info
29     from binaries by using standard utilities "strings" and "grep", e. g.:
30         $ strings libomp.so | grep "@(#)"
31     gives clean list of all version strings in the library. Leading zero helps to keep version
32     string separate from printable characters which may occurs just before version string.
33 */
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 __kmp_copyright[];    // Old variable, kept for compatibility with ITC and ITP.
45 extern char const __kmp_version_copyright[];
46 extern char const __kmp_version_lib_ver[];
47 extern char const __kmp_version_lib_type[];
48 extern char const __kmp_version_link_type[];
49 extern char const __kmp_version_build_time[];
50 extern char const __kmp_version_target_env[];
51 extern char const __kmp_version_build_compiler[];
52 extern char const __kmp_version_alt_comp[];
53 extern char const __kmp_version_omp_api[];
54 // ??? extern char const __kmp_version_debug[];
55 extern char const __kmp_version_lock[];
56 extern char const __kmp_version_nested_stats_reporting[];
57 extern char const __kmp_version_ftnstdcall[];
58 extern char const __kmp_version_ftncdecl[];
59 extern char const __kmp_version_ftnextra[];
60 
61 void __kmp_print_version_1( void );
62 void __kmp_print_version_2( void );
63 
64 #ifdef __cplusplus
65     } // extern "C"
66 #endif // __cplusplus
67 
68 #endif /* KMP_VERSION_H */
69