-
Notifications
You must be signed in to change notification settings - Fork 197
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 cutlass 3xTF32,DMMA based L2/cosine distance kernels for SM 8.0 or higher #939
Merged
rapids-bot
merged 28 commits into
rapidsai:branch-22.12
from
mdoijade:cutlass_dist_kernels
Nov 16, 2022
Merged
Changes from 1 commit
Commits
Show all changes
28 commits
Select commit
Hold shift + click to select a range
20648c5
cutlass based euclidean expanded, cosine kernels
mdoijade a9dabc8
add prior ampere pairwisedistmat kernel to prevent redundant kernel c…
mdoijade 1a45bfa
add noexcept to the functor methods
mdoijade c6f091b
merge branch 22.12 and resolve conflicts
mdoijade 7786fcb
fix comments, remove redundant code and fix formatting issues
mdoijade 181fc40
add cutlass cmake support for raft with custom namespace, fix formati…
mdoijade 3d34545
fix formatting issues
mdoijade 02c23ed
fix the cutlass_include_dir path in cmake
mdoijade 7933436
fix bugs in get_cutlass cmake to use cutlass provided properties corr…
mdoijade d4bdec5
remove the cutlass namespace setting in test cmakefiles as it is not …
mdoijade d26bcef
temp remove dist dependency from cutlass to check if it works in ci/cd
mdoijade 4df4185
merge branch-22.12 latest changes
mdoijade 451c3c0
fix get_cutlass.cmake to work with pylibraft by using NvidiaCutlass i…
mdoijade 7b512f9
fix get_cutlass install path, make changes as per review comments
mdoijade a05e1e2
merge branch-22.12
mdoijade d32b4c0
fix clang format issues
mdoijade f7c440a
temp fix to check if python build works
mdoijade b1a1fd7
add raft-exports instead of raft-distance-exports as other raft compo…
mdoijade 4ef44e7
make cutlass to depend only on raft_distance and add raft_distance de…
mdoijade 186fcc7
fix cmake formatting issues
mdoijade 8aa8909
prevent cutlass based pairwise dist kernels to be disabled on cuda 12…
mdoijade abfd493
Moving cutlass dependency to distance and nn to keep them separate.
cjnolet f1b1239
Adding CUTLASS to build docs as dependency
cjnolet 32e6052
Updating to export to both distance and nn
cjnolet f6de9ee
Adding cutlass as private dependency
cjnolet 9bf0647
Making cutlass INTERFACE in raft::nn and raft::distance
cjnolet 8f0119a
Using proper exports per Robert Maynard's suggestion.
cjnolet 6ad4fd1
Adding cutlass as private dependency of lib targets
cjnolet File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
merge branch-22.12
- Loading branch information
commit a05e1e2af8de1de6ef9fa2594be61487f0257f97
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
You are viewing a condensed version of this merge commit. You can view the full changes here.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This dependency needs to be on the raft-distance target and not the raft target
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@robertmaynard I see that several tests and core algorithms depend on cosine/euclidean distance headers where we are using cutlass, hence I think it needs to be dependency on raft target. without it I am seeing several build failures when those sources are built.
I've modified get_cutlass.cmake from
raft-distance-exports
toraft-exports
. Can this resolve the build issue in pylibraft?I've submitted this change and waiting to see if CI passes.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@cjnolet Are you okay with cutlass being a hard requirement for raft?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd prefer if we could make CUTLASS a dependency only of
raft::distance
(which pylibraft uses).There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@mdoijade any tests/benchmarks and downstream projects which depend on distances also specify and use the
raft::distance
target.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see, I've tried to add dependency on
raft_distance
wherever required and got the build working locally, please review if it looks good now.also I've enabled the cutlass path only till cuda 11.x.