File tree Expand file tree Collapse file tree 8 files changed +16
-7
lines changed Expand file tree Collapse file tree 8 files changed +16
-7
lines changed Original file line number Diff line number Diff line change 52
52
runs-on : linux.12xlarge
53
53
strategy :
54
54
matrix :
55
- rocm_version : ["5.6 ", "5.7 "]
55
+ rocm_version : ["5.7 ", "6.0 "]
56
56
env :
57
57
GPU_ARCH_TYPE : rocm
58
58
GPU_ARCH_VERSION : ${{ matrix.rocm_version }}
Original file line number Diff line number Diff line change 58
58
runs-on : linux.12xlarge
59
59
strategy :
60
60
matrix :
61
- rocm_version : ["5.6 ", "5.7 "]
61
+ rocm_version : ["5.7 ", "6.0 "]
62
62
env :
63
63
GPU_ARCH_TYPE : rocm
64
64
GPU_ARCH_VERSION : ${{ matrix.rocm_version }}
Original file line number Diff line number Diff line change @@ -56,7 +56,10 @@ MIOPEN_CMAKE_COMMON_FLAGS="
56
56
-DMIOPEN_BUILD_DRIVER=OFF
57
57
"
58
58
# Pull MIOpen repo and set DMIOPEN_EMBED_DB based on ROCm version
59
- if [[ $ROCM_INT -ge 50700 ]] && [[ $ROCM_INT -lt 50800 ]]; then
59
+ if [[ $ROCM_INT -ge 60000 ]] && [[ $ROCM_INT -lt 60100 ]]; then
60
+ echo " ROCm 6.0 MIOpen does not need any patches, do not build from source"
61
+ exit 0
62
+ elif [[ $ROCM_INT -ge 50700 ]] && [[ $ROCM_INT -lt 60000 ]]; then
60
63
echo " ROCm 5.7 MIOpen does not need any patches, do not build from source"
61
64
exit 0
62
65
elif [[ $ROCM_INT -ge 50600 ]] && [[ $ROCM_INT -lt 50700 ]]; then
85
88
86
89
yum remove -y miopen-hip
87
90
88
- git clone https://github.com/ROCmSoftwarePlatform /MIOpen -b ${MIOPEN_BRANCH}
91
+ git clone https://github.com/ROCm /MIOpen -b ${MIOPEN_BRANCH}
89
92
pushd MIOpen
90
93
# remove .git to save disk space since CI runner was running out
91
94
rm -rf .git
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ pushd magma
15
15
if [[ $PYTORCH_BRANCH == " release/1.10.1" ]]; then
16
16
git checkout magma_ctrl_launch_bounds
17
17
else
18
- git checkout 28592a7170e4b3707ed92644bf4a689ed600c27f
18
+ git checkout a1625ff4d9bc362906bd01f805dbbe12612953f6
19
19
fi
20
20
cp make.inc-examples/make.inc.hip-gcc-mkl make.inc
21
21
echo ' LIBDIR += -L$(MKLROOT)/lib' >> make.inc
Original file line number Diff line number Diff line change @@ -8,6 +8,6 @@ for cuda_version in 12.1 11.8; do
8
8
GPU_ARCH_TYPE=cuda GPU_ARCH_VERSION=" ${cuda_version} " " ${TOPDIR} /libtorch/build_docker.sh"
9
9
done
10
10
11
- for rocm_version in 5.6 5.7 ; do
11
+ for rocm_version in 5.7 6.0 ; do
12
12
GPU_ARCH_TYPE=rocm GPU_ARCH_VERSION=" ${rocm_version} " " ${TOPDIR} /libtorch/build_docker.sh"
13
13
done
Original file line number Diff line number Diff line change @@ -36,6 +36,9 @@ case ${GPU_ARCH_TYPE} in
36
36
echo " ERROR: rocm regex failed"
37
37
exit 1
38
38
fi
39
+ if [[ $ROCM_VERSION_INT -ge 60000 ]]; then
40
+ PYTORCH_ROCM_ARCH+=" ;gfx942"
41
+ fi
39
42
DOCKER_GPU_BUILD_ARG=" --build-arg PYTORCH_ROCM_ARCH=${PYTORCH_ROCM_ARCH} "
40
43
;;
41
44
* )
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ for cuda_version in 12.1 11.8; do
16
16
MANYLINUX_VERSION=2014 GPU_ARCH_TYPE=cuda GPU_ARCH_VERSION=" ${cuda_version} " " ${TOPDIR} /manywheel/build_docker.sh"
17
17
done
18
18
19
- for rocm_version in 5.6 5.7 ; do
19
+ for rocm_version in 5.7 6.0 ; do
20
20
GPU_ARCH_TYPE=rocm GPU_ARCH_VERSION=" ${rocm_version} " " ${TOPDIR} /manywheel/build_docker.sh"
21
21
MANYLINUX_VERSION=2014 GPU_ARCH_TYPE=rocm GPU_ARCH_VERSION=" ${rocm_version} " " ${TOPDIR} /manywheel/build_docker.sh"
22
22
done
Original file line number Diff line number Diff line change @@ -57,6 +57,9 @@ case ${GPU_ARCH_TYPE} in
57
57
echo " ERROR: rocm regex failed"
58
58
exit 1
59
59
fi
60
+ if [[ $ROCM_VERSION_INT -ge 60000 ]]; then
61
+ PYTORCH_ROCM_ARCH+=" ;gfx942"
62
+ fi
60
63
DOCKER_GPU_BUILD_ARG=" --build-arg ROCM_VERSION=${GPU_ARCH_VERSION} --build-arg PYTORCH_ROCM_ARCH=${PYTORCH_ROCM_ARCH} --build-arg DEVTOOLSET_VERSION=9"
61
64
;;
62
65
* )
You can’t perform that action at this time.
0 commit comments