From bb888f48e6bbfbb39c0749f082bae544d2773339 Mon Sep 17 00:00:00 2001 From: Tamas Bela Feher Date: Mon, 5 Dec 2022 14:53:45 +0100 Subject: [PATCH] Fix double definition error in ANN refinement header (#1067) Authors: - Tamas Bela Feher (https://github.com/tfeher) Approvers: - Corey J. Nolet (https://github.com/cjnolet) URL: https://github.com/rapidsai/raft/pull/1067 --- cpp/include/raft/neighbors/detail/refine.cuh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cpp/include/raft/neighbors/detail/refine.cuh b/cpp/include/raft/neighbors/detail/refine.cuh index 2dfaa5a5cb..7d3779c89e 100644 --- a/cpp/include/raft/neighbors/detail/refine.cuh +++ b/cpp/include/raft/neighbors/detail/refine.cuh @@ -141,7 +141,7 @@ typedef struct { float distance; } struct_for_refinement; -int _postprocessing_qsort_compare(const void* v1, const void* v2) +inline int _postprocessing_qsort_compare(const void* v1, const void* v2) { // sort in ascending order if (((struct_for_refinement*)v1)->distance > ((struct_for_refinement*)v2)->distance) {