Skip to content

Commit

Permalink
Merge pull request #494 from STEllAR-GROUP/sve_build_improvements
Browse files Browse the repository at this point in the history
Add SVE feature guard
  • Loading branch information
diehlpk authored May 16, 2024
2 parents bef65a2 + 9436daa commit 86b733c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion octotiger/common_kernel/std_simd.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,11 @@ using host_simd_mask_t = SIMD_NAMESPACE::simd_mask<double, SIMD_NAMESPACE::simd_
static_assert(host_simd_t::size() == 2);
static_assert(host_simd_mask_t::size() == 2);
#elif defined(OCTOTIGER_KOKKOS_SIMD_SVE)
#ifndef __ARM_FEATURE_SVE
#error "SVE Kokkos kernels are specified explicitly but build is without SVE support (__ARM_FEATURE_SVE not defined). Check architecture flags!"
#endif
// Use custom sve types from Srinivas
#include <sve/sve.hpp>
#warning "SVE build"
namespace SIMD_NAMESPACE = sve::experimental::parallelism_v2;
using host_simd_t = sve::experimental::native_simd<double>;
using host_simd_mask_t = sve::experimental::native_simd_mask<double>;
Expand Down

0 comments on commit 86b733c

Please sign in to comment.