Skip to content
This repository has been archived by the owner on Aug 16, 2023. It is now read-only.

Commit

Permalink
Fix gpu compile error (#196)
Browse files Browse the repository at this point in the history
Signed-off-by: Yusheng.Ma <[email protected]>
  • Loading branch information
Presburger authored Jun 2, 2022
1 parent abc1f53 commit a40166e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion knowhere/index/VecIndexFactory.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ VecIndexFactory::CreateVecIndex(const IndexType& type, const IndexMode mode) {
} else if (type == IndexEnum::INDEX_FAISS_IDMAP) {
return std::make_shared<knowhere::GPUIDMAP>(gpu_device);
} else if (type == IndexEnum::INDEX_FAISS_IVFFLAT) {
return std::make_shared<knowhere::GPUIVF_NM>(gpu_device);
return std::make_shared<knowhere::GPUIVF>(gpu_device);
} else if (type == IndexEnum::INDEX_FAISS_IVFPQ) {
return std::make_shared<knowhere::GPUIVFPQ>(gpu_device);
} else if (type == IndexEnum::INDEX_FAISS_IVFSQ8) {
Expand Down
6 changes: 3 additions & 3 deletions knowhere/index/vector_offset_index/gpu/IndexGPUIVF_NM.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,6 @@ class GPUIVF_NM : public IVF, public GPUIndex {
void
AddWithoutIds(const DatasetPtr&, const Config&) override;

void
Load(const BinarySet&) override;

VecIndexPtr
CopyGpuToCpu(const Config&) override;

Expand All @@ -55,6 +52,9 @@ class GPUIVF_NM : public IVF, public GPUIndex {
BinarySet
SerializeImpl(const IndexType&) override;

void
LoadImpl(const BinarySet&, const IndexType&);

void
QueryImpl(int64_t, const float*, int64_t, float*, int64_t*, const Config&, const faiss::BitsetView) override;

Expand Down

0 comments on commit a40166e

Please sign in to comment.