kmp_version.h

Go to the documentation of this file.
00001 /*
00002  * kmp_version.h -- version number for this release
00003  * $Revision: 42181 $
00004  * $Date: 2013-03-26 15:04:45 -0500 (Tue, 26 Mar 2013) $
00005  */
00006 
00007 /* <copyright>
00008     Copyright (c) 1997-2013 Intel Corporation.  All Rights Reserved.
00009 
00010     Redistribution and use in source and binary forms, with or without
00011     modification, are permitted provided that the following conditions
00012     are met:
00013 
00014       * Redistributions of source code must retain the above copyright
00015         notice, this list of conditions and the following disclaimer.
00016       * Redistributions in binary form must reproduce the above copyright
00017         notice, this list of conditions and the following disclaimer in the
00018         documentation and/or other materials provided with the distribution.
00019       * Neither the name of Intel Corporation nor the names of its
00020         contributors may be used to endorse or promote products derived
00021         from this software without specific prior written permission.
00022 
00023     THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
00024     "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
00025     LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
00026     A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
00027     HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
00028     SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
00029     LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
00030     DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
00031     THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
00032     (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
00033     OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
00034 
00035 
00036 ------------------------------------------------------------------------
00037 
00038     Portions of this software are protected under the following patents:
00039         U.S. Patent 5,812,852
00040         U.S. Patent 6,792,599
00041         U.S. Patent 7,069,556
00042         U.S. Patent 7,328,433
00043         U.S. Patent 7,500,242
00044 
00045 </copyright> */
00046 
00047 #ifndef KMP_VERSION_H
00048 #define KMP_VERSION_H
00049 
00050 #ifdef __cplusplus
00051     extern "C" {
00052 #endif // __cplusplus
00053 
00054 #ifndef KMP_VERSION_MAJOR
00055     #error KMP_VERSION_MAJOR macro is not defined.
00056 #endif
00057 #define KMP_VERSION_MINOR       0
00058 /*
00059     Using "magic" prefix in all the version strings is rather convenient to get static version info
00060     from binaries by using standard utilities "strings" and "grep", e. g.:
00061         $ strings libiomp5.so | grep "@(#)"
00062     gives clean list of all version strings in the library. Leading zero helps to keep version
00063     string separate from printable characters which may occurs just before version string.
00064 */
00065 #define KMP_VERSION_MAGIC_STR   "\x00@(#) "
00066 #define KMP_VERSION_MAGIC_LEN   6                // Length of KMP_VERSION_MAGIC_STR.
00067 #define KMP_VERSION_PREF_STR    "Intel(R) OMP "
00068 #define KMP_VERSION_PREFIX      KMP_VERSION_MAGIC_STR KMP_VERSION_PREF_STR
00069 
00070 /* declare all the version string constants for KMP_VERSION env. variable */
00071 extern int  const __kmp_version_major;
00072 extern int  const __kmp_version_minor;
00073 extern int  const __kmp_version_build;
00074 extern int  const __kmp_openmp_version;
00075 extern char const __kmp_copyright[];    // Old variable, kept for compatibility with ITC and ITP.
00076 extern char const __kmp_version_copyright[];
00077 extern char const __kmp_version_lib_ver[];
00078 extern char const __kmp_version_lib_type[];
00079 extern char const __kmp_version_link_type[];
00080 extern char const __kmp_version_build_time[];
00081 extern char const __kmp_version_target_env[];
00082 extern char const __kmp_version_build_compiler[];
00083 extern char const __kmp_version_alt_comp[];
00084 extern char const __kmp_version_omp_api[];
00085 // ??? extern char const __kmp_version_debug[];
00086 extern char const __kmp_version_lock[];
00087 extern char const __kmp_version_perf_v19[];
00088 extern char const __kmp_version_perf_v106[];
00089 extern char const __kmp_version_nested_stats_reporting[];
00090 extern char const __kmp_version_ftnstdcall[];
00091 extern char const __kmp_version_ftncdecl[];
00092 extern char const __kmp_version_ftnextra[];
00093 
00094 void __kmp_print_version_1( void );
00095 void __kmp_print_version_2( void );
00096 
00097 #ifdef __cplusplus
00098     } // extern "C"
00099 #endif // __cplusplus
00100 
00101 #endif /* KMP_VERSION_H */

Generated on 25 Aug 2013 for libomp_oss by  doxygen 1.6.1