File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -36,6 +36,20 @@ ${OPT}/infra/bin/ce_install install "clang-rocm ${VERSION}"
3636COMP=${OPT} /clang-rocm-${VERSION}
3737DEST=${OPT} /libs/rocm/${VERSION}
3838
39+ # rocm-cmake
40+ if (( ROCM_MAJOR_MINOR >= 604 )) ; then
41+ rm -rf rocm-cmake-${ROCM_VERSION}
42+ curl -sL https://github.com/ROCm/rocm-cmake/archive/refs/tags/${ROCM_VERSION} .tar.gz | tar xz
43+ pushd rocm-cmake-${ROCM_VERSION}
44+ cmake -S. -Bbuild \
45+ -GNinja \
46+ -DCMAKE_PREFIX_PATH=" ${COMP} ;${DEST} " \
47+ -DCMAKE_INSTALL_PREFIX=" ${DEST} "
48+ ninja -C build
49+ ninja -C build install
50+ popd
51+ fi
52+
3953rm -rf llvm-project-$ROCM_VERSION ROCm-Device-Libs-$ROCM_VERSION ROCm-CompilerSupport-$ROCM_VERSION HIPCC-$ROCM_VERSION
4054if (( ROCM_MAJOR_MINOR < 601 )) ; then
4155 curl -sL https://github.com/ROCm/ROCm-Device-Libs/archive/refs/tags/${ROCM_VERSION} .tar.gz | tar xz
You can’t perform that action at this time.
0 commit comments