Skip to content

switch to cuda/hip LaunchHostFunc if available - #346

Open
m-fila wants to merge 2 commits into
boostorg:developfrom
m-fila:LaunchHostFunc
Open

switch to cuda/hip LaunchHostFunc if available#346
m-fila wants to merge 2 commits into
boostorg:developfrom
m-fila:LaunchHostFunc

Conversation

@m-fila

@m-fila m-fila commented Aug 14, 2026

Copy link
Copy Markdown
Contributor

cudaStreamAddCallback is pending for deprecation and cudaLaunchHostFunc is proposed as a replacement.
In case of HIP, there is no notice about pending deprecation. Although hipLaunchHostFunc is still marked as experimental, it was introduced back in HIP 5.2.0 (currently the latest is 7.14) and is in usage.

Also, CUDART_CB was missing in the callback declarations. This supposedly makes difference on Windows. For HIP it isn't needed

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.

1 participant