File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -16,20 +16,21 @@ FROM nvcr.io/nvidia/cuda:12.9.1-devel-ubi9 AS builder
1616
1717ARG CUDA_VERSION
1818RUN dnf install -y --allowerasing \
19- curl \
19+ curl cmake \
2020 && \
2121 dnf clean all
2222
2323WORKDIR /build
2424
2525ARG SAMPLE_NAME
2626ENV SAMPLE_NAME ${SAMPLE_NAME}
27- ARG CUDA_SAMPLES_VERSION=v12.0
27+ ARG CUDA_SAMPLES_VERSION=v12.9
2828RUN curl -L https://codeload.github.com/NVIDIA/cuda-samples/tar.gz/refs/tags/${CUDA_SAMPLES_VERSION} | \
2929 tar -xzvf - --strip-components=1 --wildcards */${SAMPLE_NAME}/* --wildcards */Common/* && \
3030 cd $(find /build/Samples -iname "${SAMPLE_NAME}") && \
31- make build && \
32- cp $(find /build/bin -iname "${SAMPLE_NAME}") /build/${SAMPLE_NAME}
31+ cmake . && \
32+ make && \
33+ cp ${SAMPLE_NAME} /build/${SAMPLE_NAME}
3334
3435FROM nvcr.io/nvidia/cuda:12.9.1-base-ubi9
3536ARG SAMPLE_NAME
Original file line number Diff line number Diff line change @@ -19,20 +19,21 @@ ENV SAMPLE_NAME ${SAMPLE_NAME}
1919
2020ARG DEBIAN_FRONTEND=noninteractive
2121RUN apt-get update && apt-get install -y --no-install-recommends \
22- curl \
22+ curl cmake \
2323 && \
2424 rm -rf /var/lib/apt/lists/*
2525
2626WORKDIR /build
2727
2828ARG TARGETARCH
2929
30- ARG CUDA_SAMPLES_VERSION=v12.0
30+ ARG CUDA_SAMPLES_VERSION=v12.9
3131RUN curl -L https://codeload.github.com/NVIDIA/cuda-samples/tar.gz/refs/tags/${CUDA_SAMPLES_VERSION} | \
3232 tar -xzvf - --strip-components=1 --wildcards */${SAMPLE_NAME}/* --wildcards */Common/* && \
3333 cd $(find /build/Samples -iname "${SAMPLE_NAME}") && \
34- make build && \
35- cp $(find /build/bin -iname "${SAMPLE_NAME}") /build/${SAMPLE_NAME}
34+ cmake . && \
35+ make && \
36+ cp ${SAMPLE_NAME} /build/${SAMPLE_NAME}
3637
3738FROM nvcr.io/nvidia/cuda:12.9.1-base-ubuntu22.04
3839ARG SAMPLE_NAME=nbody
Original file line number Diff line number Diff line change @@ -26,19 +26,21 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
2626 freeglut3-dev \
2727 libgl1-mesa-dev \
2828 libglu1-mesa-dev \
29+ cmake \
2930 && \
3031 rm -rf /var/lib/apt/lists/*
3132
3233WORKDIR /build
3334
3435ARG TARGETARCH
3536
36- ARG CUDA_SAMPLES_VERSION=v12.0
37+ ARG CUDA_SAMPLES_VERSION=v12.9
3738RUN 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
4345FROM nvcr.io/nvidia/cuda:12.9.1-base-ubuntu22.04
4446ARG SAMPLE_NAME
Original file line number Diff line number Diff 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
2222ifeq ($(IMAGE_NAME ) ,)
2323REGISTRY ?= nvcr.io/nvidia/k8s
You can’t perform that action at this time.
0 commit comments