Skip to content
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
29 changes: 8 additions & 21 deletions _includes/selector.html
Original file line number Diff line number Diff line change
Expand Up @@ -265,15 +265,15 @@
</div>
<div class="options-section" x-show="active_method === 'Docker'">
<div class="option-label">Image CUDA</div>
<template x-for="version in docker_cuda_vers">
<template x-for="version in getSupportedDockerCudaVersions()">
<div x-on:click="(e) => dockerCUDAClickHandler(e, version)"
x-bind:class="{'active': version === active_docker_cuda_ver, 'disabled': disableUnsupportedDockerCuda(version)}"
class="option" x-text="'CUDA ' + version"></div>
</template>
</div>
<div class="options-section" x-show="active_method !== 'pip'">
<div class="option-label">Python</div>
<template x-for="version in python_vers">
<template x-for="version in getSupportedPythonVersions()">
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for this! Fewer paths for configuration = fewer surprises 😁

<div x-on:click="(e) => pythonClickHandler(e, version)"
x-bind:class="{'active': version === active_python_ver, 'disabled': disableUnsupportedPython(version)}"
class="option" x-text="'Python ' + version"></div>
Expand Down Expand Up @@ -373,7 +373,7 @@
active_python_ver: "3.13",
active_conda_cuda_ver: "12",
active_pip_cuda_ver: "12",
active_docker_cuda_ver: "12.8",
active_docker_cuda_ver: "12.9",
active_method: "Conda",
active_release: "Stable",
active_img_type: "Base",
Expand All @@ -382,17 +382,13 @@
active_additional_packages: [],

// all possible values
python_vers: ["3.10", "3.11", "3.12", "3.13"],
python_vers_stable: ["3.10", "3.11", "3.12", "3.13"],
python_vers_nightly: ["3.10", "3.11", "3.12", "3.13"],
conda_cuda_vers: ["11", "12"],
conda_cuda_vers_stable: ["11", "12"],
conda_cuda_vers_stable: ["12"],
conda_cuda_vers_nightly: ["12"],
pip_cuda_vers: ["11.4 - 11.8", "12"],
pip_cuda_vers_stable: ["11.4 - 11.8", "12"],
pip_cuda_vers_stable: ["12"],
pip_cuda_vers_nightly: ["12"],
docker_cuda_vers: ["11.8", "12.0", "12.8", "12.9"],
docker_cuda_vers_stable: ["11.8", "12.0", "12.8"],
docker_cuda_vers_stable: ["12.0", "12.9"],
docker_cuda_vers_nightly: ["12.0", "12.9"],
methods: ["Conda", "pip", "Docker"],
releases: ["Stable", "Nightly"],
Expand Down Expand Up @@ -448,8 +444,7 @@
getCondaVersionSupport(version) {
var cuda_version_info = {
"Stable": {
"11": ["11.4", "11.8"],
"12": ["12.0", "12.8"]
"12": ["12.0", "12.9"]
},
"Nightly": {
"12": ["12.0", "12.9"]
Expand Down Expand Up @@ -533,13 +528,9 @@
},
getpipCmdHtml() {
var pip_install = `${this.highlightCmd("pip")} install`;
var cuda_suffix = "-cu12";
var cuda_suffix = `-cu${this.active_pip_cuda_ver}`;
var indentation = " ";

if (this.active_pip_cuda_ver.startsWith("11")) {
cuda_suffix = "-cu11";
}

// Change index depending on stable vs nightly for pip
// Also add versioning commands for nightly installs so that --pre is unnecessary
// This has duplicate code, but makes for easier edits in the future
Expand Down Expand Up @@ -654,10 +645,6 @@
},
getCondaNotes() {
var notes = [];
if (this.active_conda_cuda_ver.startsWith("11")) {
notes = [...notes, "RAPIDS on CUDA 11 doesn't support <code>channel_priority: strict</code>; use <code>channel_priority: flexible</code> instead"];
}

var pkgs_to_show = this.rapids_meta_pkgs;

if (this.active_packages.length === 1 && this.active_packages[0] === "Standard") {
Expand Down
Loading