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

Import cupy.cuda.cudnn first to show preload warning #8605

Merged
merged 1 commit into from
Jun 8, 2021

Conversation

kmaehashi
Copy link
Member

@kmaehashi kmaehashi commented Jun 7, 2021

When cuDNN is unavailable, import cupy.cudnn fails immediately so the preloading warning to install cuDNN is not displayed. This fixes the import order to show preloading warning.

@kmaehashi
Copy link
Member Author

pfnCI, test this please.

@chainer-ci
Copy link
Member

Jenkins CI test (for commit 7a13b4b, target branch master) succeeded!

@kmaehashi kmaehashi added the cat:code-fix Code refactoring that does not change the behavior. label Jun 8, 2021
@emcastillo emcastillo merged commit 621c327 into chainer:master Jun 8, 2021
@kmaehashi kmaehashi deleted the import-cupy-cudnn branch June 8, 2021 12:14
@kmaehashi kmaehashi added this to the v7.8.0 milestone Jun 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cat:code-fix Code refactoring that does not change the behavior.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants