Intel® OpenMP* Runtime Library
kmp_version.h
1 /*
2  * kmp_version.h -- version number for this release
3  */
4 
5 /* <copyright>
6  Copyright (c) 1997-2015 Intel Corporation. All Rights Reserved.
7 
8  Redistribution and use in source and binary forms, with or without
9  modification, are permitted provided that the following conditions
10  are met:
11 
12  * Redistributions of source code must retain the above copyright
13  notice, this list of conditions and the following disclaimer.
14  * Redistributions in binary form must reproduce the above copyright
15  notice, this list of conditions and the following disclaimer in the
16  documentation and/or other materials provided with the distribution.
17  * Neither the name of Intel Corporation nor the names of its
18  contributors may be used to endorse or promote products derived
19  from this software without specific prior written permission.
20 
21  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
22  "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
23  LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
24  A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
25  HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
26  SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
27  LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
28  DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
29  THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
30  (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
31  OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32 
33 </copyright> */
34 
35 #ifndef KMP_VERSION_H
36 #define KMP_VERSION_H
37 
38 #ifdef __cplusplus
39  extern "C" {
40 #endif // __cplusplus
41 
42 #ifndef KMP_VERSION_MAJOR
43  #error KMP_VERSION_MAJOR macro is not defined.
44 #endif
45 #define KMP_VERSION_MINOR 0
46 /*
47  Using "magic" prefix in all the version strings is rather convenient to get static version info
48  from binaries by using standard utilities "strings" and "grep", e. g.:
49  $ strings libiomp5.so | grep "@(#)"
50  gives clean list of all version strings in the library. Leading zero helps to keep version
51  string separate from printable characters which may occurs just before version string.
52 */
53 #define KMP_VERSION_MAGIC_STR "\x00@(#) "
54 #define KMP_VERSION_MAGIC_LEN 6 // Length of KMP_VERSION_MAGIC_STR.
55 #define KMP_VERSION_PREF_STR "Intel(R) OMP "
56 #define KMP_VERSION_PREFIX KMP_VERSION_MAGIC_STR KMP_VERSION_PREF_STR
57 
58 /* declare all the version string constants for KMP_VERSION env. variable */
59 extern int const __kmp_version_major;
60 extern int const __kmp_version_minor;
61 extern int const __kmp_version_build;
62 extern int const __kmp_openmp_version;
63 extern char const __kmp_copyright[]; // Old variable, kept for compatibility with ITC and ITP.
64 extern char const __kmp_version_copyright[];
65 extern char const __kmp_version_lib_ver[];
66 extern char const __kmp_version_lib_type[];
67 extern char const __kmp_version_link_type[];
68 extern char const __kmp_version_build_time[];
69 extern char const __kmp_version_target_env[];
70 extern char const __kmp_version_build_compiler[];
71 extern char const __kmp_version_alt_comp[];
72 extern char const __kmp_version_omp_api[];
73 // ??? extern char const __kmp_version_debug[];
74 extern char const __kmp_version_lock[];
75 extern char const __kmp_version_nested_stats_reporting[];
76 extern char const __kmp_version_ftnstdcall[];
77 extern char const __kmp_version_ftncdecl[];
78 extern char const __kmp_version_ftnextra[];
79 
80 void __kmp_print_version_1( void );
81 void __kmp_print_version_2( void );
82 
83 #ifdef __cplusplus
84  } // extern "C"
85 #endif // __cplusplus
86 
87 #endif /* KMP_VERSION_H */