From 67c24619e4f5ab2097b74cc397732c17a25d6944 Mon Sep 17 00:00:00 2001 From: greg7mdp Date: Sun, 4 Feb 2024 10:18:44 -0500 Subject: [PATCH] Fix nvcc warnings - issue #229 --- parallel_hashmap/phmap.h | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/parallel_hashmap/phmap.h b/parallel_hashmap/phmap.h index 87812bd..103f7ae 100644 --- a/parallel_hashmap/phmap.h +++ b/parallel_hashmap/phmap.h @@ -424,14 +424,10 @@ struct GroupSse2Impl #endif } -#ifdef __INTEL_COMPILER -#pragma warning push -#pragma warning disable 68 -#endif // Returns a bitmask representing the positions of empty or deleted slots. // ----------------------------------------------------------------------- BitMask MatchEmptyOrDeleted() const { - auto special = _mm_set1_epi8(static_cast(kSentinel)); + auto special = _mm_set1_epi8(static_cast(kSentinel)); return BitMask( static_cast(_mm_movemask_epi8(_mm_cmpgt_epi8_fixed(special, ctrl)))); } @@ -439,13 +435,10 @@ struct GroupSse2Impl // Returns the number of trailing empty or deleted elements in the group. // ---------------------------------------------------------------------- uint32_t CountLeadingEmptyOrDeleted() const { - auto special = _mm_set1_epi8(static_cast(kSentinel)); + auto special = _mm_set1_epi8(static_cast(kSentinel)); return TrailingZeros( static_cast(_mm_movemask_epi8(_mm_cmpgt_epi8_fixed(special, ctrl)) + 1)); } -#ifdef __INTEL_COMPILER -#pragma warning pop -#endif // ---------------------------------------------------------------------- void ConvertSpecialToEmptyAndFullToDeleted(ctrl_t* dst) const {