Mmseqs2¶
How to use on Dardel Gracehopper GPU nodes¶
In order to run it you must use the dardel-gh nodes. In order to check it out use
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.
On Dardel
| 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 all 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. CUDA_VISIBLE_DEVICES is not really needed but included for backward compability.
#!/bin/bash -l
#SBATCH -A [Allocation]
#SBATCH -p gpugh
#SBATCH -J [Name]
#SBATCH -t [Time]
#SBATCH --nodes=1
ml PDC
ml mmseqs2-gpu
export CUDA_VISIBLE_DEVICES=0,1,2,3
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 32
After this job has been executed you should see several files with the name [results_nr]
Source repository