Skip to content

Commit

Permalink
Fix nvcc warnings - issue #229
Browse files Browse the repository at this point in the history
  • Loading branch information
greg7mdp committed Feb 4, 2024
1 parent 65775fa commit 67c2461
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions parallel_hashmap/phmap.h
Original file line number Diff line number Diff line change
Expand Up @@ -424,28 +424,21 @@ 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<uint32_t, kWidth> MatchEmptyOrDeleted() const {
auto special = _mm_set1_epi8(static_cast<uint8_t>(kSentinel));
auto special = _mm_set1_epi8(static_cast<char>(kSentinel));
return BitMask<uint32_t, kWidth>(
static_cast<uint32_t>(_mm_movemask_epi8(_mm_cmpgt_epi8_fixed(special, ctrl))));
}

// Returns the number of trailing empty or deleted elements in the group.
// ----------------------------------------------------------------------
uint32_t CountLeadingEmptyOrDeleted() const {
auto special = _mm_set1_epi8(static_cast<uint8_t>(kSentinel));
auto special = _mm_set1_epi8(static_cast<char>(kSentinel));
return TrailingZeros(
static_cast<uint32_t>(_mm_movemask_epi8(_mm_cmpgt_epi8_fixed(special, ctrl)) + 1));
}
#ifdef __INTEL_COMPILER
#pragma warning pop
#endif

// ----------------------------------------------------------------------
void ConvertSpecialToEmptyAndFullToDeleted(ctrl_t* dst) const {
Expand Down

0 comments on commit 67c2461

Please sign in to comment.