提交 1b0ef89e 编写于 作者: W wxyu

fix flat search doesn't use gpu bug

上级 21c98a46
...@@ -6,6 +6,7 @@ Please mark all change in change log and use the ticket from JIRA. ...@@ -6,6 +6,7 @@ Please mark all change in change log and use the ticket from JIRA.
## Bug ## Bug
- \#246 - Exclude src/external folder from code coverage for jenkin ci - \#246 - Exclude src/external folder from code coverage for jenkin ci
- \#248 - Reside src/external in thirdparty - \#248 - Reside src/external in thirdparty
- \#327 - Search does not use GPU when index type is FLAT
## Feature ## Feature
- \#12 - Pure CPU version for Milvus - \#12 - Pure CPU version for Milvus
......
...@@ -34,7 +34,8 @@ OnlyGPUPass::Run(const TaskPtr& task) { ...@@ -34,7 +34,8 @@ OnlyGPUPass::Run(const TaskPtr& task) {
auto search_task = std::static_pointer_cast<XSearchTask>(task); auto search_task = std::static_pointer_cast<XSearchTask>(task);
if (search_task->file_->engine_type_ != (int)engine::EngineType::FAISS_IVFSQ8 && if (search_task->file_->engine_type_ != (int)engine::EngineType::FAISS_IVFSQ8 &&
search_task->file_->engine_type_ != (int)engine::EngineType::FAISS_IVFFLAT) { search_task->file_->engine_type_ != (int)engine::EngineType::FAISS_IVFFLAT &&
search_task->file_->engine_type_ != (int)engine::EngineType::FAISS_IDMAP) {
return false; return false;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册