Skip to content

Commit

Permalink
Fix cudnn version on build_environment of Windows CI (pytorch#42615)
Browse files Browse the repository at this point in the history
Summary: Pull Request resolved: pytorch#42615

Reviewed By: mrshenli

Differential Revision: D22958660

Pulled By: malfet

fbshipit-source-id: 97a6a0e769143bd161667d0ee081ea0751995775
  • Loading branch information
zasdfgbnm authored and facebook-github-bot committed Aug 6, 2020
1 parent 576aab5 commit 608f99e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
5 changes: 4 additions & 1 deletion .circleci/cimodel/data/windows_build_definitions.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,11 @@ def gen_tree(self):
if base_phase == "test":
prerequisite_jobs.append("_".join(base_name_parts + ["build"]))

if self.cuda_version:
self.cudnn_version = 8 if self.cuda_version.major == 11 else 7

arch_env_elements = (
["cuda" + str(self.cuda_version.major), "cudnn7"]
["cuda" + str(self.cuda_version.major), "cudnn" + str(self.cudnn_version)]
if self.cuda_version
else ["cpu"]
)
Expand Down
8 changes: 4 additions & 4 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6364,7 +6364,7 @@ workflows:
vc_version: ""
vc_year: "2019"
- pytorch_windows_build:
build_environment: pytorch-win-vs2019-cuda11-cudnn7-py3
build_environment: pytorch-win-vs2019-cuda11-cudnn8-py3
cuda_version: "11"
name: pytorch_windows_vs2019_py36_cuda11.0_build
python_version: "3.6"
Expand All @@ -6373,7 +6373,7 @@ workflows:
vc_version: ""
vc_year: "2019"
- pytorch_windows_test:
build_environment: pytorch-win-vs2019-cuda11-cudnn7-py3
build_environment: pytorch-win-vs2019-cuda11-cudnn8-py3
cuda_version: "11"
executor: windows-with-nvidia-gpu
name: pytorch_windows_vs2019_py36_cuda11.0_test1
Expand All @@ -6386,7 +6386,7 @@ workflows:
vc_version: ""
vc_year: "2019"
- pytorch_windows_test:
build_environment: pytorch-win-vs2019-cuda11-cudnn7-py3
build_environment: pytorch-win-vs2019-cuda11-cudnn8-py3
cuda_version: "11"
executor: windows-with-nvidia-gpu
name: pytorch_windows_vs2019_py36_cuda11.0_test2
Expand All @@ -6399,7 +6399,7 @@ workflows:
vc_version: ""
vc_year: "2019"
- pytorch_windows_test:
build_environment: pytorch-win-vs2019-cuda11-cudnn7-py3
build_environment: pytorch-win-vs2019-cuda11-cudnn8-py3
cuda_version: "11"
executor: windows-with-nvidia-gpu
name: pytorch_windows_vs2019_py36_cuda11.0_test-jit-profiling-tests
Expand Down

0 comments on commit 608f99e

Please sign in to comment.