-
Notifications
You must be signed in to change notification settings - Fork 195
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
[REVIEW] mdspan integration. #437
Merged
+1,254
−2
Merged
Changes from 1 commit
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
073d576
Implement mdarray and integrate mdspan.
trivialfis 04c5b39
Move into detail.
trivialfis 7b69dd0
Rename header to hpp.
trivialfis 1b01e68
Factory methods.
trivialfis 511fafa
pragma
trivialfis debcaba
Remove postfix in naming.
trivialfis 297f9d4
checks.
trivialfis 07be704
Optional matrix layout.
trivialfis e4fdf32
clang format.
trivialfis c28a8b3
Add alias for c/f contiguous.
trivialfis db9ec8a
scalar & rename.
trivialfis c02fbaf
Update cmake module.
trivialfis daf9955
Merge branch 'branch-22.04' into fea-mdspan
trivialfis 96f3484
Add license.
trivialfis 94dc609
Adding copyright to detail/mdarray.hpp
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
function(find_and_configure_mdspan VERSION) | ||
rapids_cpm_find( | ||
mdspan ${VERSION} | ||
GLOBAL_TARGETS std::mdspan | ||
BUILD_EXPORT_SET raft-exports | ||
INSTALL_EXPORT_SET raft-exports | ||
CPM_ARGS | ||
GIT_REPOSITORY https://github.com/trivialfis/mdspan | ||
GIT_TAG 0193f075e977cc5f3c957425fd899e53d598f524 | ||
OPTIONS "MDSPAN_ENABLE_CUDA ON" | ||
"MDSPAN_CXX_STANDARD ON" | ||
) | ||
endfunction() | ||
|
||
find_and_configure_mdspan(0.2.0) |
Oops, something went wrong.
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.
I guess we need to think about how to handle this: trivialfis/mdspan@f18e694 and whether those changes are absolutely necessary based on kokkos/mdspan#109 (comment).
cc @teju85 @seunghwak @achirkin @jrhemstad and @brycelelbach for thoughts here. We're trying to avoid forcing 64-bit indexing when we know we can safely use 32-bit (or smaller).
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.
+1 for what Corey said.
There are now a few handful of important kernels in RAFT that are having register pressure. So, increased usage of registers can cause occupancy cliffs. Based on some crude numbers, perf loss due to this was somewhere around ~3-10%! Anything we can do to NOT affect register usage for these kernels will help. So, I'd certainly want the ability to be able to use 32b for indexing in such kernels, when possible.
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.
We might also want to consider whether the mdspan fork should be moved into an official rapidsai repository for the time being.