Skip to content
NAISS Logo Allocations Support Training Software naiss.se

Mmseqs2

How to use on Arrhenius GPU nodes

In order to check it out use

ml GPU/buildtool-easybuild
ml mmseqs2-gpu

Setting the GPUs

MMseqs2 can use 1 or more GPUs for its calculation. These can be set with the variable CUDA_VISIBLE_DEVICES=<N> ... Where N is the GPU number. However, the new version of this software does use all the GPUs that it is currently aware of, negating setting this variable. As this is a hybrid code, it will use both CPU and GPUs available. For best performance, use the values in the table below.

N GPUs Value threads
1 0 8
2 0,1 16
3 0,1,2 24
4 0,1,2,3 32

Send in a batch job

This is an example that uses Full Smith-waterman alignment on 2 GPUs, optimized threads against the NR database and searches for [query].pad_mms Read the software general information on how to create GPU analysis ready queries.

#!/bin/bash -l
#SBATCH -A [Allocation]
#SBATCH -p gpu
#SBATCH --gpus=2
#SBATCH -J [Name]
#SBATCH -t [Time]
#SBATCH --nodes=1

ml MMseqs2-GPU
export CUDA_VISIBLE_DEVICES=0,1
srun -n 1 mmseqs search [query].pad_mms /sw/data/MMseqs2_gpu_data/NR [results_nr] $NAISS_TMP -a --alignment-mode 3 --gpu 1 --threads 16

After this job has been executed you should see several files with the name [results_nr]