diff --git a/core/src/index/knowhere/knowhere/index/vector_index/VecIndexFactory.cpp b/core/src/index/knowhere/knowhere/index/vector_index/VecIndexFactory.cpp index ff8e184b43..8e3119ecac 100644 --- a/core/src/index/knowhere/knowhere/index/vector_index/VecIndexFactory.cpp +++ b/core/src/index/knowhere/knowhere/index/vector_index/VecIndexFactory.cpp @@ -65,9 +65,6 @@ VecIndexFactory::CreateVecIndex(const IndexType& type, const IndexMode mode) { return std::make_shared(); #ifdef MILVUS_GPU_VERSION } else if (type == IndexEnum::INDEX_FAISS_IVFSQ8H) { - if (mode == IndexMode::MODE_CPU) { - return nullptr; - } return std::make_shared(gpu_device); #endif } else if (type == IndexEnum::INDEX_FAISS_BIN_IDMAP) {