Skip to content

Building local rocBLAS

Mario HDL edited this page Dec 11, 2018 · 2 revisions

In order to speed up RVS build, you may want to permanently install rocBLAS on your system.

Installing pre-built packages

sudo apt-get update
sudo apt-get install rocblas

Building rocBLAS from source

In order to build rocBLAS from source follow these steps:

Clone rocBLAS

Clone rocBLAS repository:

    cd my/locl/rocblass/clone
    git clone https://github.com/ROCmSoftwarePlatform/rocBLAS.git -b v14.3.0

Note: if you may bump up rocBLAS version by changing tag in -b option

Compile and install rocBLAS

    cd rocBLAS
    ./install.sh -d -i

Note:

  • if rocBLAS dependencies are already satisfied then you may omit -d option
  • in case ./install.sh -d fails please try without -d
  • if your rocBLAS install folder is different from /opt/rocm you need to update ROCBLAS_INC_DIR and ROCBLAS_LIB_DIR based on your rocBLAS installation location when running RVS cmake for the first time (clean build):
cmake -DROCBLAS_INC_DIR=my/rocblass/install -DROCBLAS_LIB_DIR=my/rocblas/instal/lib . -B../build