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

Use a singleton function for cudaGetDeviceProperties to avoid slowdown #429

Conversation

TakuyaNarihira
Copy link
Contributor

cudaGetDeviceProperties is known to be slow unexpectedly in some cases. In this PR, I replaced all queries by cudaGetDeviceProperties with a function call in the singleton class Cuda which retains a cache of device properties. Also, I made cuda_get_current_device_properties deprecated.

@TakuyaNarihira TakuyaNarihira added the release-note-bugfix Auto-release; Bug fixes label Oct 13, 2022
@AkioHayakawa-sony AkioHayakawa-sony merged commit dab37cf into master Oct 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release-note-bugfix Auto-release; Bug fixes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants