diff options
author | CoprDistGit <infra@openeuler.org> | 2024-12-12 17:05:32 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2024-12-12 17:05:32 +0000 |
commit | 537edfbffb75959c58e3ebac7f423fc05fab0362 (patch) | |
tree | 4632bcd09d24c90b1ce8d2f63362008c0848728c | |
parent | 5f8163170250edf725530d16f86cc2dfd4a4e7ef (diff) |
automatic import of heffte
-rw-r--r-- | heffte.spec | 10 |
1 files 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} |