mkl_omp_variant.h 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. /*******************************************************************************
  2. * Copyright 2020-2022 Intel Corporation.
  3. *
  4. * This software and the related documents are Intel copyrighted materials, and
  5. * your use of them is governed by the express license under which they were
  6. * provided to you (License). Unless the License provides otherwise, you may not
  7. * use, modify, copy, publish, distribute, disclose or transmit this software or
  8. * the related documents without Intel's prior written permission.
  9. *
  10. * This software and the related documents are provided as is, with no express
  11. * or implied warranties, other than those that are expressly stated in the
  12. * License.
  13. *******************************************************************************/
  14. /*
  15. ! Content:
  16. ! Intel(R) oneAPI Math Kernel Library (oneMKL) helper for OpenMP offload
  17. !******************************************************************************/
  18. #ifndef _MKL_OMP_VARIANT_H_
  19. #define _MKL_OMP_VARIANT_H_
  20. #ifdef __cplusplus
  21. #if __cplusplus > 199711L
  22. #define NOTHROW noexcept
  23. #else
  24. #define NOTHROW throw()
  25. #endif
  26. #else
  27. #define NOTHROW
  28. #endif
  29. #ifdef MKL_ILP64
  30. #define MKL_VARIANT_NAME(domain, func) mkl_ ## domain ## _ ## func ## _omp_offload_ilp64
  31. #else
  32. #define MKL_VARIANT_NAME(domain, func) mkl_ ## domain ## _ ## func ## _omp_offload_lp64
  33. #endif
  34. #endif /* _MKL_OMP_VARIANT_H_ */