mpicc -> sudo apt-get install libopenmpi-dev
- Compile with fopenmp flag
mpicc OpenMpVersion.c -o mp -fopenmp
- Run
./mp
- Compile with mpicc compiler
mpicc MPIVersion.c -o mpi
- Run
mpirun -np <# of processes per node> mpi
- Compile with mpicc compiler
mpicc MPIOpenMPVersion.c -o mpiopenmp -fopenmp
- Run
mpirun -np <# of processes per node> mpiopenmp