#!/bin/bash
# Compile and run mpi program

# compile p.c
mpicc -o p p.c

# turn off cuda support warnings
export PSM2_CUDA=0
export OMPI_MCA_opal_warn_on_missing_libcuda=0

# run p on 4 processors
mpirun --oversubscribe -np 4 p


