Skip to content

Commit 9db02ec

Browse files
committed
Refresh RAPIDS and RoCE examples
1 parent 8858399 commit 9db02ec

9 files changed

Lines changed: 48 additions & 62 deletions

File tree

config.example/helm/rapids-dask.yml

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,8 @@
44
# Specify the resources used for each worker as well as the number of workers.
55
worker:
66
image:
7-
# repository: nvcr.io/nvidia/rapidsai/rapidsai
8-
# repository: dask-rapids
9-
repository: supertetelman/k8s-rapids-dask
10-
tag: cuda9.2-runtime-ubuntu16.04
7+
repository: nvcr.io/nvidia/rapidsai/notebooks
8+
tag: 26.04-cuda12-py3.13
119
env:
1210
replicas: 1
1311
resources:
@@ -18,15 +16,15 @@ worker:
1816

1917
scheduler:
2018
image:
21-
repository: supertetelman/k8s-rapids-dask
22-
tag: cuda9.2-runtime-ubuntu16.04
19+
repository: nvcr.io/nvidia/rapidsai/notebooks
20+
tag: 26.04-cuda12-py3.13
2321

2422
# By default we should be doing all Dask works on workers using calls to distributed.Client()
2523
# If you would like to run/test your GPU code without using workers you may comment the resources section
2624
jupyter:
2725
image:
28-
repository: supertetelman/k8s-rapids-dask
29-
tag: cuda9.2-runtime-ubuntu16.04
26+
repository: nvcr.io/nvidia/rapidsai/notebooks
27+
tag: 26.04-cuda12-py3.13
3028
resources:
3129
requests:
3230
nvidia.com/gpu: 0

docs/container/docker-rootless.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ module load rootless-docker
7777

7878
start_rootless_docker.sh # specify --quiet option to hide rootles docker messages
7979

80-
docker run --gpus all -it --rm nvcr.io/nvidia/cuda:11.0-base-ubuntu18.04
80+
docker run --gpus all -it --rm nvcr.io/nvidia/cuda:13.0.2-base-ubuntu24.04
8181

8282
root@445bf5cca686:/# echo NGPUS: $(nvidia-smi -L | wc -l)
8383
NGPUS: 1

docs/k8s-cluster/roce_backend.md

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -80,11 +80,15 @@ dev_id: 101c
8080
8181
num_vf: 8
8282
83-
5. Mellanox Ofed place and image name - mofed_site_place, mofed_file_name.
84-
85-
mofed_site_place: "MLNX_OFED-4.6-1.0.1.1"
86-
87-
mofed_file_name: "MLNX_OFED_LINUX-4.6-1.0.1.1-ubuntu18.04-x86_64.iso"
83+
5. NVIDIA OFED version, site place and image name - mofed_version, mofed_site_place, mofed_file_name.
84+
85+
For new Kubernetes RDMA/RoCE deployments, prefer NVIDIA Network Operator coverage with DOCA-OFED driver management. This DeepOps role remains a legacy direct-host install path for environments that still need it, so verify the OFED package against your exact operating system and kernel before using it in production.
86+
87+
mofed_version: "24.10-4.1.4.0"
88+
89+
mofed_site_place: "MLNX_OFED-24.10-4.1.4.0"
90+
91+
mofed_file_name: "MLNX_OFED_LINUX-24.10-4.1.4.0-ubuntu24.04-x86_64.iso"
8892
8993
## Dependencies
9094

roles/roce_backend/README.md

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -71,13 +71,15 @@ dev_id: "101c"
7171

7272
num_vf: 8
7373

