Skip to content

Commit 6318b26

Browse files
authored
Merge pull request pytorch#1129 from atalman/remove_cu113
Moving cuda 11.6 and 11.7 as main cuda for preview
2 parents 9e0dff4 + 74fa0fb commit 6318b26

File tree

4 files changed

+62
-54
lines changed

4 files changed

+62
-54
lines changed

_includes/quick-start-module.js

+13-9
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ var supportedOperatingSystems = new Map([
88
var supportedComputePlatforms = new Map([
99
['cuda10.2', new Set(['linux', 'windows'])],
1010
['cuda11.x', new Set(['linux', 'windows'])],
11-
['cuda11.6', new Set(['linux', 'windows'])],
11+
['cuda11.y', new Set(['linux', 'windows'])],
1212
['rocm5.x', new Set(['linux'])],
1313
['accnone', new Set(['linux', 'macos', 'windows'])],
1414
]);
@@ -117,14 +117,15 @@ function disableUnsupportedPlatforms(os) {
117117

118118
// Change compute versions depending on build type
119119
function changeCUDAVersion(ptbuild) {
120-
var cuda_element = document.getElementById("cuda11.x");
120+
var cuda_element_x = document.getElementById("cuda11.x");
121+
var cuda_element_y = document.getElementById("cuda11.y");
121122
var rocm_element = document.getElementById("rocm5.x");
122-
if (cuda_element == null) {
123-
console.log("Failed to find cuda11.x element");
123+
if (cuda_element_x == null || cuda_element_y == null) {
124+
console.log("Failed to find cuda11 elements");
124125
return;
125126
}
126-
if (cuda_element.childElementCount != 1) {
127-
console.log("Unexpected number of children for cuda11.x element");
127+
if (cuda_element_x.childElementCount != 1 || cuda_element_y.childElementCount != 1) {
128+
console.log("Unexpected number of children for cuda11 element");
128129
return;
129130
}
130131
if (rocm_element == null) {
@@ -137,13 +138,16 @@ function changeCUDAVersion(ptbuild) {
137138
}
138139
if (ptbuild == "preview") {
139140
rocm_element.children[0].textContent = "ROCm 5.2";
140-
cuda_element.children[0].textContent = "CUDA 11.3";
141+
cuda_element_x.children[0].textContent = "CUDA 11.6";
142+
cuda_element_y.children[0].textContent = "CUDA 11.7";
141143
} else if (ptbuild == "stable") {
142144
rocm_element.children[0].textContent = "ROCm 5.1.1";
143-
cuda_element.children[0].textContent = "CUDA 11.3";
145+
cuda_element_x.children[0].textContent = "CUDA 11.3";
146+
cuda_element_y.children[0].textContent = "CUDA 11.6";
144147
} else {
145148
rocm_element.children[0].textContent = "ROCm 5.1.1";
146-
cuda_element.children[0].textContent = "CUDA 11.1";
149+
cuda_element_x.children[0].textContent = "CUDA 11.3";
150+
cuda_element_y.children[0].textContent = "CUDA 11.6";
147151
}
148152
}
149153

_includes/quick_start_local.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@
9494
<div class="col-md-2 option block version" id="cuda11.x">
9595
<div class="option-text">CUDA 11.3</div>
9696
</div>
97-
<div class="col-md-2 option block version" id="cuda11.6">
97+
<div class="col-md-2 option block version" id="cuda11.y">
9898
<div class="option-text">CUDA 11.6</div>
9999
</div>
100100
<div class="col-md-3 option block version" id="rocm5.x">

0 commit comments

Comments
 (0)