Make openmpi an optional dependency
Task Info (Flyspray) | |
---|---|
Opened By | loqs (loqs) |
Task ID | 80101 |
Type | Feature Request |
Project | Arch Linux |
Category | Packages: Extra |
Version | None |
OS | All |
Opened | 2023-10-29 22:13:49 UTC |
Status | Assigned |
Assignee | David Runge (dvzrv) |
Details
Description:
fftw is built with support for parallelism using either threads or openmpi but neither is required to use fftw.
Nothing in the repositories appears to currently be using fftw's openmpi support:
$ sogrep all libfftw3_mpi.so.3
$ sogrep all libfftw3f_mpi.so.3
$ sogrep all libfftw3l_mpi.so.3
Additionally the openmpi based libraries may currently be broken as they do not link to libmpi.so.
The attached diff moves openmpi from depends to makedepends and optdepends. It also links the openmpi based libraries with the flags from mpicc --showme:link
[1] an alternative would be setting CC=mpicc [2].
Additional info:
- fftw 3.3.10-4 [1] https://sources.debian.org/src/fftw3/3.3.10-1/debian/rules/#L63 [2] https://src.fedoraproject.org/rpms/fftw/blob/1f685fa2628e8eb660e945acb14daf5b20f9dbb4/f/fftw.spec#_350