File tree Expand file tree Collapse file tree 6 files changed +48
-34
lines changed Expand file tree Collapse file tree 6 files changed +48
-34
lines changed Original file line number Diff line number Diff line change 2828
2929jobs :
3030 build :
31- runs-on : linux-amd64-cpu4
31+ runs-on : ubuntu-latest
3232 strategy :
3333 matrix :
3434 dist :
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
Original file line number Diff line number Diff line change 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
1717ARG CUDA_VERSION
1818RUN 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
2327WORKDIR /build
2428
2529ARG 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
2832RUN 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
3439FROM nvcr.io/nvidia/cuda:12.9.1-base-ubi9
3540ARG SAMPLE_NAME
Original file line number Diff line number Diff line change 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
1717ARG SAMPLE_NAME
18- ENV SAMPLE_NAME ${SAMPLE_NAME}
18+ ENV SAMPLE_NAME= ${SAMPLE_NAME}
1919
2020ARG DEBIAN_FRONTEND=noninteractive
2121RUN 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
2832ARG TARGETARCH
2933
30- ARG CUDA_SAMPLES_VERSION=v12.0
34+ ARG CUDA_SAMPLES_VERSION=v12.9
3135RUN 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
3742FROM nvcr.io/nvidia/cuda:12.9.1-base-ubuntu22.04
38- ARG SAMPLE_NAME=nbody
43+ ARG SAMPLE_NAME
3944LABEL io.k8s.display-name="NVIDIA CUDA ${SAMPLE_NAME} sample"
4045LABEL name="NVIDIA CUDA ${SAMPLE_NAME} sample"
4146LABEL vendor="NVIDIA"
Original file line number Diff line number Diff line change @@ -19,8 +19,9 @@ ENV SAMPLE_NAME=${SAMPLE_NAME}
1919
2020ARG DEBIAN_FRONTEND=noninteractive
2121RUN 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
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
44- ARG SAMPLE_NAME
46+ ARG SAMPLE_NAME=nbody
4547LABEL io.k8s.display-name="NVIDIA CUDA ${SAMPLE_NAME} sample"
4648LABEL name="NVIDIA CUDA ${SAMPLE_NAME} sample"
4749LABEL vendor="NVIDIA"
Original file line number Diff line number Diff line change 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
1918RUN 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
3234WORKDIR /bandwidthtest
3335
34- ARG NVBANDWIDTH_VERSION=v0.7
36+ ARG NVBANDWIDTH_VERSION=v0.8
3537
3638RUN git clone --branch ${NVBANDWIDTH_VERSION} --depth 1 --single-branch https://github.com/NVIDIA/nvbandwidth.git && \
3739 cd nvbandwidth && \
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