Skip to content

Commit

Permalink
Fix active names.
Browse files Browse the repository at this point in the history
  • Loading branch information
bdice committed Jul 22, 2024
1 parent fd62f53 commit 5a60880
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions _includes/selector.html
Original file line number Diff line number Diff line change
Expand Up @@ -368,8 +368,9 @@
Alpine.data('rapids_selector', () => ({
// default values
active_python_ver: "3.11",
active_cuda_ver: "12.0 - 12.2",
active_conda_cuda_ver: "12.0 - 12.2",
active_pip_cuda_ver: "12",
active_docker_cuda_ver: "12.2",
active_method: "Conda",
active_release: "Stable",
active_img_type: "Base",
Expand Down Expand Up @@ -446,7 +447,7 @@
var rapids_channel = this.active_release === "Stable" ? "rapidsai" : "rapidsai-nightly";
var dask_prefix = this.active_release === "Nightly" ? "dask/label/dev::" : "";
var python_version = this.active_python_ver;
var cuda_version = this.active_cuda_ver;
var cuda_version = this.active_conda_cuda_ver;
var py_cuda_pkgs = [this.highlightPkgOrImg("python") + "=" + python_version, this.highlightPkgOrImg("cuda-version") + "=" + cuda_version].join(" ");
var conda_channels = [rapids_channel, "conda-forge", "nvidia"]
.map(ch => "-" + this.highlightFlag("c") + " " + ch + " ")
Expand Down Expand Up @@ -592,7 +593,7 @@

var imgTag = [
(isNightly ? this.getNightlyVersion() + "a" : this.getStableVersion()),
"cuda" + this.active_cuda_ver,
"cuda" + this.active_docker_cuda_ver,
"py" + this.active_python_ver
].join("-");

Expand All @@ -612,7 +613,7 @@
},
getDockerNotes() {
var notes = [];
if (this.active_cuda_ver.startsWith("12") && this.active_release === "Stable") {
if (this.active_docker_cuda_ver.startsWith("12") && this.active_release === "Stable") {
var pkgs_html = this.rapids_meta_pkgs.map(pkg => "<code>" + pkg + "</code>").join(", ");
notes = [...notes]
} else {
Expand Down Expand Up @@ -803,7 +804,7 @@
return;
}
this.active_additional_packages = [...this.active_additional_packages, package];
if (this.active_additional_packages.includes("TensorFlow") && (this.active_cuda_ver !== "12.0")) this.active_cuda_ver = "12.0";
if (this.active_additional_packages.includes("TensorFlow") && (!this.active_conda_cuda_ver.includes("12.0"))) this.active_conda_cuda_ver = "12.0 - 12.2";
},
copyToClipboard() {
let range = document.createRange();
Expand Down

0 comments on commit 5a60880

Please sign in to comment.