cd ~ # make sure that your are now in the home directory
git clone https://github.com/wesleykendall/mpitutorial
cd ~/mpitutorial/tutorials/mpi-hello-world/code
mpicc -o mpi_hello_world mpi_hello_world.c
node-1:~/mpitutorial/tutorials/mpi-hello-world/code$ salloc -N 3 mpirun ./mpi_hello_world
salloc: Granted job allocation 23695
Hello world from processor node-3.cse.cuhk.edu.hk, rank 2 out of 3 processors
Hello world from processor node-1.cse.cuhk.edu.hk, rank 0 out of 3 processors
Hello world from processor node-2.cse.cuhk.edu.hk, rank 1 out of 3 processors
salloc: Relinquishing job allocation 23695