-
To build for the AMD GPU, you need to have the ROCM SDK installed. As of slorado v0.2.0, as we are using libtorch v2.2.0 with rocm 5.7, you will need rocm 5.7.x.
-
A minimum g++ version of 9 (available on Ubuntu 20.04 or higher) is required as of slorado v0.2.0 due to libtorch v2.2.0 we use.
-
Install zlib development files needed for slow5lib:
On Debian/Ubuntu : sudo apt-get install zlib1g-dev On Fedora/CentOS : sudo dnf/yum install zlib-devel
-
Clone the slorado repository recursively
git clone --recursive https://github.com/BonsonW/slorado cd slorado
-
Run the script that downloads and extracts torchlib.
scripts/install-torch2.sh rocm
-
Call make
make rocm=1 -j
-
See the slorado version
./slorado --version
-
By default it is assumed that you have ROCM on the standard location (
/opt/rocm
). You should havehipcc
at/opt/rocm/bin/hipcc
and the library files (.so files) at/opt/rocm/lib
. If your ROCM is installed elsewhere, you can specify the path manually as:make rocm=1 ROCM_ROOT=/path/to/rocm/
Make sure you have
hipcc
at/path/to/rocm/bin/hipcc
and the library files at/path/to/rocm/lib
. -
You can provide the ROCM architecture as
make rocm=1 ROCM_ARCH=--offload-arch=gfxnnn
-
Custom libtorch path:
make LIBTORCH_DIR=/path/to/libtorch
-
C++11 ABI (if you are using torch version with C++11 ABI):
make cxx11_abi=1
-
You can optionally enable zstd support for built-in slow5lib when building slorado by invoking
make zstd=1
. This requires zstd 1.3 development libraries installed on your system (libzstd1-dev package for apt, libzstd-devel for yum/dnf).