← 返回首页
Add support to cuDNN Dependency module to load verion 8 when available by 9prady9 · Pull Request #2963 · arrayfire/arrayfire · GitHub
Skip to content

Navigation Menu

Toggle navigation
Sign in
Appearance settings
Search or jump to...

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Include my email address so I can be contacted

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Resetting focus

Add support to cuDNN Dependency module to load verion 8 when available#2963

Merged
umar456 merged 1 commit into
arrayfire:masterfrom
9prady9:cudnn8
Jul 7, 2020
Merged

Add support to cuDNN Dependency module to load verion 8 when available#2963
umar456 merged 1 commit into
arrayfire:masterfrom
9prady9:cudnn8

Conversation

Copy link
Copy Markdown
Member

9prady9 commented Jul 5, 2020
edited
Loading

Description

Fixes: #2935

Changes to Users

None

Checklist

  • Rebased on latest master
  • Code compiles
  • Tests pass - Locally yes with CUDA 10.2 and cuDNN 8.0.1.
  • [ ] Functions added to unified API
  • [ ] Functions documented

Copy link
Copy Markdown
Member Author

9prady9 commented Jul 6, 2020

@umar456 Wouldn't it be valid to lookup only versions same or earlier to the one current build is built with ?

diff --git a/src/backend/cuda/cudnnModule.cpp b/src/backend/cuda/cudnnModule.cpp index b76b0c65f..c1c6ab0b1 100644 --- a/src/backend/cuda/cudnnModule.cpp +++ b/src/backend/cuda/cudnnModule.cpp @@ -27,7 +27,10 @@ namespace cuda { // clang-format off // Latest version from each minor releases are enlisted below constexpr std::array<common::Version, 11> cudnnVersions = { +#if CUDNN_VERSION >= 8000 make_tuple(8, 0, 1), +#endif +#if CUDNN_VERSION >= 7000 make_tuple(7, 6, 5), make_tuple(7, 5, 1), make_tuple(7, 4, 2), @@ -35,8 +38,13 @@ constexpr std::array<common::Version, 11> cudnnVersions = { make_tuple(7, 2, 1), make_tuple(7, 1, 4), make_tuple(7, 0, 5), +#endif +#if CUDNN_VERSION >= 6000 make_tuple(6, 0, 21), +#endif +#if CUDNN_VERSION >= 5000 make_tuple(5, 1, 10), +#endif make_tuple(4, 0, 7) }; // clang-format on

umar456 previously approved these changes Jul 6, 2020
Adds runtime support for cuDNN 8
umar456 merged commit 7bea308 into arrayfire:master Jul 7, 2020
9prady9 deleted the cudnn8 branch July 7, 2020 02:12
9prady9 added this to the 3.7.2 milestone Jul 7, 2020
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Build] cudnn 8 can't be found

2 participants

Footer

© 2026 GitHub, Inc.