Skip to content

Commit e60792a

Browse files
authored
fix build for ROCm 6.2/6.3 (#107)
1 parent 30af79d commit e60792a

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

rocm/build.sh

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,12 @@ popd
117117

118118

119119
# hip
120+
if (( ROCM_MAJOR_MINOR >= 602 )); then
121+
HIP_DIR=hip-${ROCM_VERSION}
122+
else
123+
HIP_DIR=HIP-${ROCM_VERSION}
124+
fi
125+
rm -rf clr-${ROCM_VERSION} ${HIP_DIR}
120126
if (( ROCM_MAJOR_MINOR >= 507 )); then
121127
curl -sL https://github.com/ROCm/clr/archive/refs/tags/${ROCM_VERSION}.tar.gz | tar xz
122128
else
@@ -137,12 +143,13 @@ if (( ROCM_MAJOR_MINOR >= 507 )); then
137143
pushd build
138144
cmake -S.. -B. -DCMAKE_BUILD_TYPE=Release \
139145
-GNinja \
140-
-DHIP_COMMON_DIR="${SCRIPT_DIR}/HIP-${ROCM_VERSION}" \
146+
-DHIP_COMMON_DIR="${SCRIPT_DIR}/${HIP_DIR}" \
141147
-DCLR_BUILD_HIP=ON \
142148
-DCLR_BUILD_OCL=OFF \
143149
-DCMAKE_PREFIX_PATH="${COMP};${DEST}" \
144150
-DCMAKE_INSTALL_PREFIX="${DEST}" \
145151
-DUSE_PROF_API=OFF \
152+
-DHIP_ENABLE_ROCPROFILER_REGISTER=OFF \
146153
-DHIP_PLATFORM=amd \
147154
-DHIPCC_BIN_DIR="${DEST}/bin"
148155

0 commit comments

Comments
 (0)