Skip to content
This repository has been archived by the owner on Mar 21, 2024. It is now read-only.

Commit

Permalink
Merge pull request #714 from senior-zero/fix-main/github/three_way_pa…
Browse files Browse the repository at this point in the history
…rtition_hang

Workaround three-way partition compilation issue
  • Loading branch information
gevtushenko committed Jun 9, 2023
2 parents aaf5498 + 022651b commit 01f8003
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions test/test_device_three_way_partition.cu
Original file line number Diff line number Diff line change
Expand Up @@ -379,16 +379,16 @@ template <typename ValueT>
struct CountToPair
{
template <typename OffsetT>
__device__ __host__ Pair<ValueT, std::uint64_t>operator()(OffsetT id)
__device__ __host__ Pair<ValueT, std::uint32_t> operator()(OffsetT id)
{
return Pair<ValueT, std::uint64_t>(static_cast<ValueT>(id), id);
return Pair<ValueT, std::uint32_t>(static_cast<ValueT>(id), id);
}
};

template <typename KeyT>
void TestStability(int num_items)
{
using T = Pair<KeyT, std::uint64_t>;
using T = Pair<KeyT, std::uint32_t>;
thrust::device_vector<T> in(num_items);

thrust::tabulate(in.begin(), in.end(), CountToPair<KeyT>{});
Expand Down Expand Up @@ -584,8 +584,9 @@ int main(int argc, char **argv)
// Initialize device
CubDebugExit(args.DeviceInit());

Test<std::uint8_t>();
Test<std::uint16_t>();
// NVBug 4136386
// Test<std::uint8_t>();
// Test<std::uint16_t>();
Test<std::uint32_t>();
Test<std::uint64_t>();

Expand Down

0 comments on commit 01f8003

Please sign in to comment.