SCRP nodes have OpenMPI 5.0 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
mpi_codes.c with your desired output and input file names.
Finally, you can run
You will need to specify the
large partition in order to request more than one node in a single job.
For example, to run on two nodes:
srun -N 2 -p large ./mpi_program