Am 11.05.21 um 15:49 schrieb Vojtěch Zeisek:
Hello, I'm trying to package https://github.com/stephaneguindon/phyml (special biological SW) with MPI support, to submit it into my OBS project (home:vojtaeus), and later possibly into science repo. When I try it without MPI as https://paste.opensuse.org/95718086 it builds perfectly. When I try to add MPI support https://paste.opensuse.org/13410182 it crashes saying [ 19s] + cd phyml-3.3.20200621 [ 19s] + '%{_openmpi_load}' [ 19s] /var/tmp/rpm-tmp.7yP9Zd: line 33: fg: no job control [ 19s] error: Bad exit status from /var/tmp/rpm-tmp.7yP9Zd (%build) I wasn't able to find any good working example, only some old projects for CentOS, which failed. How to package with MPI, please? I tried few more SW using MPI, mostly I failed. Once it builds, but I'm not sure if it's really working well... ;-) Thanks, V.
Hello Vojtěch, the opempi package does not define the macro '%{_openmpi_load}', so oyu have to source the openmpi variables with: %define mpi_ext 3 %define mpi_prefix %{_libdir}/mpi/gcc/openmpi%{?mpi_ext} source %{mpi_prefix}/bin/mpivars.sh I have taken this example from the openfaom2012 [1] package and just hardcoded it to opempi2. In TW you can also use openmpi[234] on leap we have openmpi[23]. kind regards, Christian [1] https://build.opensuse.org/package/view_file/science/openfoam2012 -- Christian Goll CGoll@suse.de SUSE Software Solutions Germany GmbH Maxfeldstr. 5 90409 Nürnberg Germany (HRB 36809, AG Nürnberg) Geschäftsführer: Felix Imendörffer