c5e0aa
%_openmpi_load \
c5e0aa
 . /etc/profile.d/modules.sh; \
c5e0aa
 module load mpi/openmpi-%{_arch}; \
c5e0aa
 export OMPI_MCA_rmaps_base_oversubscribe=1
c5e0aa
%_openmpi_unload \
c5e0aa
 . /etc/profile.d/modules.sh; \
c5e0aa
 module unload mpi/openmpi-%{_arch};