kmp_version.h 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. /*
  2. * kmp_version.h -- version number for this release
  3. */
  4. //===----------------------------------------------------------------------===//
  5. //
  6. // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
  7. // See https://llvm.org/LICENSE.txt for license information.
  8. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
  9. //
  10. //===----------------------------------------------------------------------===//
  11. #ifndef KMP_VERSION_H
  12. #define KMP_VERSION_H
  13. #ifdef __cplusplus
  14. extern "C" {
  15. #endif // __cplusplus
  16. #ifndef KMP_VERSION_MAJOR
  17. #error KMP_VERSION_MAJOR macro is not defined.
  18. #endif
  19. #define KMP_VERSION_MINOR 0
  20. /* Using "magic" prefix in all the version strings is rather convenient to get
  21. static version info from binaries by using standard utilities "strings" and
  22. "grep", e. g.:
  23. $ strings libomp.so | grep "@(#)"
  24. gives clean list of all version strings in the library. Leading zero helps
  25. to keep version string separate from printable characters which may occurs
  26. just before version string. */
  27. #define KMP_VERSION_MAGIC_STR "\x00@(#) "
  28. #define KMP_VERSION_MAGIC_LEN 6 // Length of KMP_VERSION_MAGIC_STR.
  29. #define KMP_VERSION_PREF_STR "LLVM OMP "
  30. #define KMP_VERSION_PREFIX KMP_VERSION_MAGIC_STR KMP_VERSION_PREF_STR
  31. /* declare all the version string constants for KMP_VERSION env. variable */
  32. extern int const __kmp_version_major;
  33. extern int const __kmp_version_minor;
  34. extern int const __kmp_version_build;
  35. extern int const __kmp_openmp_version;
  36. extern char const
  37. __kmp_copyright[]; // Old variable, kept for compatibility with ITC and ITP.
  38. extern char const __kmp_version_copyright[];
  39. extern char const __kmp_version_lib_ver[];
  40. extern char const __kmp_version_lib_type[];
  41. extern char const __kmp_version_link_type[];
  42. extern char const __kmp_version_build_time[];
  43. extern char const __kmp_version_target_env[];
  44. extern char const __kmp_version_build_compiler[];
  45. extern char const __kmp_version_alt_comp[];
  46. extern char const __kmp_version_omp_api[];
  47. // ??? extern char const __kmp_version_debug[];
  48. extern char const __kmp_version_lock[];
  49. extern char const __kmp_version_nested_stats_reporting[];
  50. extern char const __kmp_version_ftnstdcall[];
  51. extern char const __kmp_version_ftncdecl[];
  52. extern char const __kmp_version_ftnextra[];
  53. void __kmp_print_version_1(void);
  54. void __kmp_print_version_2(void);
  55. #ifdef __cplusplus
  56. } // extern "C"
  57. #endif // __cplusplus
  58. #endif /* KMP_VERSION_H */