Skip to content

Commit

Permalink
fix pgm
Browse files Browse the repository at this point in the history
  • Loading branch information
upsj committed Apr 8, 2024
1 parent 4650023 commit a0a4543
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions common/cuda_hip/multigrid/pgm_kernels.hpp.inc
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,11 @@ void compute_coarse_coo(std::shared_ptr<const DefaultExecutor> exec,
matrix::Coo<ValueType, IndexType>* coarse_coo)
{
auto vals_it = as_device_type(vals);
auto key_it =
thrust::make_zip_iterator(thrust::make_tuple(row_idxs, col_idxs));
// this const_cast is necessary as a workaround for CCCL bug
// https://github.com/NVIDIA/cccl/issues/1527
// shipped with CUDA 12.4
auto key_it = thrust::make_zip_iterator(thrust::make_tuple(
const_cast<IndexType*>(row_idxs), const_cast<IndexType*>(col_idxs)));

auto coarse_vals_it = as_device_type(coarse_coo->get_values());
auto coarse_key_it = thrust::make_zip_iterator(thrust::make_tuple(
Expand Down

0 comments on commit a0a4543

Please sign in to comment.