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: for CUDA 11.1, caffe default on our Cudnn MIN_MEMORY handle #78

Merged
merged 1 commit into from
Nov 3, 2020

Conversation

beniz
Copy link
Collaborator

@beniz beniz commented Oct 22, 2020

Other CUDNN handles with Caffe lead to unit tests failing, even with batch_size set to 1. There must be some interaction with CUDNN and CUDA 11.1 that has become the norm, and that uses much more memory with other handle configurations.

For this reason this PR forces MIN_MEMORY as the default, and I believe this is the right thing to do in all cases, and I've started defaulting to it a while ago through the API. The main reason is we want training/inference to have the highest changes of starting in most cases, then other optimizations can be tried such as modifying the CUDNN scheme to squeeze a bit more performances while using more memory.

@beniz beniz requested review from sileht and fantes October 22, 2020 13:29
@beniz beniz changed the title fix: for CUDA 11.1, caffe defaultOs our Cudnn MIN_MEMORY handle fix: for CUDA 11.1, caffe default on our Cudnn MIN_MEMORY handle Oct 31, 2020
@sileht sileht merged commit d116d15 into master Nov 3, 2020
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.

3 participants