File tree Expand file tree Collapse file tree 2 files changed +2
-19
lines changed
Expand file tree Collapse file tree 2 files changed +2
-19
lines changed Original file line number Diff line number Diff line change @@ -39,17 +39,7 @@ case ${GPU_ARCH_TYPE} in
3939 BASE_TARGET=rocm
4040 DOCKER_TAG=rocm${GPU_ARCH_VERSION}
4141 GPU_IMAGE=rocm/dev-ubuntu-20.04:${GPU_ARCH_VERSION} -complete
42- PYTORCH_ROCM_ARCH=" gfx900;gfx906;gfx908;gfx90a;gfx1030;gfx1100"
43- ROCM_REGEX=" ([0-9]+)\.([0-9]+)[\.]?([0-9]*)"
44- if [[ $GPU_ARCH_VERSION =~ $ROCM_REGEX ]]; then
45- ROCM_VERSION_INT=$(( ${BASH_REMATCH[1]} * 10000 + ${BASH_REMATCH[2]} * 100 + ${BASH_REMATCH[3]:- 0} ))
46- else
47- echo " ERROR: rocm regex failed"
48- exit 1
49- fi
50- if [[ $ROCM_VERSION_INT -ge 60000 ]]; then
51- PYTORCH_ROCM_ARCH+=" ;gfx942"
52- fi
42+ PYTORCH_ROCM_ARCH=" gfx900;gfx906;gfx908;gfx90a;gfx1030;gfx1100;gfx1101;gfx942"
5343 DOCKER_GPU_BUILD_ARG=" --build-arg PYTORCH_ROCM_ARCH=${PYTORCH_ROCM_ARCH} "
5444 ;;
5545 * )
Original file line number Diff line number Diff line change @@ -95,14 +95,7 @@ case ${GPU_ARCH_TYPE} in
9595 MANY_LINUX_VERSION=" 2_28"
9696 GPU_IMAGE=rocm/dev-almalinux-8:${GPU_ARCH_VERSION} -complete
9797 fi
98- PYTORCH_ROCM_ARCH=" gfx900;gfx906;gfx908;gfx90a;gfx942;gfx1030;gfx1100"
99- ROCM_REGEX=" ([0-9]+)\.([0-9]+)[\.]?([0-9]*)"
100- if [[ $GPU_ARCH_VERSION =~ $ROCM_REGEX ]]; then
101- ROCM_VERSION_INT=$(( ${BASH_REMATCH[1]} * 10000 + ${BASH_REMATCH[2]} * 100 + ${BASH_REMATCH[3]:- 0} ))
102- else
103- echo " ERROR: rocm regex failed"
104- exit 1
105- fi
98+ PYTORCH_ROCM_ARCH=" gfx900;gfx906;gfx908;gfx90a;gfx1030;gfx1100;gfx1101;gfx942"
10699 DOCKER_GPU_BUILD_ARG=" --build-arg ROCM_VERSION=${GPU_ARCH_VERSION} --build-arg PYTORCH_ROCM_ARCH=${PYTORCH_ROCM_ARCH} --build-arg DEVTOOLSET_VERSION=9"
107100 ;;
108101 xpu)
You can’t perform that action at this time.
0 commit comments