From d9ff7cb5aae156f7c8cf646503145b52688abb02 Mon Sep 17 00:00:00 2001 From: Tamas Bela Feher Date: Sun, 4 Dec 2022 23:03:09 +0100 Subject: [PATCH] Fix double definition error in ANN refinement --- 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) {