From 537edfbffb75959c58e3ebac7f423fc05fab0362 Mon Sep 17 00:00:00 2001 From: CoprDistGit Date: Thu, 12 Dec 2024 17:05:32 +0000 Subject: automatic import of heffte --- heffte.spec | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/heffte.spec b/heffte.spec index 42566c4..493bb36 100644 --- a/heffte.spec +++ b/heffte.spec @@ -112,6 +112,7 @@ for mpi in mpich openmpi; do done %install +source /etc/profile.d/modules.sh for mpi in mpich openmpi; do test -n "${mpi}" && module load mpi/${mpi}-%{_arch} %make_install -C .obj-%{_target_platform} @@ -122,6 +123,7 @@ done rm -rf %{buildroot}%{_datadir}/%{name}/testing %check +source /etc/profile.d/modules.sh # allow openmpi to oversubscribe, i.e. runs test with more # cores than the builder has export PRTE_MCA_rmaps_default_mapping_policy=:oversubscribe @@ -148,15 +150,15 @@ done %files mpich %doc README.md %license LICENSE -%{_libdir}/mpich*/lib/lib%{name}*.so.%{version} +%{_libdir}/openmpi*/lib/lib%{name}*.so.%{version} %files mpich-devel %{_includedir}/mpich*/%{name}* %dir %{_includedir}/mpich*/stock_fft %{_includedir}/mpich*/stock_fft/*.h -%{_libdir}/mpich*/lib/cmake/Heffte -%{_libdir}/mpich*/lib/lib%{name}*.so -%{_libdir}/mpich*/lib/lib%{name}*.so.%{sover} +%{_libdir}/openmpi*/lib/cmake/Heffte +%{_libdir}/openmpi*/lib/lib%{name}*.so +%{_libdir}/openmpi*/lib/lib%{name}*.so.%{sover} %files examples %dir %{_datadir}/%{name} -- cgit v1.2.3