diff --git a/CHANGELOG.md b/CHANGELOG.md index fc1a3418b74b97f01f943e9ba9f24baf67e9a5cf..6704da5bcb5ad1ab6e0ea9623f2cc1474200cd12 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -15,6 +15,7 @@ Please mark all change in change log and use the issue from GitHub - \#2128 Check has_partition params - \#2131 Distance/ID returned is not correct if searching with duplicate ids - \#2141 Fix server start failed if wal directory exist +- \#2169 Fix SingleIndexTest.IVFSQHybrid unittest - \#2196 Fix server start failed if wal is disabled ## Feature diff --git a/core/src/index/thirdparty/faiss/InvertedLists.cpp b/core/src/index/thirdparty/faiss/InvertedLists.cpp index e126081e4538a5b2684513f9f64873379538f35c..93f1ba9bd2b98f45f07df00794743e8539d6e3ba 100644 --- a/core/src/index/thirdparty/faiss/InvertedLists.cpp +++ b/core/src/index/thirdparty/faiss/InvertedLists.cpp @@ -31,7 +31,9 @@ namespace faiss { PageLockMemory::PageLockMemory(size_t size) : nbytes(size) { auto err = cudaHostAlloc(&(this->data), size, 0); if (err) { - FAISS_THROW_MSG("Fail to alloc page lock memory " + std::to_string(size)); + std::string msg = + "Fail to alloc page lock memory " + std::to_string(size) + ", err code " + std::to_string((int32_t)err); + FAISS_THROW_MSG(msg); } } @@ -42,7 +44,9 @@ PageLockMemory::~PageLockMemory() { PageLockMemory::PageLockMemory(const PageLockMemory& other) { auto err = cudaHostAlloc(&(this->data), other.nbytes, 0); if (err) { - FAISS_THROW_MSG("Fail to alloc page lock memory " + std::to_string(other.nbytes)); + std::string msg = "Fail to alloc page lock memory " + std::to_string(other.nbytes) + ", err code " + + std::to_string((int32_t)err); + FAISS_THROW_MSG(msg); } memcpy(this->data, other.data, other.nbytes); this->nbytes = other.nbytes; diff --git a/core/src/index/unittest/test_customized_index.cpp b/core/src/index/unittest/test_customized_index.cpp index f41de356a816e1e681caa61996ed0c2622a30e24..fa610915cecedf093e91981f2d861aedf6aad8d6 100644 --- a/core/src/index/unittest/test_customized_index.cpp +++ b/core/src/index/unittest/test_customized_index.cpp @@ -24,7 +24,7 @@ class SingleIndexTest : public DataGen, public TestGpuIndexBase { void SetUp() override { TestGpuIndexBase::SetUp(); - nb = 1000000; + nb = 100000; nq = 1000; dim = DIM; Generate(dim, nb, nq);