Skip to content

Commit

Permalink
Use managed memory for the new temprorary buffer
Browse files Browse the repository at this point in the history
  • Loading branch information
tfeher committed Jan 18, 2024
1 parent 0cb6caf commit 629e6fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cpp/include/raft/neighbors/detail/ivf_pq_build.cuh
Original file line number Diff line number Diff line change
Expand Up @@ -1763,7 +1763,7 @@ auto build(raft::resources const& handle,
// Besides just sampling, we transform the input dataset into floats to make it easier
// to use gemm operations from cublas.
auto trainset =
make_device_mdarray<float>(handle, device_mr, make_extents<IdxT>(n_rows_train, dim));
make_device_mdarray<float>(handle, &managed_mr, make_extents<IdxT>(n_rows_train, dim));

if constexpr (std::is_same_v<T, float>) {
raft::spatial::knn::detail::utils::subsample(
Expand Down

0 comments on commit 629e6fa

Please sign in to comment.