Skip to content

Commit 4db2e70

Browse files
committed
TOFIX: elezar suggestions
Signed-off-by: Evan Lezar <[email protected]>
1 parent a7eb470 commit 4db2e70

File tree

4 files changed

+12
-79
lines changed

4 files changed

+12
-79
lines changed

.github/workflows/image.yaml

Lines changed: 7 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,14 @@ jobs:
4040
- vectorAdd
4141
- nbody
4242
- deviceQuery
43+
- nvbandwidth
4344
exclude:
4445
- dist: ubi8
4546
sample: deviceQuery
4647
- dist: ubi8
4748
sample: nbody
49+
- dist: ubi8
50+
sample: nvbandwidth
4851

4952
steps:
5053
- uses: actions/checkout@v4
@@ -68,8 +71,12 @@ jobs:
6871
fi
6972
echo "PUSH_ON_BUILD=${GENERATE_ARTIFACTS}" >> $GITHUB_ENV
7073
echo "BUILD_MULTI_ARCH_IMAGES=${GENERATE_ARTIFACTS}" >> $GITHUB_ENV
74+
7175
- name: Set up QEMU
7276
uses: docker/setup-qemu-action@v3
77+
with:
78+
image: tonistiigi/binfmt:master
79+
7380
- name: Set up Docker Buildx
7481
uses: docker/setup-buildx-action@v3
7582
- name: Login to GitHub Container Registry
@@ -86,30 +93,3 @@ jobs:
8693
echo "${VERSION}"
8794
SAMPLE=${{ matrix.sample }} make -f deployments/container/Makefile build-${{ matrix.dist }}
8895
89-
build-nvbandwidth:
90-
runs-on: ubuntu-latest
91-
steps:
92-
- name: Check out code
93-
uses: actions/checkout@v4
94-
- name: Set up QEMU
95-
uses: docker/setup-qemu-action@v3
96-
with:
97-
image: tonistiigi/binfmt:master
98-
- name: Set up Docker Buildx
99-
uses: docker/setup-buildx-action@v3
100-
- name: Login to GitHub Container Registry
101-
uses: docker/login-action@v3
102-
with:
103-
registry: ghcr.io
104-
username: ${{ github.actor }}
105-
password: ${{ secrets.GITHUB_TOKEN }}
106-
- name: Build nvbandwidth image
107-
env:
108-
IMAGE_NAME: ghcr.io/nvidia/k8s-samples:nvbandwidth
109-
CUDA_VERSION: 12.5.0
110-
NVBANDWIDTH_VERSION: v0.7
111-
PUSH_ON_BUILD: true
112-
BUILD_MULTI_ARCH_IMAGES: true
113-
run: |
114-
echo "nvbandwidth ${NVBANDWIDTH_VERSION}"
115-
make -f multinodeNVL/nvbandwidth/Makefile build

deployments/container/Makefile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,11 @@ endif
8080
endif
8181

8282
build-%: DIST = $(*)
83+
ifneq ($(SAMPLE),nvbandwidth)
8384
build-%: DOCKERFILE = $(CURDIR)/deployments/container/Dockerfile.$(DOCKERFILE_SUFFIX)
85+
else
86+
build-%: DOCKERFILE = $(CURDIR)/deployments/container/$(SAMPLE)/Dockerfile.$(DOCKERFILE_SUFFIX)
87+
endif
8488

8589
build-ubuntu%: DOCKERFILE_SUFFIX = ubuntu
8690

multinodeNVL/nvbandwidth/Dockerfile renamed to deployments/container/nvbandwidth/Dockerfile.ubuntu

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,7 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
ARG CUDA_VERSION=12.5.0
16-
17-
FROM nvcr.io/nvidia/cuda:${CUDA_VERSION}-devel-ubuntu22.04 AS builder
15+
FROM nvcr.io/nvidia/cuda:12.5.0-devel-ubuntu22.04 AS builder
1816

1917
ENV DEBIAN_FRONTEND=noninteractive
2018

multinodeNVL/nvbandwidth/Makefile

Lines changed: 0 additions & 49 deletions
This file was deleted.

0 commit comments

Comments
 (0)