From f322d0a74b6ac72e82a4082c850e9b021f31b796 Mon Sep 17 00:00:00 2001 From: Tamas Bela Feher Date: Thu, 18 Jan 2024 13:35:16 +0100 Subject: [PATCH] Use managed memory for the new temprorary buffer --- cpp/include/raft/neighbors/detail/ivf_pq_build.cuh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cpp/include/raft/neighbors/detail/ivf_pq_build.cuh b/cpp/include/raft/neighbors/detail/ivf_pq_build.cuh index 65278d7944..b3b25550d2 100644 --- a/cpp/include/raft/neighbors/detail/ivf_pq_build.cuh +++ b/cpp/include/raft/neighbors/detail/ivf_pq_build.cuh @@ -1772,7 +1772,7 @@ auto build(raft::resources const& handle, // TODO(tfeher): Enable codebook generation with any type T, and then remove // trainset tmp. auto trainset_tmp = - make_device_mdarray(handle, device_mr, make_extents(n_rows_train, dim)); + make_device_mdarray(handle, &managed_mr, make_extents(n_rows_train, dim)); raft::spatial::knn::detail::utils::subsample( handle, dataset, n_rows, trainset_tmp.view(), random_seed); cudaDeviceSynchronize();