8000 [HIP] Support for `IREE_HAL_EXTERNAL_TIMEPOINT_TYPE_WAIT_PRIMITIVE`. · Issue #20859 · iree-org/iree · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

[HIP] Support for IREE_HAL_EXTERNAL_TIMEPOINT_TYPE_WAIT_PRIMITIVE. #20859

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
benvanik opened this issue May 19, 2025 · 0 comments
Open

[HIP] Support for IREE_HAL_EXTERNAL_TIMEPOINT_TYPE_WAIT_PRIMITIVE. #20859

benvanik opened this issue May 19, 2025 · 0 comments
Labels
hal/hip Runtime HIP HAL backend

Comments

@benvanik
Copy link
Collaborator
benvanik commented May 19, 2025

To support optimal interop with the CPU HAL backends the HIP semaphore will need to support iree_hal_semaphore_import_timepoint/iree_hal_semaphore_export_timepoint with IREE_HAL_EXTERNAL_TIMEPOINT_TYPE_WAIT_PRIMITIVE. This will allow HIP queue operations to wait on the CPU (via import) and allow CPU queue operations to wait on HIP (export).

I suspect for export we can have callbacks inserted that signal the wait primitives. CUDA has some minor support for importing that HIP may have as well but I'm not sure it's sufficient. For import we'll likely need a poller thread that uses iree_wait_any and then relays back into HIP.

@benvanik benvanik assigned benvanik and unassigned benvanik May 19, 2025
@benvanik benvanik added the hal/hip Runtime HIP HAL backend label May 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
hal/hip Runtime HIP HAL backend
Projects
None yet
Development

No branches or pull requests

1 participant
0