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

RAFT skeleton project template #1312

Merged
merged 159 commits into from
Mar 24, 2023

Conversation

cjnolet
Copy link
Member

@cjnolet cjnolet commented Mar 1, 2023

This is a copy and modification of a user's project but I think this is going to be generally useful to users as the same types of challenges are going to come up again. In this case, the user wasn't able to build/link because they weren't using rapids-cmake to propagate important configuration settings. I think having a skeleton project available that we build in CI and keep up to date will help new users build more applications on RAFT.

TODO:

  • Make building the template optional
  • Verify this can build in CMake and reuse already built/installed bits
  • Add to docs / readme and reference in README.md
  • Add a little example of invoking an API (maybe pairwise_distances?) to main()

benfred and others added 30 commits January 27, 2023 11:03
Replace faiss bfKnn with code that leverages our pairwise_distance api
and select_k api - by computing tiling over the inputs.

This lets us remove faiss as a dependency
This reverts commit 8eaba84.

Change didn't seem to build in CI
Also remove metrics processors - since is handled inside PW distance
This reverts commit fe728e9.

This is causing incorrect results, just use the faiss select_k call
instead
@github-actions github-actions bot removed the ci label Mar 20, 2023
@cjnolet cjnolet removed the request for review from a team March 21, 2023 13:56
Copy link
Member

@dantegd dantegd left a comment

Choose a reason for hiding this comment

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

Mainly some suggestions and small comments, the template looks fantastic and I think will be super useful for consumers!

README.md Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
cpp/template/README.md Outdated Show resolved Hide resolved
cpp/template/README.md Outdated Show resolved Hide resolved
cpp/template/README.md Outdated Show resolved Hide resolved
cpp/template/build.sh Outdated Show resolved Hide resolved
docs/source/build.md Show resolved Hide resolved
python/pylibraft/pylibraft/neighbors/__init__.py Outdated Show resolved Hide resolved
Copy link
Contributor

@lowener lowener left a comment

Choose a reason for hiding this comment

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

LGTM I found the cmake code particularly useful!

@cjnolet
Copy link
Member Author

cjnolet commented Mar 23, 2023

/merge

@cjnolet
Copy link
Member Author

cjnolet commented Mar 24, 2023

/merge

@rapids-bot rapids-bot bot merged commit 9389108 into rapidsai:branch-23.04 Mar 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CMake cpp improvement Improvement / enhancement to an existing function non-breaking Non-breaking change python
Projects
Development

Successfully merging this pull request may close these issues.

7 participants