Skip to content

Commit

Permalink
Adding nx-cugraph to RAPIDS Install Selector Tool (#536)
Browse files Browse the repository at this point in the history
Co-authored-by: Bradley Dice <[email protected]>
  • Loading branch information
nv-rliu and bdice authored Sep 23, 2024
1 parent a979e81 commit 242f7a6
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions _includes/selector.html
Original file line number Diff line number Diff line change
Expand Up @@ -392,9 +392,9 @@
packages: ["Standard", "Choose Specific Packages"],
additional_pip_packages: ["cuDF", "dask-cuDF", "cuML", "cuGraph", "cuSpatial/cuProj", "cuxfilter", "cuCIM", "RAFT", "cuVS"],
additional_rapids_packages: ["cuDF", "cuML", "cuGraph", "cuSpatial/cuProj", "cuxfilter", "cuCIM", "RAFT", "cuVS"],
additional_packages: ["JupyterLab", "Plotly Dash", "Graphistry", "TensorFlow", "Xarray-Spatial", "PyTorch"],
additional_packages: ["Graphistry", "JupyterLab", "NetworkX + nx-cugraph", "Plotly Dash", "PyTorch", "TensorFlow", "Xarray-Spatial"],
note_prefix: "<i class='fas fa-info-circle text-blue'></i>",
rapids_meta_pkgs: ["cuDF", "cuML", "cuGraph", "cuSpatial", "cuProj", "cuxfilter", "cuCIM", "RAFT"],
rapids_meta_pkgs: ["cuDF", "cuML", "cuGraph", "nx-cugraph", "cuSpatial", "cuProj", "cuxfilter", "cuCIM", "RAFT", "cuVS"],
getStableVersion() {
return "{{ site.data.releases.stable.version }}";
},
Expand Down Expand Up @@ -456,7 +456,10 @@
};
},
getAdditionalPkgName(pkg) {
// used to pin the version of nx-cugraph for conda install
var rapids_version = this.active_release === "Stable" ? this.getStableVersion() : this.getNightlyVersion();
var pkg_names = {
"NetworkX + nx-cugraph": `networkx nx-cugraph=${rapids_version}`,
"Plotly Dash": "dash",
"PyTorch": "'pytorch=*=*cuda*'"
}
Expand Down Expand Up @@ -539,7 +542,7 @@
// This has duplicate code, but makes for easier edits in the future
if (this.active_release === "Stable") {
index_url = `--${this.highlightFlag("extra-index-url")}=https://pypi.nvidia.com`;
var version = this.removeLeadingZeros("{{ site.data.releases.stable.version }}")
var version = this.removeLeadingZeros("{{ site.data.releases.stable.version }}");
cuda_suffix = cuda_suffix + `==${version}.*`;
var libraryToPkg = (pkg) => {
pkg = pkg.toLowerCase();
Expand All @@ -566,6 +569,8 @@
return "Select at least one package.";
} else if (this.active_packages[0] === 'Standard') {
var pkgs = this.additional_pip_packages.flatMap(libraryToPkg);
var additional_pip_commands = libraryToPkg("nx-cugraph");
pkgs = pkgs.concat(additional_pip_commands);
} else {
// sort active_packages to appear in the same order as the additional_pip_packages list
this.active_packages.sort((a, b) => this.additional_pip_packages.indexOf(a) - this.additional_pip_packages.indexOf(b));
Expand Down

0 comments on commit 242f7a6

Please sign in to comment.