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

Former-commit-id: 65392a505107e20491035d417940a66e67f82ef9
pull/191/head
xiaojun.lin 2019-09-29 10:13:57 +08:00
parent dd048c2593
commit c2ab2bc092
18 changed files with 8 additions and 8 deletions

View File

@ -95,7 +95,7 @@ endif()
set(CORE_INCLUDE_DIRS ${CORE_INCLUDE_DIRS} PARENT_SCOPE)
if(BUILD_UNIT_TEST STREQUAL "ON")
add_subdirectory(test)
add_subdirectory(unittest)
endif()
config_summary()

View File

@ -30,7 +30,7 @@ set(util_srcs
${CORE_SOURCE_DIR}/knowhere/knowhere/adapter/ArrowAdapter.cpp
${CORE_SOURCE_DIR}/knowhere/knowhere/common/Exception.cpp
${CORE_SOURCE_DIR}/knowhere/knowhere/common/Timer.cpp
${CORE_SOURCE_DIR}/test/utils.cpp
${CORE_SOURCE_DIR}/unittest/utils.cpp
)
#<IVF-TEST>

View File

@ -23,7 +23,7 @@
#include "knowhere/index/vector_index/IndexIDMAP.h"
#include "knowhere/index/vector_index/helpers/Cloner.h"
#include "test/utils.h"
#include "unittest/utils.h"
namespace {

View File

@ -35,7 +35,7 @@
#include "knowhere/index/vector_index/IndexIVFSQ.h"
#include "knowhere/index/vector_index/helpers/Cloner.h"
#include "test/utils.h"
#include "unittest/utils.h"
namespace {

View File

@ -26,7 +26,7 @@
#include "knowhere/index/vector_index/IndexKDT.h"
#include "knowhere/index/vector_index/helpers/Definitions.h"
#include "test/utils.h"
#include "unittest/utils.h"
namespace {

View File

@ -24,7 +24,7 @@
#include "knowhere/index/vector_index/helpers/FaissGpuResourceMgr.h"
#include "knowhere/index/vector_index/nsg/NSGIO.h"
#include "test/utils.h"
#include "unittest/utils.h"
namespace {

View File

@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
#include "test/utils.h"
#include "unittest/utils.h"
#include <memory>
#include <string>

View File

@ -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
return int(size / TYPICAL_COUNT * 16384);
}
return 0;
return nlist;
}
knowhere::Config