SHA256
1
0
forked from pool/mvapich2

Accepting request 571425 from science:HPC

- Use macro in mpivars.(c)sh to be independent of changes to the module
  setup for the compiler (boo#1078364).

OBS-URL: https://build.opensuse.org/request/show/571425
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/mvapich2?expand=0&rev=6
This commit is contained in:
Dominique Leuenberger 2018-01-31 18:54:47 +00:00 committed by Git OBS Bridge
commit b96b74f988
2 changed files with 12 additions and 2 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Tue Jan 30 20:04:01 UTC 2018 - eich@suse.com
- Use macro in mpivars.(c)sh to be independent of changes to the module
setup for the compiler (boo#1078364).
-------------------------------------------------------------------
Fri Jan 5 19:03:44 UTC 2018 - eich@suse.com

View File

@ -406,9 +406,13 @@ prepend-path MPI_DIR %{hpc_prefix}
family "MPI"
EOF
cat <<EOF > %{buildroot}/%{p_bindir}/mpivars.sh
module load %{hpc_compiler_family}/%{hpc_cf_full_version} %{hpc_mpi_family}%{?pack_suff}/%{version}
%hpc_setup_compiler
module load %{hpc_mpi_family}%{?pack_suff}/%{version}
EOF
ln -s mpivars.sh %{buildroot}/%{p_bindir}/mpivars.csh
sed -e "s/export/setenv/" -e "s/=/ /" \
%{buildroot}/%{p_bindir}/mpivars.sh > \
%{buildroot}/%{p_bindir}/mpivars.csh
mkdir -p %{buildroot}%{_sysconfdir}/rpm
%endif # with hpc