2013-07-19 16:31:27 +00:00
|
|
|
--- src/packaging/envmods/mpich.module.in 2013-01-30 14:45:08.000000000 -0500
|
|
|
|
+++ src/packaging/envmods/mpich.module.in.new 2013-02-21 18:28:01.218528398 -0500
|
2015-03-13 20:52:47 +00:00
|
|
|
@@ -3,12 +3,22 @@
|
2013-07-19 16:31:27 +00:00
|
|
|
# MPICH module for use with 'environment-modules' package:
|
|
|
|
#
|
|
|
|
|
|
|
|
+# Only allow one mpi module to be loaded at a time
|
|
|
|
+conflict mpi
|
|
|
|
+
|
|
|
|
# Define prefix so PATH and MANPATH can be updated.
|
|
|
|
-setenv prefix @prefix@
|
|
|
|
-setenv exec_prefix @exec_prefix@
|
2015-03-13 20:52:47 +00:00
|
|
|
+setenv MPI_BIN @LIBDIR@/bin
|
2015-05-09 17:02:07 +00:00
|
|
|
+setenv MPI_SYSCONFIG @sysconfdir@/@MPINAME@-@ARCH@
|
2013-07-19 16:31:27 +00:00
|
|
|
+setenv MPI_FORTRAN_MOD_DIR @includedir@
|
|
|
|
+setenv MPI_INCLUDE @includedir@
|
|
|
|
+setenv MPI_LIB @libdir@
|
|
|
|
+setenv MPI_MAN @mandir@
|
2015-03-13 20:52:47 +00:00
|
|
|
+setenv MPI_PYTHON_SITEARCH @pysitearch@/@MPINAME@
|
|
|
|
+setenv MPI_COMPILER @MPINAME@-@ARCH@
|
|
|
|
+setenv MPI_SUFFIX _@MPINAME@
|
|
|
|
+setenv MPI_HOME @LIBDIR@
|
2013-07-19 16:31:27 +00:00
|
|
|
prepend-path PATH @bindir@
|
|
|
|
+prepend-path LD_LIBRARY_PATH @libdir@
|
|
|
|
prepend-path MANPATH @mandir@
|
2015-03-13 20:52:47 +00:00
|
|
|
+prepend-path PKG_CONFIG_PATH @LIBDIR@/lib/pkgconfig
|
2013-07-19 16:31:27 +00:00
|
|
|
-
|
|
|
|
-# Undefine prefix and exec_prefix which are too generic environment variables.
|
|
|
|
-unsetenv prefix
|
|
|
|
-unsetenv exec_prefix
|
2015-03-13 20:52:47 +00:00
|
|
|
+prepend-path PYTHONPATH @pysitearch@/@MPINAME@
|