import rpm-mpi-hooks-8-2.el8
This commit is contained in:
parent
562d8fca9c
commit
1b1f0c5b48
@ -27,8 +27,7 @@ if [ ! -d "$buildroot" ]; then
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Remaining arguments are passed to elfdeps
|
# Arguments are passed to elfdeps
|
||||||
shift
|
|
||||||
elfdepsargs="$@"
|
elfdepsargs="$@"
|
||||||
|
|
||||||
# Search for all MPI implementations:
|
# Search for all MPI implementations:
|
||||||
@ -46,24 +45,16 @@ if [ -e /etc/profile.d/modules.sh ]; then
|
|||||||
done
|
done
|
||||||
export MODULEPATH="$MODULEPATH:$(IFS=:; echo "${_MODULEPATH[*]}")"
|
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
|
module load $module
|
||||||
if [ -z "${MPI_COMPILER}" ]; then
|
|
||||||
>&2 echo "Invalid module file, no MPI_COMPILER defined"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
if [ -z "${MPI_HOME}" ]; then
|
|
||||||
>&2 echo "Invalid module file, no MPI_HOME defined"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
mpi_compiler_for_dir[${MPI_HOME}]=${MPI_COMPILER}
|
mpi_compiler_for_dir[${MPI_HOME}]=${MPI_COMPILER}
|
||||||
if [ ! -z "${MPI_FORTRAN_MOD_DIR}" ]; then
|
mpi_compiler_for_dir[${MPI_FORTRAN_MOD_DIR}]=${MPI_COMPILER}
|
||||||
mpi_compiler_for_dir[${MPI_FORTRAN_MOD_DIR}]=${MPI_COMPILER}
|
if [ -n "${MPI_PYTHON2_SITEARCH}" ]; then
|
||||||
fi
|
|
||||||
if [ ! -z "${MPI_PYTHON2_SITEARCH}" ]; then
|
|
||||||
mpi_compiler_for_dir[${MPI_PYTHON2_SITEARCH}]=${MPI_COMPILER}
|
mpi_compiler_for_dir[${MPI_PYTHON2_SITEARCH}]=${MPI_COMPILER}
|
||||||
|
elif [ -n "${MPI_PYTHON_SITEARCH}" ]; then
|
||||||
|
mpi_compiler_for_dir[${MPI_PYTHON_SITEARCH}]=${MPI_COMPILER}
|
||||||
fi
|
fi
|
||||||
if [ ! -z "${MPI_PYTHON3_SITEARCH}" ]; then
|
if [ -n "${MPI_PYTHON3_SITEARCH}" ]; then
|
||||||
mpi_compiler_for_dir[${MPI_PYTHON3_SITEARCH}]=${MPI_COMPILER}
|
mpi_compiler_for_dir[${MPI_PYTHON3_SITEARCH}]=${MPI_COMPILER}
|
||||||
fi
|
fi
|
||||||
module unload $module
|
module unload $module
|
||||||
|
@ -27,8 +27,7 @@ if [ ! -d "$buildroot" ]; then
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Remaining arguments are passed to elfdeps
|
# Arguments are passed to elfdeps
|
||||||
shift
|
|
||||||
elfdepsargs="$@"
|
elfdepsargs="$@"
|
||||||
|
|
||||||
# Search for all MPI implementations:
|
# Search for all MPI implementations:
|
||||||
@ -48,31 +47,19 @@ if [ -e /etc/profile.d/modules.sh ]; then
|
|||||||
done
|
done
|
||||||
export MODULEPATH="$MODULEPATH:$(IFS=:; echo "${_MODULEPATH[*]}")"
|
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
|
module load $module
|
||||||
if [ -z "${MPI_COMPILER}" ]; then
|
|
||||||
>&2 echo "Invalid module file, no MPI_COMPILER defined"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
if [ -z "${MPI_HOME}" ]; then
|
|
||||||
>&2 echo "Invalid module file, no MPI_HOME defined"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
if [ -z "${MPI_LIB}" ]; then
|
|
||||||
>&2 echo "Invalid module file, no MPI_LIB defined"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
mpi_compiler_for_dir[${MPI_HOME}]=${MPI_COMPILER}
|
mpi_compiler_for_dir[${MPI_HOME}]=${MPI_COMPILER}
|
||||||
mpi_lib_for_compiler[${MPI_COMPILER}]=${MPI_LIB}
|
mpi_compiler_for_dir[${MPI_FORTRAN_MOD_DIR}]=${MPI_COMPILER}
|
||||||
if [ ! -z "${MPI_FORTRAN_MOD_DIR}" ]; then
|
if [ -n "${MPI_PYTHON2_SITEARCH}" ]; then
|
||||||
mpi_compiler_for_dir[${MPI_FORTRAN_MOD_DIR}]=${MPI_COMPILER}
|
|
||||||
fi
|
|
||||||
if [ ! -z "${MPI_PYTHON2_SITEARCH}" ]; then
|
|
||||||
mpi_compiler_for_dir[${MPI_PYTHON2_SITEARCH}]=${MPI_COMPILER}
|
mpi_compiler_for_dir[${MPI_PYTHON2_SITEARCH}]=${MPI_COMPILER}
|
||||||
|
elif [ -n "${MPI_PYTHON_SITEARCH}" ]; then
|
||||||
|
mpi_compiler_for_dir[${MPI_PYTHON_SITEARCH}]=${MPI_COMPILER}
|
||||||
fi
|
fi
|
||||||
if [ ! -z "${MPI_PYTHON3_SITEARCH}" ]; then
|
if [ -n "${MPI_PYTHON3_SITEARCH}" ]; then
|
||||||
mpi_compiler_for_dir[${MPI_PYTHON3_SITEARCH}]=${MPI_COMPILER}
|
mpi_compiler_for_dir[${MPI_PYTHON3_SITEARCH}]=${MPI_COMPILER}
|
||||||
fi
|
fi
|
||||||
|
mpi_lib_for_compiler[${MPI_COMPILER}]=${MPI_LIB}
|
||||||
module unload $module
|
module unload $module
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
Name: rpm-mpi-hooks
|
Name: rpm-mpi-hooks
|
||||||
Version: 5
|
Version: 8
|
||||||
Release: 4%{?dist}
|
Release: 2%{?dist}
|
||||||
Summary: RPM dependency generator hooks for MPI packages
|
Summary: RPM dependency generator hooks for MPI packages
|
||||||
|
|
||||||
License: MIT
|
License: MIT
|
||||||
@ -46,6 +46,14 @@ install -Dpm 0755 %{SOURCE3} %{buildroot}%{_rpmconfigdir}/mpi.req
|
|||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue May 18 2021 Honggang Li <honli@redhat.com> - 8-2
|
||||||
|
- Rebuilt after building tool chain update
|
||||||
|
- Resolves: rhbz#1924665
|
||||||
|
|
||||||
|
* Wed Apr 07 2021 Honggang Li <honli@redhat.com> - 8-1
|
||||||
|
- Sync with latest Fedora repo
|
||||||
|
- Resolves: rhbz#1924665
|
||||||
|
|
||||||
* Thu Sep 13 2018 Jarod Wilson <jarod@redhat.com> - 5-4
|
* Thu Sep 13 2018 Jarod Wilson <jarod@redhat.com> - 5-4
|
||||||
- Make hooks more resilient to missing info
|
- Make hooks more resilient to missing info
|
||||||
- Error out with a useful message when necessary info isn't there
|
- Error out with a useful message when necessary info isn't there
|
||||||
|
Loading…
Reference in New Issue
Block a user