From e977d2e27c80747d34253f746381bbdd6a230f38 Mon Sep 17 00:00:00 2001 From: tsuki <12711693+enp1s0@users.noreply.github.com> Date: Tue, 16 Apr 2024 08:21:34 +0900 Subject: [PATCH] Fix a compilation error in CAGRA when enabling log output (#2262) This PR fixes a compilation error in CAGRA when enabling log output. Authors: - tsuki (https://github.com/enp1s0) Approvers: - Corey J. Nolet (https://github.com/cjnolet) URL: https://github.com/rapidsai/raft/pull/2262 --- cpp/include/raft/neighbors/detail/cagra/cagra_search.cuh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cpp/include/raft/neighbors/detail/cagra/cagra_search.cuh b/cpp/include/raft/neighbors/detail/cagra/cagra_search.cuh index ccfe3c7e2d..b9edbbfc4a 100644 --- a/cpp/include/raft/neighbors/detail/cagra/cagra_search.cuh +++ b/cpp/include/raft/neighbors/detail/cagra/cagra_search.cuh @@ -90,8 +90,8 @@ void search_main_core( CagraSampleFilterT sample_filter = CagraSampleFilterT()) { RAFT_LOG_DEBUG("# dataset size = %lu, dim = %lu\n", - static_cast(index.data().n_rows()), - static_cast(index.data().dim())); + static_cast(dataset_desc.size), + static_cast(dataset_desc.dim)); RAFT_LOG_DEBUG("# query size = %lu, dim = %lu\n", static_cast(queries.extent(0)), static_cast(queries.extent(1)));