mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-24 21:38:07 -05:00
gnu: fftw: Factor out OpenMPI dependency.
* gnu/packages/algebra.scm (fftw)[inputs,arguments]: Remove OpenMPI. (fftw-openmpi): New variable.
This commit is contained in:
parent
2b0d560a3f
commit
e5c66f8c7b
1 changed files with 15 additions and 2 deletions
|
@ -207,7 +207,7 @@ (define-public fftw
|
||||||
"10h9mzjxnwlsjziah4lri85scc05rlajz39nqf3mbh4vja8dw34g"))))
|
"10h9mzjxnwlsjziah4lri85scc05rlajz39nqf3mbh4vja8dw34g"))))
|
||||||
(build-system gnu-build-system)
|
(build-system gnu-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
'(#:configure-flags '("--enable-shared" "--enable-openmp" "--enable-mpi")
|
'(#:configure-flags '("--enable-shared" "--enable-openmp")
|
||||||
#:phases (alist-cons-before
|
#:phases (alist-cons-before
|
||||||
'build 'no-native
|
'build 'no-native
|
||||||
(lambda _
|
(lambda _
|
||||||
|
@ -219,7 +219,6 @@ (define-public fftw
|
||||||
(("-mtune=native") "")))
|
(("-mtune=native") "")))
|
||||||
%standard-phases)))
|
%standard-phases)))
|
||||||
(native-inputs `(("perl" ,perl)))
|
(native-inputs `(("perl" ,perl)))
|
||||||
(inputs `(("openmpi" ,openmpi)))
|
|
||||||
(home-page "http://fftw.org")
|
(home-page "http://fftw.org")
|
||||||
(synopsis "Computing the discrete Fourier transform")
|
(synopsis "Computing the discrete Fourier transform")
|
||||||
(description
|
(description
|
||||||
|
@ -239,3 +238,17 @@ (define-public fftwf
|
||||||
(description
|
(description
|
||||||
(string-append (package-description fftw)
|
(string-append (package-description fftw)
|
||||||
" Single-precision version."))))
|
" Single-precision version."))))
|
||||||
|
|
||||||
|
(define-public fftw-openmpi
|
||||||
|
(package (inherit fftw)
|
||||||
|
(name "fftw-openmpi")
|
||||||
|
(inputs
|
||||||
|
`(("openmpi" ,openmpi)
|
||||||
|
,@(package-inputs fftw)))
|
||||||
|
(arguments
|
||||||
|
(substitute-keyword-arguments (package-arguments fftw)
|
||||||
|
((#:configure-flags cf)
|
||||||
|
`(cons "--enable-mpi" ,cf))))
|
||||||
|
(description
|
||||||
|
(string-append (package-description fftw)
|
||||||
|
" With OpenMPI parallelism support."))))
|
||||||
|
|
Loading…
Reference in a new issue