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

[hip] Set the current device before calls into Hip. #19103

Merged
merged 5 commits into from
Nov 13, 2024

Conversation

AWoloszyn
Copy link
Contributor

This is a bit of a brute-force way to solve our main hip multi-device problems temporarily until
the more complete fix is in place.

For the single-device case this has negligible performance implications as hipCtxSetCurrent is
a no-op in that case.
For the multi-device case this could cause more significant performance problems if the user program
swaps between devices within a thread.

This is a bit of a brute-force way to solve our main
hip multi-device problems temporarily until
the more complete fix is in place.

Signed-off-by: Andrew Woloszyn <[email protected]>
@AWoloszyn AWoloszyn merged commit e10231c into iree-org:main Nov 13, 2024
33 of 36 checks passed
@AWoloszyn AWoloszyn deleted the hip-ctx branch November 13, 2024 21:49
Groverkss pushed a commit to Groverkss/iree that referenced this pull request Dec 1, 2024
This is a bit of a brute-force way to solve our main hip multi-device
problems temporarily until the more complete fix is in place.

For the single-device case this has negligible performance implications
as `hipCtxSetCurrent` is a no-op in that case.
For the multi-device case this could cause more significant performance
problems if the user program swaps between devices within a thread.

---------

Signed-off-by: Andrew Woloszyn <[email protected]>
giacs-epic pushed a commit to giacs-epic/iree that referenced this pull request Dec 4, 2024
This is a bit of a brute-force way to solve our main hip multi-device
problems temporarily until the more complete fix is in place.

For the single-device case this has negligible performance implications
as `hipCtxSetCurrent` is a no-op in that case.
For the multi-device case this could cause more significant performance
problems if the user program swaps between devices within a thread.

---------

Signed-off-by: Andrew Woloszyn <[email protected]>
Signed-off-by: Giacomo Serafini <[email protected]>
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.

2 participants