Skip to content

Commit

Permalink
IOSS: NVidia seems to need this
Browse files Browse the repository at this point in the history
  • Loading branch information
gdsjaar committed Apr 3, 2024
1 parent 47f6a20 commit 9c99f6b
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions packages/seacas/libraries/ioss/src/hopscotch_hash.h
Expand Up @@ -1789,12 +1789,6 @@ namespace tsl {
private:
static const std::size_t MAX_PROBES_FOR_EMPTY_BUCKET = 12 * NeighborhoodSize;
static constexpr float MIN_LOAD_FACTOR_FOR_REHASH = 0.1f;
template <typename T, typename U> struct is_type_same
{
static_assert(std::is_unsigned<T>::value, "T must be an unsigned type");
static_assert(std::is_unsigned<U>::value, "U must be an unsigned type");
static const bool value = sizeof(T) == sizeof(U);
};

/**
* We can only use the hash on rehash if the size of the hash type is the same
Expand All @@ -1804,15 +1798,15 @@ namespace tsl {
*/
template <
class T = size_type,
typename std::enable_if<is_type_same<T, truncated_hash_type>::value>::type * = nullptr>
typename std::enable_if<std::is_same<T, truncated_hash_type>::value>::type * = nullptr>
static bool USE_STORED_HASH_ON_REHASH(size_type /*bucket_count*/)
{
return StoreHash;
}

template <
class T = size_type,
typename std::enable_if<!is_type_same<T, truncated_hash_type>::value>::type * = nullptr>
typename std::enable_if<!std::is_same<T, truncated_hash_type>::value>::type * = nullptr>
static bool USE_STORED_HASH_ON_REHASH(size_type bucket_count)
{
(void)bucket_count;
Expand Down

0 comments on commit 9c99f6b

Please sign in to comment.