Skip to content

Commit 37abd15

Browse files
committed
add args
Signed-off-by: Srikanth Ramakrishna <srikanth.ramakrishna@intel.com>
1 parent 6e406a0 commit 37abd15

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

pytorch/Dockerfile

+3-1
Original file line numberDiff line numberDiff line change
@@ -361,7 +361,9 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
361361
apt-get autoremove -y && \
362362
rm -rf /var/lib/apt/lists/*
363363

364-
RUN wget --no-check-certificate https://github.com/intel/xpumanager/releases/download/V1.2.38/xpu-smi_1.2.38_20240718.060204.0db09695.u22.04_amd64.deb
364+
ARG XPU_SMI_BINARY
365+
366+
RUN wget --progress=dot:giga --no-check-certificate XPU_SMI_BINARY
365367

366368
RUN ldconfig && dpkg -i --force-all *.deb
367369

pytorch/docker-compose.yaml

+2-1
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,8 @@ services:
185185
build:
186186
args:
187187
PACKAGE_OPTION: pip
188-
GID: 109
188+
GID: ${GID:-109}
189+
XPU_SMI_BINARY: ${XPU_SMI_BINARY:-https://github.com/intel/xpumanager/releases/download/V1.2.38/xpu-smi_1.2.38_20240718.060204.0db09695.u22.04_amd64.deb}
189190
labels:
190191
dependency.apt.numactl: true
191192
dependency.apt.openjdk-17-jdk: true

0 commit comments

Comments
 (0)