ippverstr.gen 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  1. /*
  2. * Copyright (C) 2016 Intel Corporation. All rights reserved.
  3. *
  4. * Redistribution and use in source and binary forms, with or without
  5. * modification, are permitted provided that the following conditions
  6. * are met:
  7. *
  8. * * Redistributions of source code must retain the above copyright
  9. * notice, this list of conditions and the following disclaimer.
  10. * * Redistributions in binary form must reproduce the above copyright
  11. * notice, this list of conditions and the following disclaimer in
  12. * the documentation and/or other materials provided with the
  13. * distribution.
  14. * * Neither the name of Intel Corporation nor the names of its
  15. * contributors may be used to endorse or promote products derived
  16. * from this software without specific prior written permission.
  17. *
  18. * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  19. * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  20. * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  21. * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  22. * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  23. * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  24. * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  25. * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  26. * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  27. * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  28. * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  29. *
  30. */
  31. #ifdef _IPP_OMP_STATIC
  32. #define LIB_THREADS " threaded"
  33. #define CORE_THREADS " (threaded)"
  34. #else
  35. #define LIB_THREADS ""
  36. #define CORE_THREADS ""
  37. #endif
  38. #define GET_LIBRARY_NAME( cpu, is ) #cpu, IPP_LIB_SHORTNAME() " " is " (" #cpu LIB_THREADS ")"
  39. static const IppLibraryVersion SLIBVERNAME = {
  40. /* major, minor, update (ex-majorBuild) */
  41. BASE_VERSION(),
  42. #if defined IPP_REVISION
  43. IPP_REVISION,
  44. #else
  45. -1,
  46. #endif /* IPP_REVISION */
  47. #if defined( _CORE )
  48. /*GET_LIBRARY_NAME( core )*/
  49. "core",
  50. "ippCore" CORE_THREADS
  51. #elif ( _IPP_ARCH == _IPP_ARCH_IA32 ) || ( _IPP_ARCH == _IPP_ARCH_LP32 )
  52. #if ( _IPP == _IPP_M5 )
  53. GET_LIBRARY_NAME( m5, "586" )
  54. #elif ( _IPP == _IPP_H9 )
  55. GET_LIBRARY_NAME( h9, "AVX2" )
  56. #elif ( _IPP == _IPP_G9 )
  57. GET_LIBRARY_NAME( g9, "AVX" )
  58. #elif ( _IPP == _IPP_P8 )
  59. GET_LIBRARY_NAME( p8, "SSE4.2" )
  60. #elif ( _IPPLP32 == _IPPLP32_S8 )
  61. GET_LIBRARY_NAME( s8, "Atom" )
  62. #elif ( _IPP == _IPP_V8 )
  63. GET_LIBRARY_NAME( v8, "SSSE3" )
  64. #elif ( _IPP == _IPP_W7 )
  65. GET_LIBRARY_NAME( w7, "SSE2" )
  66. #else
  67. GET_LIBRARY_NAME( px, "PX" )
  68. #endif
  69. #elif ( _IPP_ARCH == _IPP_ARCH_EM64T ) || ( _IPP_ARCH == _IPP_ARCH_LP64 )
  70. #if ( _IPP32E == _IPP32E_K0 )
  71. GET_LIBRARY_NAME( k0, "AVX-512F/CD/BW/DQ/VL" )
  72. #elif ( _IPP32E == _IPP32E_N0 )
  73. GET_LIBRARY_NAME( n0, "AVX-512F/CD/ER/PF" )
  74. #elif ( _IPP32E == _IPP32E_E9 )
  75. GET_LIBRARY_NAME( e9, "AVX" )
  76. #elif ( _IPP32E == _IPP32E_L9 )
  77. GET_LIBRARY_NAME( l9, "AVX2" )
  78. #elif ( _IPP32E == _IPP32E_Y8 )
  79. GET_LIBRARY_NAME( y8, "SSE4.2" )
  80. #elif ( _IPPLP64 == _IPPLP64_N8 )
  81. GET_LIBRARY_NAME( n8, "Atom" )
  82. #elif ( _IPP32E == _IPP32E_U8 )
  83. GET_LIBRARY_NAME( u8, "SSSE3" )
  84. #elif ( _IPP32E == _IPP32E_M7 )
  85. GET_LIBRARY_NAME( m7, "SSE3" )
  86. #else
  87. GET_LIBRARY_NAME( mx, "PX" )
  88. #endif
  89. #elif ( _IPP_ARCH == _IPP_ARCH_LRB2 )
  90. #if ( _IPPLRB == _IPPLRB_BX )
  91. GET_LIBRARY_NAME( bx, "PX" )
  92. #elif ( _IPPLRB == _IPPLRB_B2 )
  93. GET_LIBRARY_NAME( b2, "KNC" )
  94. #endif
  95. #else
  96. #error ARCH not supported
  97. #endif
  98. #if defined( TICKTOCK )
  99. "+"
  100. #endif
  101. /* release Version (by Manager) */
  102. ,STR_VERSION()
  103. /* BuildDate (by QA person) */
  104. ,__DATE__
  105. };