Skip to content

Commit

Permalink
Fix BANN build failure after adding streamingDiskANN. (#257)
Browse files Browse the repository at this point in the history
* Fix BANN build failure after adding streamingDiskANN.

* Throw exception when calling load_pq_centroid_bin if EXEC_ENV_OLS is defined.

* Fix Variable name.

* Remove commented line.
  • Loading branch information
NingyuanChen authored Mar 6, 2023
1 parent 351bf79 commit 5ba6a5d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/index.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1424,7 +1424,12 @@ namespace diskann {
copy_aligned_data_from_file<_u8>(pq_compressed_file.c_str(), _pq_data,
file_num_points, _num_pq_chunks,
_num_pq_chunks);
#ifdef EXEC_ENV_OLS
throw ANNException("load_pq_centroid_bin should not be called when EXEC_ENV_OLS is defined.",
-1, __FUNCSIG__, __FILE__, __LINE__);
#else
_pq_table.load_pq_centroid_bin(pq_pivots_file.c_str(), _num_pq_chunks);
#endif
}

copy_aligned_data_from_file<T>(filename, _data, file_num_points, file_dim,
Expand Down

0 comments on commit 5ba6a5d

Please sign in to comment.