Skip to content

refactor/add option to enable diskann#472

Open
richyreachy wants to merge 3 commits into
alibaba:mainfrom
richyreachy:refactor/add_option_to_enable_diskann
Open

refactor/add option to enable diskann#472
richyreachy wants to merge 3 commits into
alibaba:mainfrom
richyreachy:refactor/add_option_to_enable_diskann

Conversation

@richyreachy

Copy link
Copy Markdown
Collaborator

add option to enable diskann

Comment thread CMakeLists.txt
if(NOT ENABLE_DISKANN)
set(DISKANN_SUPPORTED OFF)
add_definitions(-DDISKANN_SUPPORTED=0)
message(STATUS "DiskAnn support disabled by ENABLE_DISKANN=OFF")

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这里还是不太对吧,默认行为应该是要判断当前编译环境是否有libaio的存在,如果存在,那么默认编译diskann;如果不存在,那么不编译diskann;

如果用户强制指定编译diskann,那么就需要检查当前环境是否存在libaio,如果不存在则报错

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants