-
Notifications
You must be signed in to change notification settings - Fork 65
Disable cuSpatial nightly packages and docs. #600
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -317,7 +317,7 @@ | |
| <div class="option-label"><!-- Second row of packages --></div> | ||
| <template x-for="package in additional_pip_packages"> | ||
| <div x-on:click="(e) => packagesClickHandler(e, package)" | ||
| x-bind:class="{'active': active_packages.includes(package)}" class="option" | ||
| x-bind:class="{'active': active_packages.includes(package), 'disabled': disableUnsupportedPackage(package)}" class="option" | ||
| x-text="package"></div> | ||
| </template> | ||
| </div> | ||
|
|
@@ -572,7 +572,15 @@ | |
| if (this.active_packages.length === 1 && this.active_packages[0] === "Choose Specific Packages") { | ||
| return "Select at least one package."; | ||
| } else if (this.active_packages[0] === 'Standard') { | ||
| var pkgs = this.additional_pip_packages.flatMap(libraryToPkg); | ||
| var pkgs_to_show = this.additional_pip_packages; | ||
|
|
||
| // Hide cuSpatial and cuProj for Nightly | ||
| if (this.active_release === "Nightly") { | ||
| pkgs_to_show = pkgs_to_show.filter(pkg => pkg !== "cuSpatial" && pkg !== "cuProj"); | ||
| } | ||
|
|
||
| var pkgs = pkgs_to_show.flatMap(libraryToPkg); | ||
|
|
||
| var additional_pip_commands = libraryToPkg("nx-cugraph"); | ||
| pkgs = pkgs.concat(additional_pip_commands); | ||
| } else { | ||
|
|
@@ -644,25 +652,32 @@ | |
| }, | ||
| getDockerNotes() { | ||
| var notes = []; | ||
| 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 { | ||
| var pkgs_html = this.rapids_meta_pkgs.map(pkg => "<code>" + pkg + "</code>").join(", "); | ||
| var pkgs_to_show = this.rapids_meta_pkgs; | ||
|
|
||
| // Hide cuSpatial and cuProj for Nightly | ||
| if (this.active_release === "Nightly") { | ||
| pkgs_to_show = pkgs_to_show.filter(pkg => pkg !== "cuSpatial" && pkg !== "cuProj"); | ||
| } | ||
|
|
||
| var pkgs_html = pkgs_to_show.map(pkg => "<code>" + pkg + "</code>").join(", "); | ||
| notes = [...notes, "The selected image contains the following packages:<br>" + pkgs_html]; | ||
| return notes.map(note => this.note_prefix + " " + note); | ||
|
|
||
| }, | ||
| 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; | ||
|
|
||
| // Hide cuSpatial and cuProj for Nightly | ||
| if (this.active_release === "Nightly") { | ||
| pkgs_to_show = pkgs_to_show.filter(pkg => pkg !== "cuSpatial" && pkg !== "cuProj"); | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ah, great. I'll try to fix.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Fixed in af79499. Merging. |
||
| } | ||
|
|
||
| if (this.active_packages.length === 1 && this.active_packages[0] === "Standard") { | ||
| var pkgs_html = this.rapids_meta_pkgs.map(pkg => "<code>" + pkg + "</code>").join(", "); | ||
| var pkgs_html = pkgs_to_show.map(pkg => "<code>" + pkg + "</code>").join(", "); | ||
| notes = [...notes, "The <code>Standard</code> selection contains the following packages:<br>" + pkgs_html]; | ||
| } | ||
|
|
||
|
|
@@ -756,6 +771,9 @@ | |
| }, | ||
| disableUnsupportedPackage(package) { | ||
| var isDisabled = false; | ||
| if (this.active_release === "Nightly" && package === "cuSpatial/cuProj") { | ||
| isDisabled = true; | ||
| } | ||
| return isDisabled; | ||
| }, | ||
| isDisabled(e) { | ||
|
|
@@ -785,6 +803,11 @@ | |
| if (!supported_docker_cuda_versions.includes(this.active_docker_cuda_ver)) { | ||
| this.active_docker_cuda_ver = supported_docker_cuda_versions[supported_docker_cuda_versions.length - 1]; | ||
| } | ||
|
|
||
| /* Remove cuSpatial/cuProj from active packages if in Nightly */ | ||
| if (this.active_release === "Nightly") { | ||
| this.active_packages = this.active_packages.filter(pkg => pkg !== "cuSpatial/cuProj"); | ||
| } | ||
| }, | ||
| imgTypeClickHandler(e, type) { | ||
| if (this.isDisabled(e.target)) return; | ||
|
|
||

There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
My JavaScript is not the best, but is it possible to do something like this everywhere, instead of repeating the literals
"cuSpatial"and"cuProj"in so many places?Putting those filters in place would make it easier to do this kind of thing in the future, and reduce the effort to update the selector again when 25.06 becomes the stable version.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sort of. In theory this is a good idea. In practice,
disableUnsupportedPackageaccepts button labels as its argument, likecuSpatial/cuProjwhile we need to use actual package names likecuspatialandcuprojhere. Someday we need to rewrite the selector logic from the ground up.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
blegh ok I see, I'd missed that distinction. Thanks for considering it.