Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision Next revisionBoth sides next revision | ||
doku:multimpi [2019/03/12 12:47] – created jz | doku:multimpi [2019/03/12 12:53] – jz | ||
---|---|---|---|
Line 3: | Line 3: | ||
Sample job script to run two MPI tasks within one job script concurrently: | Sample job script to run two MPI tasks within one job script concurrently: | ||
- | == With srun: == | + | === With srun: === |
< | < | ||
#!/bin/bash | #!/bin/bash | ||
Line 25: | Line 25: | ||
</ | </ | ||
- | == With mpirun (Intel MPI): == | + | === With mpirun (Intel MPI): === |
< | < | ||
Line 48: | Line 48: | ||
</ | </ | ||
- | You can download the C code example here: | + | You can download the C code example here: {{ : |
+ | |||
+ | Compile it e.g. with: | ||
+ | |||
+ | < | ||
+ | # module load intel/18 intel-mpi/ | ||
+ | # mpiicc -lhwloc hello_world.c -o hello_world_intelmpi2018 | ||
+ | </ | ||