b0ad6c
%_mpich_load \
b0ad6c
 . /etc/profile.d/modules.sh; \
b0ad6c
 module load mpi/mpich-%{_arch}; \
b0ad6c
 export CFLAGS="$CFLAGS %{optflags}";
b0ad6c
%_mpich_unload \
b0ad6c
 . /etc/profile.d/modules.sh; \
b0ad6c
 module unload mpi/mpich-%{_arch};