Skip to content

Commit

Permalink
Check AVX, AVX2, AVX512XEON compiler macros on KokkosCore_config.h (k…
Browse files Browse the repository at this point in the history
…okkos#6248)

* Check AVX, AVX2, AVX512XEON compiler macros on KokkosCore_config.h

* Check in Kokkos_SIMD.hpp

* Add empty lines
  • Loading branch information
masterleinad committed Aug 29, 2023
1 parent 66f5c04 commit d122c39
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions simd/src/Kokkos_SIMD.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,23 @@

#include <Kokkos_SIMD_Scalar.hpp>

#ifdef KOKKOS_ARCH_AVX2
#include <Kokkos_Macros.hpp>

#if defined(KOKKOS_ARCH_AVX) && !defined(__AVX__)
#error "__AVX__ must be defined for KOKKOS_ARCH_AVX"
#endif

#if defined(KOKKOS_ARCH_AVX2)
#if !defined(__AVX2__)
#error "__AVX2__ must be defined for KOKKOS_ARCH_AVX2"
#endif
#include <Kokkos_SIMD_AVX2.hpp>
#endif

#ifdef KOKKOS_ARCH_AVX512XEON
#if defined(KOKKOS_ARCH_AVX512XEON)
#if !defined(__AVX512F__)
#error "__AVX512F__ must be defined for KOKKOS_ARCH_AVX512XEON"
#endif
#include <Kokkos_SIMD_AVX512.hpp>
#endif

Expand Down

0 comments on commit d122c39

Please sign in to comment.