Skip to content

Commit

Permalink
Also fix annotations for generator constructor for AVX512 and NEON
Browse files Browse the repository at this point in the history
  • Loading branch information
masterleinad committed Oct 5, 2023
1 parent 96edf73 commit 1ccf499
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion simd/src/Kokkos_SIMD_AVX512.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -1064,7 +1064,7 @@ class simd<float, simd_abi::avx512_fixed_size<8>> {
std::is_invocable_r_v<value_type, G,
std::integral_constant<std::size_t, 0>>,
bool> = false>
KOKKOS_FORCEINLINE_FUNCTION simd(G&& gen)
KOKKOS_IMPL_HOST_FORCEINLINE_FUNCTION simd(G&& gen)
: m_value(_mm256_setr_ps(gen(std::integral_constant<std::size_t, 0>()),
gen(std::integral_constant<std::size_t, 1>()),
gen(std::integral_constant<std::size_t, 2>()),
Expand Down
2 changes: 1 addition & 1 deletion simd/src/Kokkos_SIMD_NEON.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -550,7 +550,7 @@ class simd<float, simd_abi::neon_fixed_size<2>> {
std::is_invocable_r_v<value_type, G,
std::integral_constant<std::size_t, 0>>,
bool> = false>
KOKKOS_FORCEINLINE_FUNCTION simd(G&& gen) {
KOKKOS_IMPL_HOST_FORCEINLINE_FUNCTION simd(G&& gen) {
m_value = vset_lane_f32(gen(std::integral_constant<std::size_t, 0>()),
m_value, 0);
m_value = vset_lane_f32(gen(std::integral_constant<std::size_t, 1>()),
Expand Down

0 comments on commit 1ccf499

Please sign in to comment.