SCRP nodes have OpenMPI 4.1 installed.


Message Passing Interface (MPI) is a communication protocol for programming parallel computers. It is typically used when a program needs to run on and communicate over multiple compute nodes.

To use OpenMPI, first activate the openmpi conda environment:

conda activate openmpi

Next, compile your code:

mpicc -o mpi_program mpi_codes.c

Replace mpi_program and mpi_codes.c with your desired output and input file names.

Finally, you can run mpi_program with srun. For example, to run on two nodes:

srun -N 2 ./mpi_program