Skip to content

Commit e8c15f3

Browse files
authored
Merge pull request #33 from cdesiniotis/bump-samples-v12.9
Bump CUDA samples version to v12.9
2 parents 7c5b349 + e7256e3 commit e8c15f3

File tree

6 files changed

+48
-34
lines changed

6 files changed

+48
-34
lines changed

.github/workflows/image.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ on:
2828

2929
jobs:
3030
build:
31-
runs-on: linux-amd64-cpu4
31+
runs-on: ubuntu-latest
3232
strategy:
3333
matrix:
3434
dist:
@@ -60,7 +60,7 @@ jobs:
6060
- name: Set up QEMU
6161
uses: docker/setup-qemu-action@v3
6262
with:
63-
image: tonistiigi/binfmt:qemu-v7.0.0-28
63+
image: tonistiigi/binfmt:qemu-v9.2.2
6464

6565
- name: Set up Docker Buildx
6666
uses: docker/setup-buildx-action@v3

deployments/container/Dockerfile.ubi9

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,24 +12,29 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
FROM nvcr.io/nvidia/cuda:12.9.1-devel-ubi9 AS builder
15+
FROM nvcr.io/nvidia/cuda:12.9.1-base-ubi9 AS builder
1616

1717
ARG CUDA_VERSION
1818
RUN dnf install -y --allowerasing \
19+
cmake \
20+
cuda-cudart-devel-12-9 \
21+
cuda-nvcc-12-9 \
22+
g++ \
1923
curl \
2024
&& \
2125
dnf clean all
2226

2327
WORKDIR /build
2428

