Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add IVF-Flat C++ example #1828

Merged
merged 13 commits into from
Sep 26, 2023
Merged
Prev Previous commit
Next Next commit
Remove RAFT_ENABLE_EXPLICIT_INSTANTIATE_ONLY flag
  • Loading branch information
tfeher committed Sep 22, 2023
commit e9c5b341110541434b2ef9b123a1f180787c5fa6
6 changes: 0 additions & 6 deletions cpp/template/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,3 @@ target_link_libraries(CAGRA_EXAMPLE PRIVATE raft::raft raft::compiled)
add_executable(IVF_FLAT_EXAMPLE src/ivf_flat_example.cu)
target_link_libraries(IVF_FLAT_EXAMPLE PRIVATE raft::raft raft::compiled)

# We link the example programs to raft::compiled, to reduce compile time. To ensure that we do not
# implicitly instantiate kernels that are expensive to compile, we add the
# RAF_EXPLICIT_INSTANTIATE_ONLY flag. This is optional, for details see
# https://github.com/rapidsai/raft/blob/branch-23.10/docs/source/developer_guide.md#header-organization-of-expensive-function-templates
target_compile_definitions(CAGRA_EXAMPLE PRIVATE "RAFT_EXPLICIT_INSTANTIATE_ONLY")
target_compile_definitions(IVF_FLAT_EXAMPLE PRIVATE "RAFT_EXPLICIT_INSTANTIATE_ONLY")