-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Add Metal DLPack zero-copy sharing #3531
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
Open
XXXXRT666
wants to merge
24
commits into
ml-explore:main
Choose a base branch
from
XXXXRT666:metal-dlpack-zero-copy-draft
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
24 commits
Select commit
Hold shift + click to select a range
7af5b6a
Support Metal DLPack zero-copy import
XXXXRT666 bbffe6a
Add from_dlpack copy controls
XXXXRT666 11cda58
Support Metal DLPack zero-copy sharing
XXXXRT666 361143f
Share DLPack arrays when dtype matches
XXXXRT666 206dce4
Clarify MPS DLPack host access test
XXXXRT666 a7c39c7
Pin nanobind with Metal DLPack support
XXXXRT666 dc90eba
Use host accessibility check for Metal raw pointer
XXXXRT666 2dea5e9
Add array copy for shared DLPack buffers
XXXXRT666 ef12528
Keep FFT torch baseline on CPU
XXXXRT666 9400ca4
Handle private Metal DLPack buffers with copies
XXXXRT666 7b7b4d0
Leave nanobind shallow clone note
XXXXRT666 310999b
Reduce Metal DLPack test redundancy
XXXXRT666 da3559a
Support DLPack copy export
XXXXRT666 3aaf373
Copy private Metal DLPack buffers on import
XXXXRT666 05a073e
Clean up Metal DLPack owner handling
XXXXRT666 6cab38d
Clarify DLPack conversion dtype names
XXXXRT666 f88366d
Clean up DLPack conversion paths
XXXXRT666 07784c2
Revert "Add array copy for shared DLPack buffers"
XXXXRT666 09fa65d
Address DLPack review cleanup
XXXXRT666 f5bab00
Address DLPack buffer reuse review
XXXXRT666 a4378cf
Add copy control to asarray
XXXXRT666 7e87757
Address DLPack review feedback
XXXXRT666 a7c4a44
Support strided DLPack arrays
XXXXRT666 30e1484
Make copied DLPack imports row-contiguous
XXXXRT666 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
Some comments aren't visible on the classic Files Changed page.
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
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 |
|---|---|---|
|
|
@@ -77,6 +77,7 @@ Operations | |
| floor | ||
| floor_divide | ||
| full | ||
| from_dlpack | ||
| gather_mm | ||
| gather_qmm | ||
| greater | ||
|
|
||
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
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
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.