1
0
Fork 0
main
Jeff Moe 2024-02-02 13:00:06 -07:00
parent 2cf16a1b87
commit 9b947b64f6
4 changed files with 42 additions and 63 deletions

View File

@ -1,33 +0,0 @@
#!/bin/bash
# git checkout rocm-6.0.2
# build clr first.
cd hipcc/
# Cruft XXX
sed -i -e 's/, hip-dev, rocm-core, rocm-llvm//g' CMakeLists.txt
rm -rf build
cmake -B build -G Ninja \
-DCLR_BUILD_HIP=ON \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/opt/rocm \
-DCMAKE_PREFIX_PATH=/opt/rocm/ \
-DCPACK_BINARY_DEB=ON \
-DCPACK_BINARY_STGZ=OFF \
-DCPACK_BINARY_TGZ=OFF \
-DCPACK_BINARY_TZ=OFF \
-DCPACK_SOURCE_TBZ2=OFF \
-DCPACK_SOURCE_TGZ=OFF \
-DCPACK_SOURCE_TZ=OFF \
-DCPACK_SOURCE_TXZ=OFF \
-DCPACK_GENERATOR=DEB \
-DCPACK_PACKAGING_INSTALL_PREFIX=/opt/rocm \
-DCLR_BUILD_HIP=ON \
-DCMAKE_C_COMPILER=clang \
-DCMAKE_CXX_COMPILER=clang++ \
-DCLR_BUILD_HIP=ON
ninja -C build package
sudo dpkg -i build/hipcc_1.0.0.99999-local_amd64.deb

View File

@ -1,16 +1,16 @@
#!/bin/bash
exit
# not this one ?
cd llvm-project/amd/hipcc
git clone https://github.com/ROCm/HIPCC
cd HIPCC/
git checkout rocm-6.0.2
sed -i -e 's/, hip-dev, rocm-core, rocm-llvm//g' CMakeLists.txt
rm -rf build
# git checkout rocm-6.0.2
# XXX remove hip-dev dependency?
cmake -B build -G Ninja \
-DCLR_BUILD_HIP=ON \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/opt/rocm \
-DCMAKE_PREFIX_PATH=/opt/rocm/ \
-DCPACK_BINARY_DEB=ON \
-DCPACK_BINARY_STGZ=OFF \
-DCPACK_BINARY_TGZ=OFF \
@ -18,8 +18,14 @@ cmake -B build -G Ninja \
-DCPACK_SOURCE_TBZ2=OFF \
-DCPACK_SOURCE_TGZ=OFF \
-DCPACK_SOURCE_TZ=OFF \
-DROCM_DIR=/opt/rocm \
-DCPACK_GENERATOR=DEB
-DCPACK_SOURCE_TXZ=OFF \
-DCPACK_GENERATOR=DEB \
-DCPACK_PACKAGING_INSTALL_PREFIX=/opt/rocm \
-DCLR_BUILD_HIP=ON \
-DCMAKE_C_COMPILER=clang \
-DCMAKE_CXX_COMPILER=clang++ \
-DCLR_BUILD_HIP=ON
ninja -C build package
sudo dpkg -i build/hipcc-nvidia_1.1.1.99999-local_amd64.deb
sudo dpkg -i build/hipcc_1.0.0.99999-local_amd64.deb

View File

@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: tinyrocs 0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2024-02-02 12:53-0700\n"
"POT-Creation-Date: 2024-02-02 12:59-0700\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language: en\n"
@ -176,82 +176,86 @@ msgstr ""
msgid "OpenCL and more."
msgstr ""
#: ../../../_source/toolchain-6.0.2.rst:134
#: ../../../_source/toolchain-6.0.2.rst:129
msgid "``Please pass hipcc/build or hipcc/bin using -DHIPCC_BIN_DIR.``"
msgstr ""
#: ../../../_source/toolchain-6.0.2.rst:136
msgid "hipcc"
msgstr ""
#: ../../../_source/toolchain-6.0.2.rst:135
#: ../../../_source/toolchain-6.0.2.rst:137
msgid "hipcc built under clr. This seems better."
msgstr ""
#: ../../../_source/toolchain-6.0.2.rst:142
#: ../../../_source/toolchain-6.0.2.rst:144
msgid "rocminfo"
msgstr ""
#: ../../../_source/toolchain-6.0.2.rst:143
#: ../../../_source/toolchain-6.0.2.rst:145
msgid "Yes, ``rocminfo``"
msgstr ""
#: ../../../_source/toolchain-6.0.2.rst:150
#: ../../../_source/toolchain-6.0.2.rst:152
msgid "rocBLAS"
msgstr ""
#: ../../../_source/toolchain-6.0.2.rst:151
#: ../../../_source/toolchain-6.0.2.rst:153
msgid "Needed before hipBLAS."
msgstr ""
#: ../../../_source/toolchain-6.0.2.rst:153
#: ../../../_source/toolchain-6.0.2.rst:155
msgid "Set up this once:"
msgstr ""
#: ../../../_source/toolchain-6.0.2.rst:170
#: ../../../_source/toolchain-6.0.2.rst:172
msgid "rocprim"
msgstr ""
#: ../../../_source/toolchain-6.0.2.rst:171
#: ../../../_source/toolchain-6.0.2.rst:173
msgid "``rocprim``."
msgstr ""
#: ../../../_source/toolchain-6.0.2.rst:178
#: ../../../_source/toolchain-6.0.2.rst:180
msgid "rocsparse"
msgstr ""
#: ../../../_source/toolchain-6.0.2.rst:179
#: ../../../_source/toolchain-6.0.2.rst:181
msgid "``rocsparse``."
msgstr ""
#: ../../../_source/toolchain-6.0.2.rst:186
#: ../../../_source/toolchain-6.0.2.rst:188
msgid "rocsolver"
msgstr ""
#: ../../../_source/toolchain-6.0.2.rst:187
#: ../../../_source/toolchain-6.0.2.rst:189
msgid "``rocsolver`` for hipBLAS."
msgstr ""
#: ../../../_source/toolchain-6.0.2.rst:194
#: ../../../_source/toolchain-6.0.2.rst:196
msgid "hipBLAS"
msgstr ""
#: ../../../_source/toolchain-6.0.2.rst:195
#: ../../../_source/toolchain-6.0.2.rst:197
msgid "``hipBLAS`` plz."
msgstr ""
#: ../../../_source/toolchain-6.0.2.rst:202
#: ../../../_source/toolchain-6.0.2.rst:204
msgid "rocm-bandwidth-test"
msgstr ""
#: ../../../_source/toolchain-6.0.2.rst:203
#: ../../../_source/toolchain-6.0.2.rst:205
msgid "``rocm-bandwidth-test``."
msgstr ""
#: ../../../_source/toolchain-6.0.2.rst:210
#: ../../../_source/toolchain-6.0.2.rst:212
msgid "HOLD"
msgstr ""
#: ../../../_source/toolchain-6.0.2.rst:211
#: ../../../_source/toolchain-6.0.2.rst:213
msgid "Don't upgrade over these files. Debian has higher epochs."
msgstr ""
#: ../../../_source/toolchain-6.0.2.rst:213
#: ../../../_source/toolchain-6.0.2.rst:215
msgid "``apt-mark hold hipcc llvm rocm-cmake rocm-device-libs rocminfo``"
msgstr ""

View File

@ -126,6 +126,8 @@ clr
---
OpenCL and more.
``Please pass hipcc/build or hipcc/bin using -DHIPCC_BIN_DIR.``
.. literalinclude:: _static/scripts/rocm-6.0.2/build-clr.sh
:language: bash