For compiling in C
/*program.c is the name of the program you have done*/
- mpicc.openmpi program.c -o output
For running with five processes and multiple host
/*Where host_file_name is the host file which contains the name of hosts with line break for each host e.g.
- mpirun.openmpi -np 5 --hostfile host_file_name output