Changes between Version 4 and Version 5 of cypress/GNUparallel


Ignore:
Timestamp:
08/16/25 17:17:56 (9 hours ago)
Author:
fuji
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • cypress/GNUparallel

    v4 v5  
    2828
    2929== Many Task Computing ==
    30 For example, you have many scripts to run,
     30If you haven't done yet, download Samples by:
     31{{{
     32git clone https://hidekiCCS:@bitbucket.org/hidekiCCS/hpc-workshop.git
     33}}}
     34
     35For example, you have many scripts in '''hpc-workshop/JobArray2''' to run,
    3136{{{
    3237[fuji@cypress1 JobArray2]$ ls
     
    3742To run all distributed over 4 cores,
    3843{{{
    39 [fuji@cypress1 JobArray2]$ parallel -j 4 sh ::: script??.sh
     44#!/bin/bash
     45#SBATCH --partition=defq        # Partition
     46#SBATCH --qos=normal            # Quality of Service
     47#SBATCH --job-name=GNU_Paralle  # Job Name
     48#SBATCH --time=00:10:00         # WallTime
     49#SBATCH --nodes=1               # Number of Nodes
     50#SBATCH --ntasks-per-node=4     # Number of tasks
     51#SBATCH --cpus-per-task=1       # Number of processors per task OpenMP threads()
     52#SBATCH --gres=mic:0            # Number of Co-Processors
     53
     54module load parallel
     55
     56export OMP_NUM_THREADS=$SLURM_CPUS_PER_TASK
     57
     58parallel --record-env
     59
     60parallel --joblog log \
     61        -j $SLURM_NTASKS \
     62        sh ::: script??.sh
    4063}}}
     64
    4165
    4266=== Run Gnu Parallel in Slurm script ===