Changes between Version 3 and Version 4 of cypress/GNUparallel


Ignore:
Timestamp:
09/22/23 16:36:57 (7 months ago)
Author:
fuji
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • cypress/GNUparallel

    v3 v4  
    7676
    7777==== 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 send it to GNU parallel by "--slf $MACHINEFILE".
     78The 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".
    7979{{{
    8080#!/bin/bash
     
    9191
    9292MACHINEFILE="machinefile"
    93 scontrol show hostname $SLURM_NODELIST > machinefile
     93scontrol show hostname $SLURM_NODELIST > $MACHINEFILE
    9494cat $MACHINEFILE
    9595export OMP_NUM_THREADS=$SLURM_CPUS_PER_TASK