Skip to content

Commit 5cc8606

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 6ef4a28 commit 5cc8606

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

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

0 commit comments

Comments
 (0)