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

Removing the use of the legacy_sync hack from all but ROCM. #16493

Merged
merged 1 commit into from
Feb 20, 2024

Conversation

benvanik
Copy link
Collaborator

The ROCM HAL does not support command buffers at all and thus only executes with legacy_sync set. No other HAL requires it.

This should be a no-op for Vulkan/WebGPU, which are synchronous but handle that internally during submission. Only the ROCM HAL is relying on the compiler to insert the waits and change command buffers to allow-inline-execution.

This is in preparation for removing the FixupLegacySyncPass.

The ROCM HAL does not support command buffers at all and thus only
executes with legacy_sync set. No other HAL requires it.

This should be a no-op for Vulkan/WebGPU, which are synchronous but
handle that internally during submission. Only the ROCM HAL is relying
on the compiler to insert the waits and change command buffers to
allow-inline-execution.

This is in preparation for removing the FixupLegacySyncPass.
@benvanik benvanik added compiler/dialects Relating to the IREE compiler dialects (flow, hal, vm) cleanup 🧹 hal/rocm labels Feb 20, 2024
@benvanik benvanik requested a review from antiagainst February 20, 2024 20:12
@benvanik benvanik marked this pull request as ready for review February 20, 2024 20:30
@benvanik benvanik enabled auto-merge (squash) February 20, 2024 20:34
@benvanik benvanik merged commit fadc018 into main Feb 20, 2024
60 checks passed
@benvanik benvanik deleted the benvanik-mostly-kill-legacy_sync branch February 20, 2024 21:00
@ScottTodd ScottTodd added the hal/hip Runtime HIP HAL backend label Jul 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cleanup 🧹 compiler/dialects Relating to the IREE compiler dialects (flow, hal, vm) hal/hip Runtime HIP HAL backend
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants