Skip to content
This repository was archived by the owner on Jul 31, 2022. It is now read-only.

Mpirun stuff

Dylan Christopherson edited this page Jul 5, 2018 · 24 revisions

Using mpirun

which mpirun
lscpu            //Find out about the hardware you're using

mpirun -np 3 /full/path/to/file/hello_c
mpirun -np 3 --display-map /full/path/to/file/hello_c
mpirun -np 3 --oversubscribe /full/path/to/file/hello_c
mpirun -np 2 -host hostName file

Edit the openmpi-default-hostfile in the nfsshare folder and add IP:4 or just the hostname at the end. My openmpi-default-hostfile is located at /opt/nfsshare/build/etc.

Example:

<IP address>:4           //OR
frutilla

A great way to check where your tests/jobs are running is to create a runs on script:

runsOn.sh
#!/bin/sh
echo "Machine test: $HOSTNAME"
Clone this wiki locally