2022-04-10 07:41:28 +00:00
|
|
|
From 27c409c30875ea3ddb8e4bfc6add07c5a3c7780a Mon Sep 17 00:00:00 2001
|
|
|
|
From: =?UTF-8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= <zbyszek@in.waw.pl>
|
|
|
|
Date: Sun, 10 Apr 2022 09:36:17 +0200
|
|
|
|
Subject: [PATCH 4/4] Make mpich.module useful
|
|
|
|
|
|
|
|
---
|
|
|
|
src/packaging/envmods/mpich.module.in | 25 ++++++++++++++++++-------
|
|
|
|
1 file changed, 18 insertions(+), 7 deletions(-)
|
|
|
|
|
|
|
|
diff --git a/src/packaging/envmods/mpich.module.in b/src/packaging/envmods/mpich.module.in
|
|
|
|
index 3d6b4fa623..b8283274ee 100644
|
|
|
|
--- a/src/packaging/envmods/mpich.module.in
|
|
|
|
+++ b/src/packaging/envmods/mpich.module.in
|
2015-08-27 21:35:04 +00:00
|
|
|
@@ -3,12 +3,23 @@
|
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@
|
2015-11-16 20:24:27 +00:00
|
|
|
+setenv MPI_FORTRAN_MOD_DIR @fortranmoddir@/@MPINAME@
|
2013-07-19 16:31:27 +00:00
|
|
|
+setenv MPI_INCLUDE @includedir@
|
|
|
|
+setenv MPI_LIB @libdir@
|
|
|
|
+setenv MPI_MAN @mandir@
|
2015-08-27 21:35:04 +00:00
|
|
|
+setenv MPI_PYTHON_SITEARCH @py2sitearch@/@MPINAME@
|
|
|
|
+setenv MPI_PYTHON2_SITEARCH @py2sitearch@/@MPINAME@
|
|
|
|
+setenv MPI_PYTHON3_SITEARCH @py3sitearch@/@MPINAME@
|
2015-03-13 20:52:47 +00:00
|
|
|
+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@
|
2018-04-04 12:17:12 +00:00
|
|
|
-prepend-path MANPATH @mandir@
|
2013-07-19 16:31:27 +00:00
|
|
|
-
|
|
|
|
-# Undefine prefix and exec_prefix which are too generic environment variables.
|
|
|
|
-unsetenv prefix
|
|
|
|
-unsetenv exec_prefix
|
2018-04-04 12:17:12 +00:00
|
|
|
+prepend-path LD_LIBRARY_PATH @libdir@
|
|
|
|
+prepend-path MANPATH :@mandir@
|
2015-08-27 21:35:04 +00:00
|
|
|
+prepend-path PKG_CONFIG_PATH @LIBDIR@/lib/pkgconfig
|
2023-10-12 08:19:22 +00:00
|
|
|
+prepend-path CMAKE_PREFIX_PATH @LIBDIR@
|