#!/bin/bash #SBATCH --mail-type=NONE #SBATCH --nodes=1 #SBATCH --ntasks=16 # parallel options # -P,j,--jobs N Number of jobslots on each machine. Run up to N jobs in parallel. 0 means as many as possible. # -a input-file Use input-file as input source. # If multiple -a are given, each input-file will be treated as an input source, and all combinations of input sources will be generated. # E.g. The file foo contains 1 2, the file bar contains a b c. -a foo -a bar will result in the combinations (1,a) (1,b) (1,c) (2,a) (2,b) (2,c). This is useful for replacing nested for-loops. # --colsep Column separator. The input will be treated as a table with regexp separating the columns. The n'th column can be access using {n} or {n.}. E.g. {3} is the 3rd column. parallel --delay=0.1 --jobs=$SLURM_NTASKS --arg-file=params.list --colsep=" " \ srun --mem-per-cpu=2000 --exclusive --ntasks=1 --nodes=1 bash out.sh {1} {2}