Skip to content
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

Propagate CopySemantics from python to C++ transfer APIs so that device_put works correctly in presence of copy/donate options that user specified. #19134

Merged
merged 1 commit into from
Nov 7, 2024

Conversation

copybara-service[bot]
Copy link

Propagate CopySemantics from python to C++ transfer APIs so that device_put works correctly in presence of copy/donate options that user specified.

This change only supports pinned_host -> pinned_host copies on the same device. HBM -> HBM copies don't work yet and donation also doesn't work in PJRT.

This CL also sets up the plumbing from JAX to PJRT so that in the future support for missing features can be added easily.

Fixes jax-ml/jax#24521

@copybara-service copybara-service bot force-pushed the test_693801738 branch 6 times, most recently from 620ea38 to d3bd7f3 Compare November 7, 2024 23:46
…ce_put works correctly in presence of copy/donate options that user specified.

This change only supports pinned_host -> pinned_host copies on the same device. HBM -> HBM copies don't work yet and donation also doesn't work in PJRT.

This CL also sets up the plumbing from JAX to PJRT so that in the future support for missing features can be added easily.

Fixes jax-ml/jax#24521

PiperOrigin-RevId: 694274616
@copybara-service copybara-service bot merged commit 814c46a into main Nov 7, 2024
@copybara-service copybara-service bot deleted the test_693801738 branch November 7, 2024 23:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

INVALID_ARGUMENT when copying array in pinned_host memory with device_put(..., may_alias=False)
1 participant