Changes between Version 3 and Version 4 of cypress/GNUparallel
- Timestamp:
- 09/22/23 16:36:57 (14 months ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
cypress/GNUparallel
v3 v4 76 76 77 77 ==== Multiple Nodes ==== 78 The job script below requests 4 nodes 20 cores for each. Assuming that each task is multi-thread, and '''OMP_NUM_THREADS=$SLURM_CPUS_PER_TASK''' determines the number of threads. '''"-j $TASKS_PER_NODE"''' determines the number of concurrently running tasks per node, which is defined by '''TASKS_PER_NODE=`echo $SLURM_NTASKS / $SLURM_NNODES | bc`'''. '''scontrol show hostname $SLURM_NODELIST > machinefile''' makes a list of nodes and sendit to GNU parallel by "--slf $MACHINEFILE".78 The job script below requests 4 nodes 20 cores for each. Assuming that each task is multi-thread, and '''OMP_NUM_THREADS=$SLURM_CPUS_PER_TASK''' determines the number of threads. '''"-j $TASKS_PER_NODE"''' determines the number of concurrently running tasks per node, which is defined by '''TASKS_PER_NODE=`echo $SLURM_NTASKS / $SLURM_NNODES | bc`'''. '''scontrol show hostname $SLURM_NODELIST > $MACHINEFILE''' makes a list of nodes and sends it to GNU parallel by "--slf $MACHINEFILE". 79 79 {{{ 80 80 #!/bin/bash … … 91 91 92 92 MACHINEFILE="machinefile" 93 scontrol show hostname $SLURM_NODELIST > machinefile93 scontrol show hostname $SLURM_NODELIST > $MACHINEFILE 94 94 cat $MACHINEFILE 95 95 export OMP_NUM_THREADS=$SLURM_CPUS_PER_TASK