提交 c2ab2bc0 编写于 作者: X xiaojun.lin

MS-565 rename test->unittest and fix parameter autotune bug


Former-commit-id: 65392a505107e20491035d417940a66e67f82ef9
上级 dd048c25
...@@ -95,7 +95,7 @@ endif() ...@@ -95,7 +95,7 @@ endif()
set(CORE_INCLUDE_DIRS ${CORE_INCLUDE_DIRS} PARENT_SCOPE) set(CORE_INCLUDE_DIRS ${CORE_INCLUDE_DIRS} PARENT_SCOPE)
if(BUILD_UNIT_TEST STREQUAL "ON") if(BUILD_UNIT_TEST STREQUAL "ON")
add_subdirectory(test) add_subdirectory(unittest)
endif() endif()
config_summary() config_summary()
...@@ -30,7 +30,7 @@ set(util_srcs ...@@ -30,7 +30,7 @@ set(util_srcs
${CORE_SOURCE_DIR}/knowhere/knowhere/adapter/ArrowAdapter.cpp ${CORE_SOURCE_DIR}/knowhere/knowhere/adapter/ArrowAdapter.cpp
${CORE_SOURCE_DIR}/knowhere/knowhere/common/Exception.cpp ${CORE_SOURCE_DIR}/knowhere/knowhere/common/Exception.cpp
${CORE_SOURCE_DIR}/knowhere/knowhere/common/Timer.cpp ${CORE_SOURCE_DIR}/knowhere/knowhere/common/Timer.cpp
${CORE_SOURCE_DIR}/test/utils.cpp ${CORE_SOURCE_DIR}/unittest/utils.cpp
) )
#<IVF-TEST> #<IVF-TEST>
......
...@@ -23,7 +23,7 @@ ...@@ -23,7 +23,7 @@
#include "knowhere/index/vector_index/IndexIDMAP.h" #include "knowhere/index/vector_index/IndexIDMAP.h"
#include "knowhere/index/vector_index/helpers/Cloner.h" #include "knowhere/index/vector_index/helpers/Cloner.h"
#include "test/utils.h" #include "unittest/utils.h"
namespace { namespace {
......
...@@ -35,7 +35,7 @@ ...@@ -35,7 +35,7 @@
#include "knowhere/index/vector_index/IndexIVFSQ.h" #include "knowhere/index/vector_index/IndexIVFSQ.h"
#include "knowhere/index/vector_index/helpers/Cloner.h" #include "knowhere/index/vector_index/helpers/Cloner.h"
#include "test/utils.h" #include "unittest/utils.h"
namespace { namespace {
......
...@@ -26,7 +26,7 @@ ...@@ -26,7 +26,7 @@
#include "knowhere/index/vector_index/IndexKDT.h" #include "knowhere/index/vector_index/IndexKDT.h"
#include "knowhere/index/vector_index/helpers/Definitions.h" #include "knowhere/index/vector_index/helpers/Definitions.h"
#include "test/utils.h" #include "unittest/utils.h"
namespace { namespace {
......
...@@ -24,7 +24,7 @@ ...@@ -24,7 +24,7 @@
#include "knowhere/index/vector_index/helpers/FaissGpuResourceMgr.h" #include "knowhere/index/vector_index/helpers/FaissGpuResourceMgr.h"
#include "knowhere/index/vector_index/nsg/NSGIO.h" #include "knowhere/index/vector_index/nsg/NSGIO.h"
#include "test/utils.h" #include "unittest/utils.h"
namespace { namespace {
......
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
// specific language governing permissions and limitations // specific language governing permissions and limitations
// under the License. // under the License.
#include "test/utils.h" #include "unittest/utils.h"
#include <memory> #include <memory>
#include <string> #include <string>
......
...@@ -81,7 +81,7 @@ IVFConfAdapter::MatchNlist(const int64_t& size, const int64_t& nlist) { ...@@ -81,7 +81,7 @@ IVFConfAdapter::MatchNlist(const int64_t& size, const int64_t& nlist) {
// calculate a proper nlist if nlist not specified or size less than TYPICAL_COUNT // calculate a proper nlist if nlist not specified or size less than TYPICAL_COUNT
return int(size / TYPICAL_COUNT * 16384); return int(size / TYPICAL_COUNT * 16384);
} }
return 0; return nlist;
} }
knowhere::Config knowhere::Config
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册