-
Notifications
You must be signed in to change notification settings - Fork 180
Add docs, tests, and samples for StridedMemoryView
/@args_viewable_as_strided_memory
#247
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
Merged
Merged
Changes from all commits
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
15ebef3
add tests for viewable
leofang 80b2556
use numba to test CAI & make test a bit cleaner
leofang 8ce0aa6
add tests for creating views directly
leofang b55b8ba
add docs
leofang 8295d56
Merge branch 'main' into strided_memory_view
leofang f1239a2
fix formatting
leofang bcf3add
address comments on the docstring
leofang b11e1ae
fix import accidentally removed by ruff
leofang ede5076
fix device_id convention for CPU
leofang 8027c78
rename viewable to args_viewable_as_strided_memory
leofang 66377d8
rename device_accessible to is_device_accessible for consistency
leofang b5cfdce
enforce line ending in the whole codebase
leofang 9572f8a
add a code sample for strided memory view
leofang 069f057
fix formatting again
leofang 5e393f8
address review comments
leofang 8e209aa
programmatically load cffi functions
leofang bd1d944
Merge branch 'main' into strided_memory_view
leofang 6af4da3
fix import fallback; address review comments
leofang 16fc9f6
test readonly with numpy; rename use_stream parameter
leofang 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 hidden or 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 |
---|---|---|
@@ -1 +1,7 @@ | ||
cuda/_version.py export-subst | ||
|
||
* text eol=lf | ||
|
||
# we do not own any headers checked in, don't touch them | ||
*.h binary | ||
*.hpp binary |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 |
---|---|---|
|
@@ -5,5 +5,6 @@ | |
maxdepth: 3 | ||
--- | ||
|
||
0.1.1 <release/0.1.1-notes> | ||
0.1.0 <release/0.1.0-notes> | ||
``` |
This file contains hidden or 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,13 @@ | ||
# `cuda.core` Release notes | ||
|
||
Released on Dec XX, 2024 | ||
|
||
## Hightlights | ||
- Add `StridedMemoryView` and `@args_viewable_as_strided_memory` that provide a concrete | ||
implementation of DLPack & CUDA Array Interface supports. | ||
|
||
|
||
## Limitations | ||
|
||
- All APIs are currently *experimental* and subject to change without deprecation notice. | ||
Please kindly share your feedbacks with us so that we can make `cuda.core` better! |
This file contains hidden or 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 |
---|---|---|
@@ -1,4 +1,5 @@ | ||
{ | ||
"latest" : "latest", | ||
"0.1.1" : "0.1.1", | ||
"0.1.0" : "0.1.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.
Could this also be made to work with
and then
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 did think of this and I thought it was discussed somewhere (internally) but I can't find it. One challenge I see is extensibility: What if we also want to support keyword arguments? Extending the current signature is straightforward:
then on the call site
But if we change the signature to naive
*args, **kwargs
can we still support this extension?