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