8000 Add Python API, semantics and implementation details for DLPack by rgommers · Pull Request #106 · data-apis/array-api · GitHub
[go: up one dir, main page]

Skip to content

Add Python API, semantics and implementation details for DLPack #106

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 12 commits into from
Feb 21, 2021
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Add -1 as a sentinel value for DLPack stream handling
  • Loading branch information
rgommers committed Feb 20, 2021
commit 75261ccc0338c66aceb9fe8a50cde1bb66b89991
2 changes: 1 addition & 1 deletion spec/API_specification/array_object.md
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,7 @@ Exports the array as a DLPack capsule, for consumption by {ref}`function-from_dl

- **stream**: _Optional\[int\]_

- An optional pointer to a stream, as a Python integer, provided by the consumer that the producer will use to make the array safe to operate on. Device-specific notes:
- An optional pointer to a stream, as a Python integer, provided by the consumer that the producer will use to make the array safe to operate on. The pointer is a positive integer. `-1` is a special value that may be used by the consumer to signal "producer must not do any synchronization". Device-specific notes:

:::{admonition} CUDA
- `None`: producer must assume the legacy default stream (default),
Expand Down
0