Skip to content
This repository has been archived by the owner on Aug 16, 2023. It is now read-only.

Commit

Permalink
Update CMakeLists.txt (#119)
Browse files Browse the repository at this point in the history
  • Loading branch information
cydrain authored Apr 7, 2022
1 parent e5ece80 commit 1eada3f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ include( CheckCXXCompilerFlag )
if ( ${CMAKE_SYSTEM_NAME} MATCHES "Darwin" )
message(STATUS "MacOS")
set ( MACOS TRUE )
set ( CMAKE_CXX_FLAGS "-L/usr/local/opt/libomp/lib" )
set ( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -L/usr/local/opt/libomp/lib" )
elseif ( "${CMAKE_SYSTEM}" MATCHES "Linux" )
message( STATUS "Linux")
set ( LINUX TRUE )
Expand Down
8 changes: 4 additions & 4 deletions unittest/benchmark/benchmark_knowhere_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ print_array(const char* header, bool is_integer, const void* arr, int32_t nq, in
* SIFT 128 1,000,000 10,000 100 Euclidean HDF5 (501MB)
*************************************************************************************/

class Benchmark : public ::testing::Test {
class Benchmark_knowhere : public ::testing::Test {
public:
bool parse_ann_test_name() {
size_t pos1, pos2;
Expand Down Expand Up @@ -429,7 +429,7 @@ class Benchmark : public ::testing::Test {
std::string binary_header_;
};

TEST_F(Benchmark, TEST_IVFFLAT_NM) {
TEST_F(Benchmark_knowhere, TEST_IVFFLAT_NM) {
const std::vector<int32_t> nlists = {256, 512};
const std::vector<int32_t> nqs = {100};
const std::vector<int32_t> topks = {10};
Expand Down Expand Up @@ -460,7 +460,7 @@ TEST_F(Benchmark, TEST_IVFFLAT_NM) {
}
}

TEST_F(Benchmark, TEST_IVFSQ8) {
TEST_F(Benchmark_knowhere, TEST_IVFSQ8) {
const std::vector<int32_t> nlists = {256, 512};
const std::vector<int32_t> nqs = {100};
const std::vector<int32_t> topks = {10};
Expand All @@ -485,7 +485,7 @@ TEST_F(Benchmark, TEST_IVFSQ8) {
}
}

TEST_F(Benchmark, TEST_HNSW) {
TEST_F(Benchmark_knowhere, TEST_HNSW) {
const std::vector<int32_t> ms = {8, 16};
const std::vector<int32_t> efCons = {100, 200, 300};
const std::vector<int32_t> nqs = {100};
Expand Down

0 comments on commit 1eada3f

Please sign in to comment.