slorado

Building ROCM version of slorado on x84_64

  1. To build for the AMD GPU, you need to have the ROCM SDK installed. See below for the versions that we have tested.

  2. A minimum g++ version as listed below is required due to libtorch. You check check your g++ version as g++ --version.

  3. 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
    
  4. Clone the slorado repository recursively

     git clone --recursive https://github.com/BonsonW/slorado
     cd slorado
    
  5. Run the script that downloads and extracts torchlib.

     scripts/install-torch2.sh rocm
    

    This will download the torch version marked default in table below. You can specify a different torch version in this table, for example scripts/install-torch2.sh rocm 2.2.0.

  6. Call make

     make rocm=1 -j cxx11_abi=1
    

    Note that if the particular torch version in table below states “no” for cxx11_abi, you should invoke as make cuda=1 -j

  7. See the slorado version

     ./slorado --version
    

Advanced building options

Tested versions and requirements

Note that we have tested compilation on a limited number of combinations and the minimum g++ requirements are as below.

Slorado version tested libtorch tested ROCM minimum g++ (approximate) cxx11_abi comments
0.4.0-beta 2.2.0 5.7 8.5 no Flash Attention and Fused RMSNorm layer unsupported for SUP >= v5.0.0
0.4.0-beta 2.9.0 (default) 6.3 9 yes  
           
0.3.0-beta,0.2.0-beta 2.2.0 5.7 8.5 no