Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
shwina committed Jan 27, 2025
1 parent 11552b5 commit f99c90c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions c/parallel/src/scan.cu
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,8 @@ struct scan_kernel_source
}
scan_tile_state TileState()
{
return *(reinterpret_cast<scan_tile_state*>(build.tile_state));
auto result = (reinterpret_cast<scan_tile_state*>(build.tile_state));
return *result;
}
};

Expand Down Expand Up @@ -477,7 +478,7 @@ extern "C" CCCL_C_API CUresult cccl_device_scan_build(
}

bool is_primitive = not(accum_t.type == cccl_type_enum::STORAGE);
auto tile_state = std::make_unique<scan::scan_tile_state>(status_size, is_primitive, uninitialized_size);
auto tile_state = std::make_unique<scan::scan_tile_state>(is_primitive, status_size, uninitialized_size);

build->cc = cc;
build->cubin = (void*) result.cubin.release();
Expand Down

0 comments on commit f99c90c

Please sign in to comment.