60 lines
1.6 KiB
Markdown
60 lines
1.6 KiB
Markdown
hipblaslt 7.2.4
|
|
=
|
|
https://github.com/ROCm/rocm-libraries/archive/refs/tags/rocm-7.2.4.tar.gz
|
|
|
|
``` env *** env ***
|
|
HIP_DEVICE_LIB_PATH=/pkg/gnu/rocm/llvm/amd/device-libs/amdgcn/bitcode
|
|
HIP_PATH=/pkg/gnu
|
|
```
|
|
|
|
``` sh *** patch ***
|
|
sed -i '
|
|
/# make class look like dict/,/return self._state\[key\]/ {
|
|
/def keys(self):/!d
|
|
/def keys(self):/a\ return self._state.keys()
|
|
}
|
|
/self._state\[key\] = value/a\
|
|
\
|
|
def __getitem__(self, key):\
|
|
return self._state[key]\
|
|
\
|
|
def __iter__(self):\
|
|
return iter(self._state)\
|
|
\
|
|
def __len__(self):\
|
|
return len(self._state)
|
|
' projects/hipblaslt/tensilelite/Tensile/SolutionStructs/Solution.py
|
|
```
|
|
|
|
``` sh *** build ***
|
|
mkdir -p build; cd build
|
|
/pkg/gnu/python3/bin/python3 -m pip install packaging joblib pyyaml msgpack
|
|
cmake ../projects/hipblaslt \
|
|
-DCMAKE_INSTALL_PREFIX=/pkg/gnu/rocm/libraries/hipblaslt \
|
|
-Dhipblas-common_DIR=/pkg/gnu/rocm/libraries/hipblas-common/lib/cmake/hipblas-common \
|
|
-DGPU_TARGETS=gfx1150 \
|
|
-DCMAKE_C_COMPILER=/pkg/gnu/rocm/llvm/bin/amdclang \
|
|
-DCMAKE_CXX_COMPILER=/pkg/gnu/rocm/llvm/bin/clang++ \
|
|
-DCMAKE_LINKER=/pkg/gnu/rocm/llvm/amd/hipcc/lib/llvm/bin/ld.lld \
|
|
-DPython3_EXECUTABLE=/pkg/gnu/python3/bin/python3 \
|
|
-DHIPBLASLT_ENABLE_LLVM=ON \
|
|
-DHIPBLASLT_ENABLE_ROCROLLER=OFF \
|
|
-DHIPBLASLT_ENABLE_SAMPLES=OFF \
|
|
-DHIPBLASLT_BUILD_TESTING=OFF \
|
|
-DTENSILELITE_ENABLE_AUTOBUILD=ON \
|
|
-DHIPBLASLT_ENABLE_CLIENT=OFF
|
|
cmake --build . -j$(nproc)
|
|
cmake --install .
|
|
```
|
|
|
|
``` cfg *** build deps ***
|
|
rocm/libraries/hipblas-common
|
|
rocm/systems/roctracer
|
|
rocm/systems/rocm-smi
|
|
openblas
|
|
rocm/llvm/openmp
|
|
rocm/libraries/rocroller
|
|
msgpack-cxx
|
|
python3
|
|
```
|