74-
5. Mellanox Ofed version, site place and image name - mofed_version, mofed_site_place, mofed_file_name.
75-
```
76-
#Mellanox OFED parameters
77-
mofed_version: "4.7-3.2.9.0"
78-
mofed_site_place: "MLNX_OFED-4.7-3.2.9.0"
79-
mofed_file_name: "MLNX_OFED_LINUX-4.7-3.2.9.0-ubuntu18.04-x86_64.iso"
80-
```
74+
5. NVIDIA OFED version, site place and image name - mofed_version, mofed_site_place, mofed_file_name.
75+
76+
For new Kubernetes RDMA/RoCE deployments, prefer NVIDIA Network Operator coverage with DOCA-OFED driver management. This DeepOps role remains a legacy direct-host install path for environments that still need it, so verify the OFED package against your exact operating system and kernel before using it in production.
77+
```
78+
# NVIDIA OFED parameters
79+
mofed_version: "24.10-4.1.4.0"
80+
mofed_site_place: "MLNX_OFED-24.10-4.1.4.0"
81+
mofed_file_name: "MLNX_OFED_LINUX-24.10-4.1.4.0-ubuntu24.04-x86_64.iso"
82+
```
8183

8284

8385
Dependencies

roles/roce_backend/tasks/mofed-install.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
shell: |
2323
cd /tmp
2424
rm -f /tmp/{{ mofed_file_name }}
25-
wget http://content.mellanox.com/ofed/{{ mofed_site_place }}/{{ mofed_file_name }}
25+
wget https://content.mellanox.com/ofed/{{ mofed_site_place }}/{{ mofed_file_name }}
2626
mkdir -p /mnt/iso
2727
mount -o loop /tmp/{{ mofed_file_name }} /mnt/iso
2828
/mnt/iso/mlnxofedinstall --all -q

roles/roce_backend/vars/main.yml

Lines changed: 8 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -31,18 +31,12 @@ vendor: "15b3"
3131
dev_id: "101c"
3232
num_vf: 8
3333

34-
#Mellanox OFED parameters
35-
mofed_version: "4.7-3.2.9.0"
36-
mofed_site_place: "MLNX_OFED-4.7-3.2.9.0"
37-
mofed_file_name: "MLNX_OFED_LINUX-4.7-3.2.9.0-ubuntu18.04-x86_64.iso"
38-
39-
# before K8s 1.16
40-
multus_ds: "https://raw.githubusercontent.com/intel/multus-cni/master/images/multus-daemonset-pre-1.16.yml"
41-
sriov_dp_ds: "https://raw.githubusercontent.com/intel/sriov-network-device-plugin/master/deployments/k8s-v1.10-v1.15/sriovdp-daemonset.yaml"
42-
sriov_cni_ds: "https://raw.githubusercontent.com/intel/sriov-cni/master/images/k8s-v1.10-v1.15/sriov-cni-daemonset.yaml"
43-
44-
# from K8s 1.16
45-
# multus_ds: "https://raw.githubusercontent.com/intel/multus-cni/master/images/multus-daemonset.yml"
46-
# sriov_dp_ds: "https://raw.githubusercontent.com/intel/sriov-network-device-plugin/master/deployments/k8s-v1.16/sriovdp-daemonset.yaml"
47-
# sriov_cni_ds: "https://raw.githubusercontent.com/intel/sriov-cni/master/images/k8s-v1.16/sriov-cni-daemonset.yaml"
34+
# NVIDIA OFED parameters. Prefer NVIDIA Network Operator with DOCA-OFED for
35+
# new Kubernetes RDMA/RoCE deployments; this role is a legacy direct-host path.
36+
mofed_version: "24.10-4.1.4.0"
37+
mofed_site_place: "MLNX_OFED-24.10-4.1.4.0"
38+
mofed_file_name: "MLNX_OFED_LINUX-24.10-4.1.4.0-ubuntu24.04-x86_64.iso"
4839

40+
multus_ds: "https://raw.githubusercontent.com/k8snetworkplumbingwg/multus-cni/master/deployments/multus-daemonset.yml"
41+
sriov_dp_ds: "https://raw.githubusercontent.com/k8snetworkplumbingwg/sriov-network-device-plugin/master/deployments/sriovdp-daemonset.yaml"
42+
sriov_cni_ds: "https://raw.githubusercontent.com/k8snetworkplumbingwg/sriov-cni/master/images/sriov-cni-daemonset.yaml"

