1
0
Fork 0
main
Jeff Moe 2024-01-28 19:11:58 -07:00
parent 27acc05996
commit 10fd779527
5 changed files with 108 additions and 19 deletions

View File

@ -5,6 +5,14 @@ rm -rf rocBLAS
cp -a git/rocBLAS .
cd rocBLAS/
rm -rf build
deactivate
rm -rf venv
virtualenv venv
source venv/bin/activate
pip install -U setuptools pip wheel
pip install -r deps/requirements.txt
cmake -B build -G Ninja \
-DCLR_BUILD_HIP=ON \
-DCMAKE_BUILD_TYPE=Release \
@ -23,8 +31,7 @@ cmake -B build -G Ninja \
-DCLR_BUILD_HIP=ON \
-DCMAKE_C_COMPILER=clang \
-DCMAKE_CXX_COMPILER=clang++ \
-DCLR_BUILD_HIP=ON \
-DCLR_BUILD_HIP=ON
ninja -C build package
@ -34,3 +41,10 @@ exit
# cmake runs this:
# Running command git clone --filter=blob:none --quiet https://github.com/ROCmSoftwarePlatform/Tensile.git /tmp/pip-req-build-3h2yovh4
sh: 1: /opt/rocm/llvm/bin/clang: not found
Can't exec "/opt/rocm/bin/rocm_agent_enumerator": No such file or directory at /opt/rocm/bin//hipcc.pl line 484.
Use of uninitialized value $targetsStr in substitution (s///) at /opt/rocm/bin//hipcc.pl line 485.
Use of uninitialized value $targetsStr in split at /opt/rocm/bin//hipcc.pl line 491.
sh: 1: /opt/rocm/llvm/bin/clang: not found
Tensile::WARNING: Error: hipcc running --version Command '['hipcc', '--version']' returned non-zero exit status 127.

View File

@ -0,0 +1,23 @@
#!/bin/bash
rm -rf rocminfo
# git clone https://github.com/ROCm/rocminfo
cp -a git/rocminfo .
cd rocminfo/
# git checkout XXX
rm -rf build
cmake -B build -G Ninja \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/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_GENERATOR=DEB \
ninja -C build package
sudo dpkg -i build/rocminfo_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-01-28 18:10-0700\n"
"POT-Creation-Date: 2024-01-28 19:11-0700\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language: en\n"
@ -82,6 +82,7 @@ msgid "``amd/comgr`` --- Code Object Manager."
msgstr ""
#: ../../../_source/toolchain-head.rst:57
#: ../../../_source/toolchain-head.rst:115
msgid "hipcc"
msgstr ""
@ -89,54 +90,86 @@ msgstr ""
msgid "Build ``hipcc``."
msgstr ""
#: ../../../_source/toolchain-head.rst:66
msgid "clr"
#: ../../../_source/toolchain-head.rst:60
msgid "XXX This is better below using ``clr`` repo. XXX ?"
msgstr ""
#: ../../../_source/toolchain-head.rst:67
msgid "clr..."
msgstr ""
#: ../../../_source/toolchain-head.rst:74
msgid "device-libs"
msgstr ""
#: ../../../_source/toolchain-head.rst:75
#: ../../../_source/toolchain-head.rst:68
msgid "Build ``device-libs``."
msgstr ""
#: ../../../_source/toolchain-head.rst:77
#: ../../../_source/toolchain-head.rst:70
msgid "Fails with clang target error..."
msgstr ""
#: ../../../_source/toolchain-head.rst:84
#: ../../../_source/toolchain-head.rst:77
msgid "roct-thunk-interface"
msgstr ""
#: ../../../_source/toolchain-head.rst:85
#: ../../../_source/toolchain-head.rst:78
msgid "Build ``roct-thunk-interface``."
msgstr ""
#: ../../../_source/toolchain-head.rst:93
#: ../../../_source/toolchain-head.rst:86
msgid "rocr-runtime"
msgstr ""
#: ../../../_source/toolchain-head.rst:94
#: ../../../_source/toolchain-head.rst:87
msgid ""
"Build ``rocr-runtime``. Needs hsakmtConfig.cmake from ROCT-Thunk-Interface "
"first."
msgstr ""
#: ../../../_source/toolchain-head.rst:103
#: ../../../_source/toolchain-head.rst:96
msgid "comgr"
msgstr ""
#: ../../../_source/toolchain-head.rst:104
#: ../../../_source/toolchain-head.rst:97
msgid "Build ``comgr``."
msgstr ""
#: ../../../_source/toolchain-head.rst:106
#: ../../../_source/toolchain-head.rst:99
msgid ""
"Needs AMD device-libs built first. Needs hsa-runtime64Config.cmake first "
"from ROCR-Runtime"
msgstr ""
#: ../../../_source/toolchain-head.rst:107
msgid "clr"
msgstr ""
#: ../../../_source/toolchain-head.rst:108
msgid "clr..."
msgstr ""
#: ../../../_source/toolchain-head.rst:116
msgid "hipcc built under clr. This seems better."
msgstr ""
#: ../../../_source/toolchain-head.rst:123
msgid "rocminfo"
msgstr ""
#: ../../../_source/toolchain-head.rst:124
msgid "Yes, ``rocminfo``"
msgstr ""
#: ../../../_source/toolchain-head.rst:131
msgid "rocBLAS"
msgstr ""
#: ../../../_source/toolchain-head.rst:132
msgid "Needed before hipBLAS."
msgstr ""
#: ../../../_source/toolchain-head.rst:134
msgid "Install rocminfo first."
msgstr ""
#: ../../../_source/toolchain-head.rst:136
msgid "Fails due to no msgpackConfig.cmake"
msgstr ""

View File

@ -43,7 +43,7 @@ Install dependencies from Debian repositories.
portaudio19-dev python3-argcomplete python3-pip python3-pygments \
python3-venv python3-virtualenv python3-yaml quilt rsync rsyslog sshfs \
sudo swig traceroute vim xxd doxygen python3-sphinx git-lfs \
lua5.3 liblua5.3-dev libmpfr-dev
lua5.3 liblua5.3-dev libmpfr-dev libmsgpack-dev
# Packages like this aren't used from Debian's repository.
# Make sure they are gone.

View File

@ -118,3 +118,22 @@ hipcc built under clr. This seems better.
.. literalinclude:: _static/scripts/rocm-head/build-clr-hipcc.sh
:language: bash
rocminfo
^^^^^^^^
Yes, ``rocminfo``
.. literalinclude:: _static/scripts/rocm-head/build-rocminfo.sh
:language: bash
rocBLAS
^^^^^^^
Needed before hipBLAS.
Install rocminfo first.
Fails due to no msgpackConfig.cmake
.. literalinclude:: _static/scripts/rocm-head/build-rocblas.sh
:language: bash