Skip to content

Commit

Permalink
Adding constants from [PR418](NVIDIA/cub#418).
Browse files Browse the repository at this point in the history
  • Loading branch information
Théo Battrel committed Mar 4, 2022
1 parent e0040e2 commit 971038e
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions hipcub/include/hipcub/backend/rocprim/util_type.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -364,10 +364,9 @@ struct Uninitialized
/// Biggest memory-access word that T is a whole multiple of and is not larger than the alignment of T
typedef typename UnitWord<T>::DeviceWord DeviceWord;

enum
{
WORDS = sizeof(T) / sizeof(DeviceWord)
};
static constexpr std::size_t DATA_SIZE = sizeof(T);
static constexpr std::size_t WORD_SIZE = sizeof(DeviceWord);
static constexpr std::size_t WORDS = DATA_SIZE / WORD_SIZE;

/// Backing storage
DeviceWord storage[WORDS];
Expand Down

0 comments on commit 971038e

Please sign in to comment.