2529
ARG SAMPLE_NAME
26-
ENV SAMPLE_NAME ${SAMPLE_NAME}
27-
ARG CUDA_SAMPLES_VERSION=v12.0
30+
ENV SAMPLE_NAME=${SAMPLE_NAME}
31+
ARG CUDA_SAMPLES_VERSION=v12.9
2832
RUN curl -L https://codeload.github.com/NVIDIA/cuda-samples/tar.gz/refs/tags/${CUDA_SAMPLES_VERSION} | \
2933
tar -xzvf - --strip-components=1 --wildcards */${SAMPLE_NAME}/* --wildcards */Common/* && \
3034
cd $(find /build/Samples -iname "${SAMPLE_NAME}") && \
31-
make build && \
32-
cp $(find /build/bin -iname "${SAMPLE_NAME}") /build/${SAMPLE_NAME}
35+
cmake . && \
36+
make && \
37+
cp ${SAMPLE_NAME} /build/${SAMPLE_NAME}
3338

3439
FROM nvcr.io/nvidia/cuda:12.9.1-base-ubi9
3540
ARG SAMPLE_NAME

deployments/container/Dockerfile.ubuntu

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,17 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
FROM nvcr.io/nvidia/cuda:12.9.1-devel-ubuntu22.04 AS builder
15+
FROM nvcr.io/nvidia/cuda:12.9.1-base-ubuntu22.04 AS builder
1616

1717
ARG SAMPLE_NAME
18-
ENV SAMPLE_NAME ${SAMPLE_NAME}
18+
ENV SAMPLE_NAME=${SAMPLE_NAME}
1919

2020
ARG DEBIAN_FRONTEND=noninteractive
2121
RUN apt-get update && apt-get install -y --no-install-recommends \
22+
build-essential \
23+
cmake \
24+
cuda-nvcc-12-9 \
25+
g++ \
2226
curl \
2327
&& \
2428
rm -rf /var/lib/apt/lists/*
@@ -27,15 +31,16 @@ WORKDIR /build
2731

2832
ARG TARGETARCH
2933

30-
ARG CUDA_SAMPLES_VERSION=v12.0
34+
ARG CUDA_SAMPLES_VERSION=v12.9
3135
RUN curl -L https://codeload.github.com/NVIDIA/cuda-samples/tar.gz/refs/tags/${CUDA_SAMPLES_VERSION} | \
3236
tar -xzvf - --strip-components=1 --wildcards */${SAMPLE_NAME}/* --wildcards */Common/* && \
3337
cd $(find /build/Samples -iname "${SAMPLE_NAME}") && \
34-
make build && \
35-
cp $(find /build/bin -iname "${SAMPLE_NAME}") /build/${SAMPLE_NAME}
38+
cmake . && \
39+
make && \
40+
cp ${SAMPLE_NAME} /build/${SAMPLE_NAME}
3641

3742
FROM nvcr.io/nvidia/cuda:12.9.1-base-ubuntu22.04
38-
ARG SAMPLE_NAME=nbody
43+
ARG SAMPLE_NAME
3944
LABEL io.k8s.display-name="NVIDIA CUDA ${SAMPLE_NAME} sample"
4045
LABEL name="NVIDIA CUDA ${SAMPLE_NAME} sample"
4146
LABEL vendor="NVIDIA"

deployments/container/nbody/Dockerfile

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,9 @@ ENV SAMPLE_NAME=${SAMPLE_NAME}
1919

2020
ARG DEBIAN_FRONTEND=noninteractive
2121
RUN apt-get update && apt-get install -y --no-install-recommends \
22-
cuda-nvcc-12-6 \
2322
build-essential \
23+
cmake \
24+
cuda-nvcc-12-9 \
2425
g++ \
2526
curl \
2627
freeglut3-dev \
@@ -33,15 +34,16 @@ WORKDIR /build
3334

3435
ARG TARGETARCH
3536

36-
ARG CUDA_SAMPLES_VERSION=v12.0
37+
ARG CUDA_SAMPLES_VERSION=v12.9
3738
RUN curl -L https://codeload.github.com/NVIDIA/cuda-samples/tar.gz/refs/tags/${CUDA_SAMPLES_VERSION} | \
3839
tar -xzvf - --strip-components=1 --wildcards */${SAMPLE_NAME}/* --wildcards */Common/* && \
3940
cd $(find /build/Samples -iname "${SAMPLE_NAME}") && \
40-
make build && \
41-
cp $(find /build/bin -iname "${SAMPLE_NAME}") /build/${SAMPLE_NAME}
41+
cmake . && \
42+
make && \
43+
cp ${SAMPLE_NAME} /build/${SAMPLE_NAME}
4244

4345
FROM nvcr.io/nvidia/cuda:12.9.1-base-ubuntu22.04
44-
ARG SAMPLE_NAME
46+
ARG SAMPLE_NAME=nbody
4547
LABEL io.k8s.display-name="NVIDIA CUDA ${SAMPLE_NAME} sample"
4648
LABEL name="NVIDIA CUDA ${SAMPLE_NAME} sample"
4749
LABEL vendor="NVIDIA"

deployments/container/nvbandwidth/Dockerfile

Lines changed: 17 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -12,26 +12,28 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
FROM nvcr.io/nvidia/cuda:12.9.1-devel-ubuntu22.04 AS builder
16-
17-
ENV DEBIAN_FRONTEND=noninteractive
15+
FROM nvcr.io/nvidia/cuda:12.9.1-base-ubuntu22.04 AS builder
1816

17+
ARG DEBIAN_FRONTEND=noninteractive
1918
RUN apt-get update && apt-get install -y --no-install-recommends \
20-
build-essential \
21-
git \
22-
cmake \
23-
g++ \
24-
gcc \
25-
make \
26-
libboost-program-options-dev \
27-
openmpi-bin \
28-
openmpi-common \
29-
libopenmpi-dev && \
30-
rm -rf /var/lib/apt/lists/*
19+
build-essential \
20+
cmake \
21+
cuda-nvcc-12-9 \
22+
cuda-nvml-dev-12-9 \
23+
g++ \
24+
git \
25+
gcc \
26+
make \
27+
libboost-program-options-dev \
28+
openmpi-bin \
29+
openmpi-common \
30+
libopenmpi-dev \
31+
&& \
32+
rm -rf /var/lib/apt/lists/*
3133

3234
WORKDIR /bandwidthtest
3335

34-
ARG NVBANDWIDTH_VERSION=v0.7
36+
ARG NVBANDWIDTH_VERSION=v0.8
3537

3638
RUN git clone --branch ${NVBANDWIDTH_VERSION} --depth 1 --single-branch https://github.com/NVIDIA/nvbandwidth.git && \
3739
cd nvbandwidth && \

versions.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ VERSION ?= cuda$(shell grep -Eo "FROM.*cuda:[0-9\.]+" deployments/container/Doc
1717

1818
# Specify the tag for the https://github.com/NVIDIA/cuda-samples repository.
1919
# This need not match the CUDA_VERSION above.
20-
CUDA_SAMPLES_VERSION := v12.0
20+
CUDA_SAMPLES_VERSION := v12.9
2121

2222
ifeq ($(IMAGE_NAME),)
2323
REGISTRY ?= nvcr.io/nvidia/k8s

0 commit comments

Comments
 (0)