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

fix: CUDA API bottleneck on newer CUDA versions on Linux #482

Merged
merged 1 commit into from
Jan 3, 2025

Conversation

Tom94
Copy link
Collaborator

@Tom94 Tom94 commented Jan 3, 2025

On newer CUDA versions (Linux only), cudaGetDeviceProperties became quite a bit slower. In some downstream applications, such as instant NGP, this can lead to as much as 3x slower training (!) on high-end GPUs.

To bypass the issue, this PR caches the result of cudaGetDeviceProperties such that it only needs to be called once for each device.

@Tom94 Tom94 merged commit 0b85840 into master Jan 3, 2025
13 checks passed
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