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] fix multithreaded access to get_next_driver #3908

Merged
merged 1 commit into from
Mar 31, 2021

Conversation

Rombur
Copy link
Member

@Rombur Rombur commented Mar 31, 2021

In HIP, we have a pool of Drivers that we use when launching a kernel. If two threads try to launch a kernel at the same time, they could both use the same Driver from the pool. This PR uses a lock to prevent this scenario. I have measured the impact of an uncontested lock using the code in #3670 and I did not see any penalty.

Copy link
Contributor

@masterleinad masterleinad left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks OK.

@dalg24 dalg24 merged commit d487c92 into kokkos:develop Mar 31, 2021
@Rombur Rombur deleted the multithreading branch June 8, 2021 12:36
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

3 participants