forked from kokkos/kokkos
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
SIMD: Add abs() for all int types (kokkos#6069)
* Added abs() for all simd types except for avx2 int64_t * Fixed abs() for AVX2 int64_t * Added abs() test for device side * Changed from using Kokkos::abs usage to manual impl * Removed [[nodiscard]] from abs() in AVX2 * Added a comment about _mm256_abs_epi64 being not available in AVX2 * Converted scalar abs() to use Kokkos::abs() to avoid spurious warnings from nvc++ * Update simd/src/Kokkos_SIMD_Scalar.hpp based on a review Co-authored-by: Damien L-G <dalg24+github@gmail.com> * Fix scalar abs() --------- Co-authored-by: Damien L-G <dalg24+github@gmail.com>
- Loading branch information
Showing
5 changed files
with
171 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters