File tree Expand file tree Collapse file tree 3 files changed +52
-3
lines changed Expand file tree Collapse file tree 3 files changed +52
-3
lines changed Original file line number Diff line number Diff line change 2727 default : true
2828
2929jobs :
30- build :
30+ build-cuda-samples :
3131 runs-on : linux-amd64-cpu4
3232 strategy :
3333 matrix :
@@ -38,11 +38,15 @@ jobs:
3838 - vectorAdd
3939 - nbody
4040 - deviceQuery
41+ - nvbandwidth
4142 exclude :
4243 - dist : ubi9
4344 sample : deviceQuery
4445 - dist : ubi9
4546 sample : nbody
47+ - dist : ubi9
48+ sample : nvbandwidth
49+
4650 steps :
4751 - uses : actions/checkout@v4
4852 name : Check out code
6266 username : ${{ github.actor }}
6367 password : ${{ secrets.GITHUB_TOKEN }}
6468
65- - name : Build image
69+ - name : Build cuda sample image
6670 env :
6771 IMAGE_NAME : ghcr.io/nvidia/k8s-samples
6872 VERSION : ${{ inputs.version }}
Original file line number Diff line number Diff line change 8686endif
8787
8888build-% : DIST = $(* )
89- ifeq ($(SAMPLE ) ,nbody)
89+ # For the following samples, we use specific Dockerfiles:
90+ ifeq ($(SAMPLE ) ,$(filter $(SAMPLE ) ,nbody nvbandwidth) )
9091build-% : DOCKERFILE = $(CURDIR ) /deployments/container/$(SAMPLE ) /Dockerfile
9192else
9293build-% : DOCKERFILE = $(CURDIR ) /deployments/container/Dockerfile.$(DOCKERFILE_SUFFIX )
Original file line number Diff line number Diff line change 1+ # Copyright (c) 2025, NVIDIA CORPORATION. All rights reserved.
2+ #
3+ # Licensed under the Apache License, Version 2.0 (the "License");
4+ # you may not use this file except in compliance with the License.
5+ # You may obtain a copy of the License at
6+ #
7+ # http://www.apache.org/licenses/LICENSE-2.0
8+ #
9+ # Unless required by applicable law or agreed to in writing, software
10+ # distributed under the License is distributed on an "AS IS" BASIS,
11+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+ # See the License for the specific language governing permissions and
13+ # limitations under the License.
14+
15+ FROM nvcr.io/nvidia/cuda:12.6.2-devel-ubuntu22.04 AS builder
16+
17+ ENV DEBIAN_FRONTEND=noninteractive
18+
19+ 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/*
31+
32+ WORKDIR /bandwidthtest
33+
34+ ARG NVBANDWIDTH_VERSION=v0.7
35+
36+ RUN git clone --branch ${NVBANDWIDTH_VERSION} --depth 1 --single-branch https://github.com/NVIDIA/nvbandwidth.git && \
37+ cd nvbandwidth && \
38+ cmake -DMULTINODE=1 . && \
39+ make -j$(nproc)
40+
41+ FROM mpioperator/openmpi:v0.6.0
42+
43+ COPY --from=builder /bandwidthtest/nvbandwidth/nvbandwidth /usr/bin
44+
You can’t perform that action at this time.
0 commit comments