Skip to content

Commit

Permalink
Update test
Browse files Browse the repository at this point in the history
  • Loading branch information
sleeepyjack committed Nov 10, 2023
1 parent b3396fd commit 2b1175d
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions tests/static_map/insert_and_find_test.cu
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ __global__ void parallel_sum(Ref v)
#endif
{
auto [iter, inserted] = v.insert_and_find(cuco::pair{i, 1});
if (inserted) { printf("key: %d payload:%d \n", int(iter->first), int(iter->second)); }
// for debugging...
// if (iter->second < 0) {
// asm("trap;");
Expand Down Expand Up @@ -73,7 +72,7 @@ TEMPLATE_TEST_CASE_SIG("Parallel insert-or-update",
thrust::equal_to<Key>{},
cuco::experimental::linear_probing<1, cuco::murmurhash3_32<Key>>{}};

static constexpr int Blocks = 64;
static constexpr int Blocks = 1024;
static constexpr int Threads = 128;

parallel_sum<<<Blocks, Threads>>>(
Expand All @@ -86,10 +85,6 @@ TEMPLATE_TEST_CASE_SIG("Parallel insert-or-update",
thrust::sequence(thrust::device, d_keys.begin(), d_keys.end());
m.find(d_keys.begin(), d_keys.end(), d_values.begin());

for (auto const t : d_values) {
printf("### %d\n", int(t));
}

REQUIRE(cuco::test::all_of(
d_values.begin(), d_values.end(), [] __device__(Value v) { return v == Blocks * Threads; }));
}

0 comments on commit 2b1175d

Please sign in to comment.