Skip to content

Commit d241411

Browse files
committed
Removing more pools
1 parent e0e4a30 commit d241411

File tree

4 files changed

+0
-24
lines changed

4 files changed

+0
-24
lines changed

cpp/include/raft/matrix/detail/select_radix.cuh

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -847,12 +847,6 @@ void radix_topk(const T* in,
847847
size_t req_buf = max_chunk_size * buf_len * 2 * (sizeof(T) + sizeof(IdxT));
848848
size_t mem_req = req_aux + req_buf + 256 * 6; // might need extra memory for alignment
849849

850-
auto pool_guard = raft::get_pool_memory_resource(mr, mem_req);
851-
if (pool_guard) {
852-
RAFT_LOG_DEBUG("radix::select_k: using pool memory resource with initial size %zu bytes",
853-
mem_req);
854-
}
855-
856850
rmm::device_uvector<Counter<T, IdxT>> counters(max_chunk_size, stream, mr);
857851
rmm::device_uvector<IdxT> histograms(max_chunk_size * num_buckets, stream, mr);
858852
rmm::device_uvector<T> buf1(max_chunk_size * buf_len, stream, mr);
@@ -1120,10 +1114,6 @@ void radix_topk_one_block(const T* in,
11201114
const size_t max_chunk_size =
11211115
calc_chunk_size<T, IdxT, BlockSize>(batch_size, len, sm_cnt, kernel, true);
11221116

1123-
auto pool_guard =
1124-
raft::get_pool_memory_resource(mr, max_chunk_size * buf_len * 2 * (sizeof(T) + sizeof(IdxT)));
1125-
if (pool_guard) { RAFT_LOG_DEBUG("radix::select_k: using pool memory resource"); }
1126-
11271117
rmm::device_uvector<char> bufs(
11281118
max_chunk_size * buf_len * 2 * (sizeof(T) + sizeof(IdxT)), stream, mr);
11291119

cpp/include/raft/matrix/detail/select_warpsort.cuh

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -988,10 +988,6 @@ void select_k_(int num_of_block,
988988
rmm::cuda_stream_view stream,
989989
rmm::mr::device_memory_resource* mr = nullptr)
990990
{
991-
auto pool_guard = raft::get_pool_memory_resource(
992-
mr, num_of_block * k * batch_size * 2 * std::max(sizeof(T), sizeof(IdxT)));
993-
if (pool_guard) { RAFT_LOG_DEBUG("warpsort::select_k: using pool memory resource"); }
994-
995991
rmm::device_uvector<T> tmp_val(num_of_block * k * batch_size, stream, mr);
996992
rmm::device_uvector<IdxT> tmp_idx(num_of_block * k * batch_size, stream, mr);
997993

cpp/include/raft/neighbors/detail/cagra/cagra_build.cuh

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -124,10 +124,6 @@ void build_knn_graph(raft::resources const& res,
124124
bool first = true;
125125
const auto start_clock = std::chrono::system_clock::now();
126126

127-
rmm::mr::device_memory_resource* device_memory = nullptr;
128-
auto pool_guard = raft::get_pool_memory_resource(device_memory, 1024 * 1024);
129-
if (pool_guard) { RAFT_LOG_DEBUG("ivf_pq using pool memory resource"); }
130-
131127
raft::spatial::knn::detail::utils::batch_load_iterator<DataT> vec_batches(
132128
dataset.data_handle(),
133129
dataset.extent(0),

cpp/include/raft/neighbors/detail/ivf_flat_search-inl.cuh

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -233,12 +233,6 @@ inline void search(raft::resources const& handle,
233233
raft::div_rounding_up_safe<uint64_t>(
234234
kExpectedWsSize, 16ull * uint64_t{n_probes} * k + 4ull * index.dim()));
235235

236-
auto pool_guard = raft::get_pool_memory_resource(mr, max_queries * n_probes * k * 16);
237-
if (pool_guard) {
238-
RAFT_LOG_DEBUG("ivf_flat::search: using pool memory resource with initial size %zu bytes",
239-
n_queries * n_probes * k * 16ull);
240-
}
241-
242236
for (uint32_t offset_q = 0; offset_q < n_queries; offset_q += max_queries) {
243237
uint32_t queries_batch = min(max_queries, n_queries - offset_q);
244238

0 commit comments

Comments
 (0)