To build for the AMD GPU, you need to have the ROCM SDK installed. As of slorado v0.3.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.3.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
/opt/rocm
). You should have hipcc
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
make LIBTORCH_DIR=/path/to/libtorch
make cxx11_abi=1
make zstd=1
. This requires zstd 1.3 development libraries installed on your system (libzstd1-dev package for apt, libzstd-devel for yum/dnf).