#%Module

# NOTE: This is an automatically-generated file!  (generated by the
# Open MPI RPM).  Any changes made here will be lost a) if the RPM is
# uninstalled, or b) if the RPM is upgraded or uninstalled.

proc ModulesHelp { } {
   puts stderr "This module adds Open MPI gcc 4.0.4 to various paths"
}

module-whatis   "Sets up Open MPI gcc 4.0.4 in your environment"

#
#
prepend-path PATH "/usr/local/openmpi/4.0.4/gcc/x86_64/bin"
prepend-path LD_LIBRARY_PATH "/usr/local/openmpi/4.0.4/gcc/x86_64/lib64"
prepend-path MANPATH "/usr/local/openmpi/4.0.4/gcc/x86_64/man"
append-path -d { } LOCAL_LDFLAGS "-L/usr/local/openmpi/4.0.4/gcc/x86_64/lib64"
append-path -d { } LOCAL_INCLUDE "-I/usr/local/openmpi/4.0.4/gcc/x86_64/include"
append-path -d { } LOCAL_CFLAGS "-I/usr/local/openmpi/4.0.4/gcc/x86_64/include"
append-path -d { } LOCAL_FFLAGS "-I/usr/local/openmpi/4.0.4/gcc/x86_64/include"
append-path -d { } LOCAL_CXXFLAGS "-I/usr/local/openmpi/4.0.4/gcc/x86_64/include"
setenv SLURM_MPI_TYPE pmix_v3
setenv MPIHOME /usr/local/openmpi/4.0.4/gcc/x86_64
setenv MPI_HOME /usr/local/openmpi/4.0.4/gcc/x86_64
setenv OPENMPI_HOME /usr/local/openmpi/4.0.4/gcc/x86_64
