Skip to content

Commit 5e3dd36

Browse files
committed
Pin VC++ version to 16.6
Because mkldnn triggers internal compiler error with 16.7, see uxlfoundation/oneDNN#812
1 parent 1f6e6a1 commit 5e3dd36

File tree

2 files changed

+28
-22
lines changed

2 files changed

+28
-22
lines changed

.circleci/cimodel/data/windows_build_definitions.py

+18-12
Original file line numberDiff line numberDiff line change
@@ -96,11 +96,14 @@ def gen_tree(self):
9696

9797

9898
class VcSpec:
99-
def __init__(self, year, version_elements=None):
99+
def __init__(self, year, version_elements=None, hide_version=False):
100100
self.year = year
101101
self.version_elements = version_elements or []
102+
self.hide_version = hide_version
102103

103104
def get_elements(self):
105+
if self.hide_version:
106+
return [self.prefixed_year()]
104107
return [self.prefixed_year()] + self.version_elements
105108

106109
def get_product(self):
@@ -113,28 +116,31 @@ def prefixed_year(self):
113116
return "vs" + str(self.year)
114117

115118
def render(self):
116-
return "_".join(filter(None, [self.prefixed_year(), self.dotted_version()]))
119+
return "_".join(self.get_elements())
117120

118121
def FalsePred(_):
119122
return False
120123

121124
def TruePred(_):
122125
return True
123126

127+
# MKLDNN compilation fails with VC-19.27
128+
_VC2019 = VcSpec(2019, ["19", "26"], hide_version=True)
129+
124130
WORKFLOW_DATA = [
125131
# VS2019 CUDA-10.1
126-
WindowsJob(None, VcSpec(2019), CudaVersion(10, 1)),
127-
WindowsJob(1, VcSpec(2019), CudaVersion(10, 1)),
128-
WindowsJob(2, VcSpec(2019), CudaVersion(10, 1)),
132+
WindowsJob(None, _VC2019, CudaVersion(10, 1)),
133+
WindowsJob(1, _VC2019, CudaVersion(10, 1)),
134+
WindowsJob(2, _VC2019, CudaVersion(10, 1)),
129135
# VS2019 CUDA-11.0
130-
WindowsJob(None, VcSpec(2019), CudaVersion(11, 0)),
131-
WindowsJob(1, VcSpec(2019), CudaVersion(11, 0)),
132-
WindowsJob(2, VcSpec(2019), CudaVersion(11, 0)),
136+
WindowsJob(None, _VC2019, CudaVersion(11, 0)),
137+
WindowsJob(1, _VC2019, CudaVersion(11, 0)),
138+
WindowsJob(2, _VC2019, CudaVersion(11, 0)),
133139
# VS2019 CPU-only
134-
WindowsJob(None, VcSpec(2019), None),
135-
WindowsJob(1, VcSpec(2019), None, master_only_pred=TruePred),
136-
WindowsJob(2, VcSpec(2019), None, master_only_pred=TruePred),
137-
WindowsJob(1, VcSpec(2019), CudaVersion(10, 1), force_on_cpu=True, master_only_pred=TruePred),
140+
WindowsJob(None, _VC2019, None),
141+
WindowsJob(1, _VC2019, None, master_only_pred=TruePred),
142+
WindowsJob(2, _VC2019, None, master_only_pred=TruePred),
143+
WindowsJob(1, _VC2019, CudaVersion(10, 1), force_on_cpu=True, master_only_pred=TruePred),
138144
]
139145

140146

.circleci/config.yml

+10-10
Original file line numberDiff line numberDiff line change
@@ -6329,7 +6329,7 @@ workflows:
63296329
python_version: "3.6"
63306330
use_cuda: "1"
63316331
vc_product: Community
6332-
vc_version: ""
6332+
vc_version: "19.26"
63336333
vc_year: "2019"
63346334
- pytorch_windows_test:
63356335
build_environment: pytorch-win-vs2019-cuda10-cudnn7-py3
@@ -6342,7 +6342,7 @@ workflows:
63426342
test_name: pytorch-windows-test1
63436343
use_cuda: "1"
63446344
vc_product: Community
6345-
vc_version: ""
6345+
vc_version: "19.26"
63466346
vc_year: "2019"
63476347
- pytorch_windows_test:
63486348
build_environment: pytorch-win-vs2019-cuda10-cudnn7-py3
@@ -6355,7 +6355,7 @@ workflows:
63556355
test_name: pytorch-windows-test2
63566356
use_cuda: "1"
63576357
vc_product: Community
6358-
vc_version: ""
6358+
vc_version: "19.26"
63596359
vc_year: "2019"
63606360
- pytorch_windows_build:
63616361
build_environment: pytorch-win-vs2019-cuda11-cudnn8-py3
@@ -6364,7 +6364,7 @@ workflows:
63646364
python_version: "3.6"
63656365
use_cuda: "1"
63666366
vc_product: Community
6367-
vc_version: ""
6367+
vc_version: "19.26"
63686368
vc_year: "2019"
63696369
- pytorch_windows_test:
63706370
build_environment: pytorch-win-vs2019-cuda11-cudnn8-py3
@@ -6377,7 +6377,7 @@ workflows:
63776377
test_name: pytorch-windows-test1
63786378
use_cuda: "1"
63796379
vc_product: Community
6380-
vc_version: ""
6380+
vc_version: "19.26"
63816381
vc_year: "2019"
63826382
- pytorch_windows_test:
63836383
build_environment: pytorch-win-vs2019-cuda11-cudnn8-py3
@@ -6390,7 +6390,7 @@ workflows:
63906390
test_name: pytorch-windows-test2
63916391
use_cuda: "1"
63926392
vc_product: Community
6393-
vc_version: ""
6393+
vc_version: "19.26"
63946394
vc_year: "2019"
63956395
- pytorch_windows_build:
63966396
build_environment: pytorch-win-vs2019-cpu-py3
@@ -6399,7 +6399,7 @@ workflows:
63996399
python_version: "3.6"
64006400
use_cuda: "0"
64016401
vc_product: Community
6402-
vc_version: ""
6402+
vc_version: "19.26"
64036403
vc_year: "2019"
64046404
- pytorch_windows_test:
64056405
build_environment: pytorch-win-vs2019-cpu-py3
@@ -6417,7 +6417,7 @@ workflows:
64176417
test_name: pytorch-windows-test1
64186418
use_cuda: "0"
64196419
vc_product: Community
6420-
vc_version: ""
6420+
vc_version: "19.26"
64216421
vc_year: "2019"
64226422
- pytorch_windows_test:
64236423
build_environment: pytorch-win-vs2019-cpu-py3
@@ -6435,7 +6435,7 @@ workflows:
64356435
test_name: pytorch-windows-test2
64366436
use_cuda: "0"
64376437
vc_product: Community
6438-
vc_version: ""
6438+
vc_version: "19.26"
64396439
vc_year: "2019"
64406440
- pytorch_windows_test:
64416441
build_environment: pytorch-win-vs2019-cuda10-cudnn7-py3
@@ -6453,7 +6453,7 @@ workflows:
64536453
test_name: pytorch-windows-test1
64546454
use_cuda: "0"
64556455
vc_product: Community
6456-
vc_version: ""
6456+
vc_version: "19.26"
64576457
vc_year: "2019"
64586458
- update_s3_htmls:
64596459
context: org-member

0 commit comments

Comments
 (0)