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

Use AllocateDestinationBuffer instead of CreateUninitializedBuffer for #68242

Merged
merged 1 commit into from
May 20, 2024

Conversation

copybara-service[bot]
Copy link

@copybara-service copybara-service bot commented May 20, 2024

Use AllocateDestinationBuffer instead of CreateUninitializedBuffer for
AsyncHostToDeviceTransferManager::Create. This is to synchronize the h2d stream with the compute stream.

With this change, PjRtStreamExecutorBuffer::Delete doesn't need to schedule deallocation on compute stream if there are no other use cases that don't wait for the compute steam before writing to the HBM.

@copybara-service copybara-service bot force-pushed the exported_pr_635356526 branch 2 times, most recently from fcf8a66 to ebe6259 Compare May 20, 2024 17:57
AsyncHostToDeviceTransferManager::Create. This is to synchronize the h2d stream with the compute stream.

With this change, PjRtStreamExecutorBuffer::Delete doesn't need to schedule deallocation on compute stream if there are no other use cases that don't wait for the compute steam before writing to the HBM.

PiperOrigin-RevId: 635508746
@copybara-service copybara-service bot closed this May 20, 2024
@copybara-service copybara-service bot deleted the exported_pr_635356526 branch May 20, 2024 18:47
@copybara-service copybara-service bot merged commit 138d910 into master May 20, 2024
1 check passed
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.

None yet

1 participant