#!/bin/bash
# choose our partition
#SBATCH -p x-gpu
# gpu node has 2x10 cores and 10 gpu
#SBATCH -N 1 -n 20 --gres=gpu:10
source ~/.bashrc
mpirun -np 1 python init1.py --gpu=1 > init1.log &
mpirun -np 1 python init2.py --gpu=2 > init2.log &
mpirun -np 1 python init3.py --gpu=3 > init3.log &
mpirun -np 1 python init4.py --gpu=4 > init4.log &
mpirun -np 1 python init5.py --gpu=5 > init5.log &
mpirun -np 1 python init6.py --gpu=6 > init6.log &
mpirun -np 1 python init7.py --gpu=7 > init7.log
wait
Usually I get 10000 TPS on a GTX2080ti GPU. Yet I find only 1000 TPS if I run multiple tasks on a node with multiple GPUs. The reason why I use multiple mpirun is that hoomd would choose only one GPU to run all the job.
Anyone got any idea why this happened?
Hoomd version 2.9.6