workloads/examples/k8s/dask-rapids/README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@ DeepOps includes support for running a local registry, but configuration of that
3434
In my workflow below, I am pushing the image to [Docker Hub](https://hub.docker.com).
3535
If you haven't used Docker Hub before, the [quickstart documentation](https://docs.docker.com/docker-hub/) provides a good tutorial.
3636

37+
The included Dockerfile extends the current NGC RAPIDS notebooks image, `nvcr.io/nvidia/rapidsai/notebooks:26.04-cuda12-py3.13`, which provides RAPIDS, Dask CUDA, and JupyterLab on Ubuntu 24.04. If you move to a newer RAPIDS release, update both the Dockerfile and Helm values together.
38+
3739
### Editing the deployment scripts
3840

3941
We'll deploy the RAPIDS/Dask container in one step using the `deploy.sh` script.
@@ -140,9 +142,8 @@ Feel free to adjust the number of CPU cores or GPUs used and the parameters for
140142
141143
## Experimenting further
142144
143-
The base container we used for this benchmark contains more examples using RAPIDS in the `cuml/` directory,
144-
as well as an end-to-end workflow example based on a Fannie Mae mortgage dataset in the `mortgage/` directory.
145-
Both directories can be accessed easily via JupyterLab.
145+
The base container used for this benchmark includes RAPIDS libraries, Dask CUDA, and JupyterLab.
146+
For more examples and current image tags, use the RAPIDS documentation and NGC container catalog.
146147
147148
You can also experiment with the custom container by making changes to the `Dockerfile` used to create it,
148149
in `examples/k8s/dask-rapids/docker`.
Lines changed: 7 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,13 @@
1-
# Base our new image on the CUDA 9.2 RAPIDS image from upstream
2-
FROM nvcr.io/nvidia/rapidsai/rapidsai:cuda9.2-runtime-ubuntu16.04
1+
# Base the example on the current RAPIDS notebooks image from NGC.
2+
FROM nvcr.io/nvidia/rapidsai/notebooks:26.04-cuda12-py3.13
3+
4+
USER root
35

4-
# Fix font-manager package
56
RUN apt-get update && \
6-
apt-get install -y --fix-missing font-manager && \
7+
apt-get install -y --no-install-recommends font-manager && \
78
rm -rf /var/lib/apt/lists/*
89

9-
# The name of the Anaconda Python environment we'll use (from upstream)
10-
ENV CONDA_ENV rapids
11-
12-
# Install additional Python packages into the environment
13-
# (If you want to install more packages, add them here!)
14-
RUN source activate $CONDA_ENV && \
15-
conda install -y unzip python-graphviz && \
16-
pip install ipyvolume dask-kubernetes matplotlib cupy-cuda92
10+
USER rapids
1711

1812
# Copy the parallel sum notebook in
19-
COPY ParallelSum.ipynb /rapids/notebooks/ParallelSum.ipynb
20-
21-
# Set up image to be run
22-
COPY prepare.sh /usr/bin/prepare.sh
23-
CMD ["jupyter", "lab", "--ip=0.0.0.0", "--allow-root", "--no-browser", "--NotebookApp.token='dask'"]
24-
ENTRYPOINT ["tini", "--", "/usr/bin/prepare.sh"]
13+
COPY --chown=rapids:conda ParallelSum.ipynb /home/rapids/notebooks/ParallelSum.ipynb

workloads/examples/k8s/dask-rapids/docker/prepare.sh

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,9 @@ if [ "$EXTRA_PIP_PACKAGES" ]; then
2727
fi
2828

2929
# Activate the specified or default conda environment
30-
#conda_env="rapids"
31-
#if [ "$CONDA_ENV" ]; then
32-
# conda_env="$CONDA_ENV"
33-
#fi
34-
source activate $CONDA_ENV
30+
CONDA_ENV="${CONDA_ENV:-base}"
31+
source /opt/conda/etc/profile.d/conda.sh
32+
conda activate "$CONDA_ENV"
3533

3634
# Run pre-commands
3735
if [ "$PRE_RUN_HOOK" ]; then

0 commit comments

Comments
 (0)