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

Cache GPU objects on second hit #1876

Closed
wants to merge 2 commits into from
Closed

Conversation

phaniarnab
Copy link
Contributor

No description provided.

This patch pushes out the loading of cuDNN and cuSPARSE libraries
until required. Moreover, we now record the unusable GPU memory due
to fragmentation and use that to avoid unnecessary cudaMalloc failures.
This patch updates the reuse logic of GPU objects to skip
the first reference and cache on the second hit. This filters
out many never-repeating intermediates, which in turns reduces
GPU memory pressure, allocation and deallocation counts.
@phaniarnab phaniarnab closed this in eb1a697 Aug 8, 2023
@phaniarnab phaniarnab deleted the gpuOps3 branch August 8, 2023 09:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

1 participant