Skip to content

Commit 53bc861

Browse files
authored
Merge branch 'main' into java/fix-test-deallocation-issue
2 parents 1a0b727 + 713584b commit 53bc861

14 files changed

Lines changed: 38 additions & 157 deletions

File tree

c/src/core/c_api.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ extern "C" cuvsError_t cuvsRMMAlloc(cuvsResources_t res, void** ptr, size_t byte
124124
return cuvs::core::translate_exceptions([=] {
125125
auto res_ptr = reinterpret_cast<raft::resources*>(res);
126126
auto mr = rmm::mr::get_current_device_resource();
127-
*ptr = mr->allocate(bytes, raft::resource::get_cuda_stream(*res_ptr));
127+
*ptr = mr->allocate(raft::resource::get_cuda_stream(*res_ptr), bytes);
128128
});
129129
}
130130

@@ -133,7 +133,7 @@ extern "C" cuvsError_t cuvsRMMFree(cuvsResources_t res, void* ptr, size_t bytes)
133133
return cuvs::core::translate_exceptions([=] {
134134
auto res_ptr = reinterpret_cast<raft::resources*>(res);
135135
auto mr = rmm::mr::get_current_device_resource();
136-
mr->deallocate(ptr, bytes, raft::resource::get_cuda_stream(*res_ptr));
136+
mr->deallocate(raft::resource::get_cuda_stream(*res_ptr), ptr, bytes);
137137
});
138138
}
139139

@@ -187,13 +187,13 @@ extern "C" cuvsError_t cuvsRMMHostAlloc(void** ptr, size_t bytes)
187187
{
188188
return cuvs::core::translate_exceptions([=] {
189189
if (pinned_mr == nullptr) { pinned_mr = std::make_unique<rmm::mr::pinned_host_memory_resource>(); }
190-
*ptr = pinned_mr->allocate(bytes);
190+
*ptr = pinned_mr->allocate_sync(bytes);
191191
});
192192
}
193193

194194
extern "C" cuvsError_t cuvsRMMHostFree(void* ptr, size_t bytes)
195195
{
196-
return cuvs::core::translate_exceptions([=] { pinned_mr->deallocate(ptr, bytes); });
196+
return cuvs::core::translate_exceptions([=] { pinned_mr->deallocate_sync(ptr, bytes); });
197197
}
198198

199199
thread_local std::string last_error_text = "";

conda/environments/bench_ann_cuda-129_arch-aarch64.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ channels:
55
- rapidsai-nightly
66
- conda-forge
77
dependencies:
8-
- benchmark>=1.8.2
98
- c-compiler
109
- clang-tools==20.1.4
1110
- clang==20.1.4

conda/environments/bench_ann_cuda-129_arch-x86_64.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ channels:
55
- rapidsai-nightly
66
- conda-forge
77
dependencies:
8-
- benchmark>=1.8.2
98
- c-compiler
109
- clang-tools==20.1.4
1110
- clang==20.1.4

conda/environments/bench_ann_cuda-130_arch-aarch64.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ channels:
55
- rapidsai-nightly
66
- conda-forge
77
dependencies:
8-
- benchmark>=1.8.2
98
- c-compiler
109
- clang-tools==20.1.4
1110
- clang==20.1.4

conda/environments/bench_ann_cuda-130_arch-x86_64.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ channels:
55
- rapidsai-nightly
66
- conda-forge
77
dependencies:
8-
- benchmark>=1.8.2
98
- c-compiler
109
- clang-tools==20.1.4
1110
- clang==20.1.4

conda/recipes/cuvs-bench-cpu/recipe.yaml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,6 @@ requirements:
5858
- ninja
5959
- ${{ stdlib("c") }}
6060
host:
61-
- benchmark
6261
- glog ${{ glog_version }}
6362
- nlohmann_json ${{ nlohmann_json_version }}
6463
- openblas
@@ -72,7 +71,6 @@ requirements:
7271
- libboost-devel=1.87
7372
- mkl-devel=2023
7473
run:
75-
- benchmark
7674
- click
7775
- glog ${{ glog_version }}
7876
- h5py ${{ h5py_version }}
@@ -89,7 +87,6 @@ requirements:
8987
ignore_run_exports:
9088
by_name:
9189
- glog
92-
- libaio
9390
- libboost
9491
- libcublas
9592
- mkl # relaxes pin from host `mkl-devel`

conda/recipes/cuvs-bench/recipe.yaml

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -38,14 +38,10 @@ requirements:
3838
- setuptools >=64.0.0
3939
run:
4040
- ${{ pin_compatible("cuda-version", upper_bound="x", lower_bound="x") }}
41-
- benchmark
4241
- click
43-
- cuda-cudart
4442
- cupy >=13.6.0
4543
- cuvs =${{ version }}
46-
- glog ${{ glog_version }}
4744
- h5py ${{ h5py_version }}
48-
- libcublas
4945
- libcuvs-bench-ann =${{ version }}
5046
- matplotlib-base>=3.9
5147
- pandas
@@ -56,17 +52,9 @@ requirements:
5652
# rmm is needed to determine if package is gpu-enabled
5753
- rmm =${{ minor_version }}
5854
- scikit-learn>=1.5
59-
- if: linux64
60-
then: mkl =2023
6155
ignore_run_exports:
6256
by_name:
6357
- cuda-version
64-
- cuda-cudart
65-
- glog
66-
- libaio
67-
- libboost
68-
- libcublas
69-
- mkl
7058

7159
tests:
7260
- package_contents:

cpp/CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -493,7 +493,6 @@ if(NOT BUILD_CPU_ONLY)
493493
src/neighbors/nn_descent_index.cpp
494494
src/neighbors/nn_descent_int8.cu
495495
src/neighbors/nn_descent_uint8.cu
496-
src/neighbors/reachability.cu
497496
src/neighbors/refine/detail/refine_device_float_float.cu
498497
src/neighbors/refine/detail/refine_device_half_float.cu
499498
src/neighbors/refine/detail/refine_device_int8_t_float.cu

cpp/cmake/thirdparty/get_nlohmann_json.cmake

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@ function(find_and_configure_nlohmann_json)
1818
EXCLUDE_FROM_ALL ${PKG_EXCLUDE_FROM_ALL}
1919
)
2020

21-
if(glog_ADDED)
22-
message(VERBOSE "cuVS: Using glog located in ${glog_SOURCE_DIR}")
21+
if(nlohmann_json_ADDED)
22+
message(VERBOSE "cuVS: Using nlohmann_json located in ${nlohmann_json_SOURCE_DIR}")
2323
else()
24-
message(VERBOSE "cuVS: Using glog located in ${glog_DIR}")
24+
message(VERBOSE "cuVS: Using nlohmann_json located in ${nlohmann_json_DIR}")
2525
endif()
2626

2727
endfunction()

cpp/include/cuvs/neighbors/reachability.hpp

Lines changed: 0 additions & 68 deletions
This file was deleted.

0 commit comments

Comments
 (0)