Skip to content

Commit

Permalink
Fix pre-volta tests
Browse files Browse the repository at this point in the history
  • Loading branch information
PointKernel committed Nov 14, 2023
1 parent d295ecd commit cce16b0
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion tests/static_map/insert_and_find_test.cu
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,14 @@ __global__ void parallel_sum(Ref v)
}
#if __CUDA_ARCH__ < 700
else {
v.insert(cuco::pair{i, gridDim.x * blockDim.x});
auto constexpr cg_size = Ref::cg_size;
if constexpr (cg_size == 1) {
v.insert(cuco::pair{i, gridDim.x * blockDim.x});
} else {
auto const tile =
cooperative_groups::tiled_partition<cg_size>(cooperative_groups::this_thread_block());
v.insert(tile, cuco::pair{i, gridDim.x * blockDim.x / cg_size});
}
}
#endif
}
Expand Down

0 comments on commit cce16b0

Please sign in to comment.