Changes between Version 4 and Version 5 of cypress/GNUparallel
- Timestamp:
- 08/16/25 17:17:56 (9 hours ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
cypress/GNUparallel
v4 v5 28 28 29 29 == Many Task Computing == 30 For example, you have many scripts to run, 30 If you haven't done yet, download Samples by: 31 {{{ 32 git clone https://hidekiCCS:@bitbucket.org/hidekiCCS/hpc-workshop.git 33 }}} 34 35 For example, you have many scripts in '''hpc-workshop/JobArray2''' to run, 31 36 {{{ 32 37 [fuji@cypress1 JobArray2]$ ls … … 37 42 To run all distributed over 4 cores, 38 43 {{{ 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 54 module load parallel 55 56 export OMP_NUM_THREADS=$SLURM_CPUS_PER_TASK 57 58 parallel --record-env 59 60 parallel --joblog log \ 61 -j $SLURM_NTASKS \ 62 sh ::: script??.sh 40 63 }}} 64 41 65 42 66 === Run Gnu Parallel in Slurm script ===