For this project we need the mpic++
wrapper compiler. You can install it with:
sudo apt install openmpi-bin
mpic++ <mpi_code.cpp>
mpirun [-np <N_CORES>] ./a.out
Here we are using valgrind
valgrind --leak-check=yes ./a.out
For this project we need the mpic++
wrapper compiler. You can install it with:
sudo apt install openmpi-bin
mpic++ <mpi_code.cpp>
mpirun [-np <N_CORES>] ./a.out
Here we are using valgrind
valgrind --leak-check=yes ./a.out