Skip to content

Commit

Permalink
Replace _mm512_loadu_epi64 and _mm512_storeu_epi64 with _mm512_loadu_…
Browse files Browse the repository at this point in the history
…si512 and _mm512_storeu_si512
  • Loading branch information
ldh4 committed Jun 5, 2023
1 parent 18c5395 commit 7b0e378
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions simd/src/Kokkos_SIMD_AVX512.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -388,11 +388,11 @@ class simd<std::int64_t, simd_abi::avx512_fixed_size<8>> {
}
KOKKOS_IMPL_HOST_FORCEINLINE_FUNCTION void copy_from(value_type const* ptr,
element_aligned_tag) {
m_value = _mm512_loadu_epi64(ptr);
m_value = _mm512_loadu_si512(ptr);
}
KOKKOS_IMPL_HOST_FORCEINLINE_FUNCTION void copy_to(
value_type* ptr, element_aligned_tag) const {
_mm512_storeu_epi64(ptr, m_value);
_mm512_storeu_si512(ptr, m_value);
}
KOKKOS_IMPL_HOST_FORCEINLINE_FUNCTION simd operator>>(int rhs) const {
return _mm512_srai_epi64(m_value, rhs);
Expand Down Expand Up @@ -519,11 +519,11 @@ class simd<std::uint64_t, simd_abi::avx512_fixed_size<8>> {
}
KOKKOS_IMPL_HOST_FORCEINLINE_FUNCTION void copy_from(value_type const* ptr,
element_aligned_tag) {
m_value = _mm512_loadu_epi64(ptr);
m_value = _mm512_loadu_si512(ptr);
}
KOKKOS_IMPL_HOST_FORCEINLINE_FUNCTION void copy_to(
value_type* ptr, element_aligned_tag) const {
_mm512_storeu_epi64(ptr, m_value);
_mm512_storeu_si512(ptr, m_value);
}
KOKKOS_IMPL_HOST_FORCEINLINE_FUNCTION simd
operator>>(unsigned int rhs) const {
Expand Down

0 comments on commit 7b0e378

Please sign in to comment.