diff --git a/core/src/index/unittest/Helper.h b/core/src/index/unittest/Helper.h index 428af9abc5..5d7df41b69 100644 --- a/core/src/index/unittest/Helper.h +++ b/core/src/index/unittest/Helper.h @@ -46,9 +46,8 @@ IndexFactory(const std::string& type) { return std::make_shared(); } else if (type == "IVFSQ") { return std::make_shared(); - } #ifdef MILVUS_GPU_VERSION - else if (type == "GPUIVF") { + } else if (type == "GPUIVF") { return std::make_shared(DEVICEID); } else if (type == "GPUIVFPQ") { return std::make_shared(DEVICEID); @@ -56,8 +55,8 @@ IndexFactory(const std::string& type) { return std::make_shared(DEVICEID); } else if (type == "IVFSQHybrid") { return std::make_shared(DEVICEID); - } #endif + } } enum class ParameterType {