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