Skip to content

Add cuda.z version to the start page #1633

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

Merged
merged 13 commits into from
May 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 19 additions & 1 deletion _includes/quick-start-module.js
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,12 @@ function getPreferredCuda(os) {

// Disable compute platform not supported on OS
function disableUnsupportedPlatforms(os) {

if(opts.ptbuild == "preview")
archMap = version_map.nightly
else
archMap = version_map.release

for (const [arch_key, info] of archInfoMap) {
var elems = document.querySelectorAll('[id^="'+arch_key+'"]');
if (elems == null) {
Expand All @@ -114,6 +120,11 @@ function disableUnsupportedPlatforms(os) {
for (var i=0; i < elems.length;i++) {
var supported = info.platforms.has(os);
elems[i].style.textDecoration = supported ? "" : "line-through";

// Officially supported arch but not available
if(!archMap[elems[i].id]) {
elems[i].style.textDecoration = "line-through";
}
}
}
}
Expand All @@ -129,7 +140,12 @@ function changeVersion(ptbuild) {
for (const [arch_key, info] of archInfoMap) {
var elems = document.querySelectorAll('[id^="'+arch_key+'"]');
for (var i=0; i < elems.length;i++) {
elems[i].children[0].textContent = info.title + " " + archMap[elems[i].id][1]
if(archMap[elems[i].id]) {
elems[i].style.textDecoration = "";
elems[i].children[0].textContent = info.title + " " + archMap[elems[i].id][1]
} else {
elems[i].style.textDecoration = "line-through";
}
}
}
var stable_element = document.getElementById("stable");
Expand Down Expand Up @@ -190,6 +206,8 @@ function selectedOption(option, selection, category) {
}
} else if (category == "ptbuild") {
changeVersion(opts.ptbuild);
//make sure unsupported platforms are disabled
disableUnsupportedPlatforms(opts.os);
}
commandMessage(buildMatcher());
if (category === "os") {
Expand Down
11 changes: 7 additions & 4 deletions _includes/quick_start_local.html
Original file line number Diff line number Diff line change
Expand Up @@ -87,11 +87,14 @@
<div class="col-md-12 title-block mobile-heading">
<div class="option-text">Compute Platform</div>
</div>
<div class="col-md-3 option block version" id="cuda.x">
<div class="option-text">CUDA 11.6</div>
<div class="col-md-2 option block version" id="cuda.x">
<div class="option-text">CUDA 11.8</div>
</div>
<div class="col-md-3 option block version" id="cuda.y">
<div class="option-text">CUDA 11.7</div>
<div class="col-md-2 option block version" id="cuda.y">
<div class="option-text">CUDA 12.1</div>
</div>
<div class="col-md-2 option block version" id="cuda.z">
<div class="option-text">CUDA 12.4</div>
</div>
<div class="col-md-3 option block version" id="rocm5.x">
<div class="option-text">ROCm 5.2</div>
Expand Down
Loading
Loading