Skip to content

Commit 13993ea

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 14f3385 commit 13993ea

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
@@ -328,6 +328,12 @@ else
328328
DOCKERFILE_NAME="Dockerfile"
329329
fi
330330

331+
if [[ "$image" == *centos9* ]]; then
332+
DOCKERFILE_NAME="Dockerfile.centos.stream"
333+
else
334+
DOCKERFILE_NAME="Dockerfile"
335+
fi
336+
331337
# Build image
332338
# TODO: build-arg THRIFT is not turned on for any image, remove it once we confirm
333339
# it's no longer needed.
@@ -364,6 +370,7 @@ docker build \
364370
--build-arg "KATEX=${KATEX:-}" \
365371
--build-arg "ROCM_VERSION=${ROCM_VERSION:-}" \
366372
--build-arg "PYTORCH_ROCM_ARCH=${PYTORCH_ROCM_ARCH:-gfx900;gfx906;gfx908}" \
373+
--build-arg "IMAGE_NAME=${IMAGE_NAME}" \
367374
-f $(dirname ${DOCKERFILE})/${DOCKERFILE_NAME} \
368375
-t "$tmp_tag" \
369376
"$@" \

0 commit comments

Comments
 (0)