From eb6785cfe7ef9a89e6465fa66fd5eae3612552c1 Mon Sep 17 00:00:00 2001 From: Eric Bavier Date: Wed, 30 Jan 2019 00:25:22 -0600 Subject: [PATCH] gnu: fftw-openmpi: Setup MPI for tests. * gnu/packages/algebra.scm (fftw-openmpi)[arguments]: Add 'mpi-setup phase. --- gnu/packages/algebra.scm | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/gnu/packages/algebra.scm b/gnu/packages/algebra.scm index 757b1111d6..89be346fab 100644 --- a/gnu/packages/algebra.scm +++ b/gnu/packages/algebra.scm @@ -7,7 +7,7 @@ ;;; Copyright © 2017 Efraim Flashner ;;; Copyright © 2017, 2018 Tobias Geerinckx-Rice ;;; Copyright © 2017 Marius Bakke -;;; Copyright © 2017 Eric Bavier +;;; Copyright © 2017, 2019 Eric Bavier ;;; ;;; This file is part of GNU Guix. ;;; @@ -663,7 +663,11 @@ cosine/ sine transforms or DCT/DST).") (arguments (substitute-keyword-arguments (package-arguments fftw) ((#:configure-flags cf) - `(cons "--enable-mpi" ,cf)))) + `(cons "--enable-mpi" ,cf)) + ((#:phases phases '%standard-phases) + `(modify-phases ,phases + (add-before 'check 'mpi-setup + ,%openmpi-setup))))) (description (string-append (package-description fftw) " With OpenMPI parallelism support."))))