Filter default from available modules (#1945041)
This commit is contained in:
parent
44dbc1d59e
commit
55b26a2f68
2
mpi.prov
2
mpi.prov
@ -45,7 +45,7 @@ if [ -e /etc/profile.d/modules.sh ]; then
|
||||
done
|
||||
export MODULEPATH="$MODULEPATH:$(IFS=:; echo "${_MODULEPATH[*]}")"
|
||||
|
||||
for module in $(module -t avail 2>&1 | grep "^mpi/."); do
|
||||
for module in $(module -t avail 2>&1 | grep "^mpi/." | sed "s/(default)$//"); do
|
||||
module load $module
|
||||
mpi_compiler_for_dir[${MPI_HOME}]=${MPI_COMPILER}
|
||||
mpi_compiler_for_dir[${MPI_FORTRAN_MOD_DIR}]=${MPI_COMPILER}
|
||||
|
2
mpi.req
2
mpi.req
@ -47,7 +47,7 @@ if [ -e /etc/profile.d/modules.sh ]; then
|
||||
done
|
||||
export MODULEPATH="$MODULEPATH:$(IFS=:; echo "${_MODULEPATH[*]}")"
|
||||
|
||||
for module in $(module -t avail 2>&1 | grep "^mpi/."); do
|
||||
for module in $(module -t avail 2>&1 | grep "^mpi/." | sed "s/(default)$//"); do
|
||||
module load $module
|
||||
mpi_compiler_for_dir[${MPI_HOME}]=${MPI_COMPILER}
|
||||
mpi_compiler_for_dir[${MPI_FORTRAN_MOD_DIR}]=${MPI_COMPILER}
|
||||
|
@ -1,5 +1,5 @@
|
||||
Name: rpm-mpi-hooks
|
||||
Version: 7
|
||||
Version: 8
|
||||
Release: 1%{?dist}
|
||||
Summary: RPM dependency generator hooks for MPI packages
|
||||
|
||||
@ -46,6 +46,9 @@ install -Dpm 0755 %{SOURCE3} %{buildroot}%{_rpmconfigdir}/mpi.req
|
||||
|
||||
|
||||
%changelog
|
||||
* Wed Mar 31 2021 Sandro Mani <manisandro@gmail.com> - 8-1
|
||||
- Filter default from available modules (#1945041)
|
||||
|
||||
* Thu Feb 18 2021 Sandro Mani <manisandro@gmail.com> 7-1
|
||||
- Fix left-over argument shift in mpi.prov and mpi.req (#1930096)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user