Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
doku:multimpi [2021/04/01 07:08] – [VSC-4] markusdoku:multimpi [2023/03/14 12:53] (current) – [VSC-3] goldenberg
Line 36: Line 36:
 wait wait
  
-</code> 
- 
-==== VSC-3 ===== 
- 
-=== With srun: === 
-<code> 
-#!/bin/bash 
-#SBATCH -J test 
-#SBATCH -N 1 
-#SBATCH --ntasks-per-core=1 
-#SBATCH --ntasks-per-node=2 
- 
-export SLURM_STEP_GRES=none 
- 
-module load intel/18 intel-mpi/2018 
- 
-for i in 0 8 
-do 
-  j=$(($i+1)) 
-  srun -n 2 --cpu_bind=map_cpu:$i,$j ./hello_world_intelmpi2018 & 
-done 
-wait 
- 
-exit 0 
-</code> 
- 
-=== With mpirun (Intel MPI): === 
- 
-<code> 
-#!/bin/bash 
-#SBATCH -J test 
-#SBATCH -N 1 
-#SBATCH --ntasks-per-core=1 
-#SBATCH --ntasks-per-node=2 
- 
-export SLURM_STEP_GRES=none 
- 
-module load intel/18 intel-mpi/2018 
- 
-for i in 0 8 
-do 
-  j=$(($i+1)) 
-  mpirun -env I_MPI_PIN_PROCESSOR_LIST $i,$j -np 2 ./hello_world_intelmpi2018 & 
-done 
-wait 
- 
-exit 0 
-</code> 
- 
-You can download the C code example here: {{ :doku:hello_world.c |hello_world.c}} 
- 
-Compile it e.g. with: 
- 
-<code> 
-# module load intel/18 intel-mpi/2018 
-# mpiicc -lhwloc hello_world.c -o hello_world_intelmpi2018 
 </code> </code>
  
  
  • doku/multimpi.txt
  • Last modified: 2023/03/14 12:53
  • by goldenberg