Skip to content

Commit

Permalink
Use FAISS with RMM (rapidsai#4297)
Browse files Browse the repository at this point in the history
Answers rapidsai#2821

Authors:
  - Victor Lafargue (https://github.com/viclafargue)

Approvers:
  - Dante Gama Dessavre (https://github.com/dantegd)

URL: rapidsai#4297
  • Loading branch information
viclafargue authored Mar 8, 2022
1 parent 9a60b1a commit 0f24842
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 2 additions & 2 deletions cpp/src/hdbscan/detail/reachability_faiss.cuh
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
#pragma once

#include <faiss/gpu/GpuResources.h>
#include <faiss/gpu/StandardGpuResources.h>

#include <faiss/impl/AuxIndexStructures.h>
#include <faiss/impl/FaissException.h>
Expand All @@ -41,6 +40,7 @@

#include <raft/cuda_utils.cuh>
#include <raft/handle.hpp>
#include <raft/spatial/knn/faiss_mr.hpp>

#include <rmm/device_uvector.hpp>

Expand Down Expand Up @@ -212,7 +212,7 @@ void mutual_reachability_knn_l2(const raft::handle_t& handle,
auto stream = handle.get_stream();

faiss::gpu::DeviceScope ds(device);
faiss::gpu::StandardGpuResources res;
raft::spatial::knn::RmmGpuResources res;

res.noTempMemory();
res.setDefaultStream(device, stream);
Expand Down
1 change: 0 additions & 1 deletion cpp/src_prims/selection/knn.cuh
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@
#include <faiss/gpu/GpuIndexIVFPQ.h>
#include <faiss/gpu/GpuIndexIVFScalarQuantizer.h>
#include <faiss/gpu/GpuResources.h>
#include <faiss/gpu/StandardGpuResources.h>
#include <faiss/gpu/utils/Limits.cuh>
#include <faiss/gpu/utils/Select.cuh>
#include <faiss/gpu/utils/Tensor.cuh>
Expand Down

0 comments on commit 0f24842

Please sign in to comment.