Skip to content

Commit af8cf8a

Browse files
rraminenjithunnair-amd
authored andcommitted
[SOW MS3] Centos stream9 PyTorch image support (#1090)
* changes to build Centos stream 9 images * Added scripts for centos and centos stream images * Added an extra line * Add ninja installation * Optimized code * Fixes * Add comment * Optimized code * Added AMDGPU mapping for ROCm 5.2 and invalid-url for rocm_baseurl Co-authored-by: Jithun Nair <[email protected]>
1 parent 6d422c7 commit af8cf8a

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

.circleci/docker/build.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -325,6 +325,12 @@ fi
325325
tmp_tag=$(basename "$(mktemp -u)" | tr '[:upper:]' '[:lower:]')
326326

327327

328+
if [[ "$image" == *centos9* ]]; then
329+
DOCKERFILE_NAME="Dockerfile.centos.stream"
330+
else
331+
DOCKERFILE_NAME="Dockerfile"
332+
fi
333+
328334
if [[ "$image" == *centos9* ]]; then
329335
DOCKERFILE_NAME="Dockerfile.centos.stream"
330336
else
@@ -368,6 +374,7 @@ docker build \
368374
--build-arg "KATEX=${KATEX:-}" \
369375
--build-arg "ROCM_VERSION=${ROCM_VERSION:-}" \
370376
--build-arg "PYTORCH_ROCM_ARCH=${PYTORCH_ROCM_ARCH:-gfx900;gfx906;gfx908}" \
377+
--build-arg "IMAGE_NAME=${IMAGE_NAME}" \
371378
-f $(dirname ${DOCKERFILE})/${DOCKERFILE_NAME} \
372379
-t "$tmp_tag" \
373380
"$@" \

0 commit comments

Comments
 (0)