| Jim Cownie | 5e8470a | 2013-09-27 10:38:44 +0000 | [diff] [blame] | 1 | /* |
| 2 | * kmp_version.h -- version number for this release |
| Jim Cownie | 4cc4bb4 | 2014-10-07 16:25:50 +0000 | [diff] [blame] | 3 | * $Revision: 42982 $ |
| 4 | * $Date: 2014-02-12 10:11:02 -0600 (Wed, 12 Feb 2014) $ |
| Jim Cownie | 5e8470a | 2013-09-27 10:38:44 +0000 | [diff] [blame] | 5 | */ |
| 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 */ |
| 42 | extern int const __kmp_version_major; |
| 43 | extern int const __kmp_version_minor; |
| 44 | extern int const __kmp_version_build; |
| 45 | extern int const __kmp_openmp_version; |
| 46 | extern char const __kmp_copyright[]; // Old variable, kept for compatibility with ITC and ITP. |
| 47 | extern char const __kmp_version_copyright[]; |
| 48 | extern char const __kmp_version_lib_ver[]; |
| 49 | extern char const __kmp_version_lib_type[]; |
| 50 | extern char const __kmp_version_link_type[]; |
| 51 | extern char const __kmp_version_build_time[]; |
| 52 | extern char const __kmp_version_target_env[]; |
| 53 | extern char const __kmp_version_build_compiler[]; |
| 54 | extern char const __kmp_version_alt_comp[]; |
| 55 | extern char const __kmp_version_omp_api[]; |
| 56 | // ??? extern char const __kmp_version_debug[]; |
| 57 | extern char const __kmp_version_lock[]; |
| Jim Cownie | 5e8470a | 2013-09-27 10:38:44 +0000 | [diff] [blame] | 58 | extern char const __kmp_version_nested_stats_reporting[]; |
| 59 | extern char const __kmp_version_ftnstdcall[]; |
| 60 | extern char const __kmp_version_ftncdecl[]; |
| 61 | extern char const __kmp_version_ftnextra[]; |
| 62 | |
| 63 | void __kmp_print_version_1( void ); |
| 64 | void __kmp_print_version_2( void ); |
| 65 | |
| 66 | #ifdef __cplusplus |
| 67 | } // extern "C" |
| 68 | #endif // __cplusplus |
| 69 | |
| 70 | #endif /* KMP_VERSION_H */ |