File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff 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}
120126if (( ROCM_MAJOR_MINOR >= 507 )) ; then
121127 curl -sL https://github.com/ROCm/clr/archive/refs/tags/${ROCM_VERSION} .tar.gz | tar xz
122128else
@@ -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
You can’t perform that action at this time.
0 commit comments