...
(This example is intended to show how to pack multiple jobs onto the same compute node, but my testing of this script did not appear to produce the desired parallelisation that I was hoping for. At the very least, the user will be able to amend this example so that it requests multiple compute nodes.)
Wiki Markupcode | ||||||
---|---|---|---|---|---|---|
| ||||||
#!/bin/bash -l #SBATCH --nodes=1 #SBATCH --ntasks=5 #SBATCH --ntasks-per-node=5 #SBATCH --mem=370gb #SBATCH --partition=gpuq #SBATCH --gres=gpu:1 #SBATCH --time=02:00:00 #SBATCH --account=mwavcs #SBATCH --export=NONE module use /pawsey/mwa/software/python3/modulefiles module load vcsbeam/master module load openmpi-ucx-gpu srun -N 1 -n 1 fine_pfb_offline -m /path/to/1313388760_metafits.fits -b 1313388760 -T 600 -f 144 -d /path/to/subfiles & srun -N 1 -n 1 fine_pfb_offline -m /path/to/1313388760_metafits.fits -b 1313388760 -T 600 -f 145 -d /path/to/subfiles & srun -N 1 -n 1 fine_pfb_offline -m /path/to/1313388760_metafits.fits -b 1313388760 -T 600 -f 146 -d /path/to/subfiles & srun -N 1 -n 1 fine_pfb_offline -m /path/to/1313388760_metafits.fits -b 1313388760 -T 600 -f 147 -d /path/to/subfiles & srun -N 1 -n 1 fine_pfb_offline -m /path/to/1313388760_metafits.fits -b 1313388760 -T 600 -f 148 -d /path/to/subfiles & wait |
...