gnu: openmpi: Update to 3.0.1.
* gnu/packages/mpi.scm (openmpi): Update to 3.0.1. [arguments]: In 'remove-absolute' phase, adjust romio file name. * gnu/packages/maths.scm (scalapack)[arguments]: Add 'set-test-environment' phase. (slepc-openmpi)[arguments]: Likewise. (mumps-openmpi)[arguments]: Likewise. (superlu-dist)[arguments]: In 'check' phase, set 'OMPI_MCA_plm_rsh_agent'. (scotch)[arguments]: In 'build-esmumps', likewise. (p4est)[arguments]: Add 'set-test-environment' phase. (hypre-openmpi)[arguments]: Likewise.master
parent
0921eff2a8
commit
6df2a50ac4
|
@ -554,7 +554,16 @@ problems in numerical linear algebra.")
|
||||||
("fortran" ,gfortran)
|
("fortran" ,gfortran)
|
||||||
("lapack" ,lapack))) ;for testing only
|
("lapack" ,lapack))) ;for testing only
|
||||||
(arguments
|
(arguments
|
||||||
`(#:configure-flags `("-DBUILD_SHARED_LIBS:BOOL=YES")))
|
`(#:configure-flags `("-DBUILD_SHARED_LIBS:BOOL=YES")
|
||||||
|
#:phases (modify-phases %standard-phases
|
||||||
|
(add-before 'check 'set-test-environment
|
||||||
|
(lambda _
|
||||||
|
;; By default, running the test suite would fail because
|
||||||
|
;; 'ssh' could not be found in $PATH. Define this
|
||||||
|
;; variable to placate Open MPI without adding a
|
||||||
|
;; dependency on OpenSSH (the agent isn't used anyway.)
|
||||||
|
(setenv "OMPI_MCA_plm_rsh_agent" (which "cat"))
|
||||||
|
#t)))))
|
||||||
(home-page "http://www.netlib.org/scalapack/")
|
(home-page "http://www.netlib.org/scalapack/")
|
||||||
(synopsis "Library for scalable numerical linear algebra")
|
(synopsis "Library for scalable numerical linear algebra")
|
||||||
(description
|
(description
|
||||||
|
@ -1786,6 +1795,18 @@ arising after the discretization of partial differential equations.")
|
||||||
(define-public slepc-openmpi
|
(define-public slepc-openmpi
|
||||||
(package (inherit slepc)
|
(package (inherit slepc)
|
||||||
(name "slepc-openmpi")
|
(name "slepc-openmpi")
|
||||||
|
(arguments
|
||||||
|
(substitute-keyword-arguments (package-arguments slepc)
|
||||||
|
((#:phases phases '%standard-phases)
|
||||||
|
`(modify-phases ,phases
|
||||||
|
(add-before 'check 'set-test-environment
|
||||||
|
(lambda _
|
||||||
|
;; By default, running the test suite would fail because 'ssh'
|
||||||
|
;; could not be found in $PATH. Define this variable to
|
||||||
|
;; placate Open MPI without adding a dependency on OpenSSH (the
|
||||||
|
;; agent isn't used anyway.)
|
||||||
|
(setenv "OMPI_MCA_plm_rsh_agent" (which "cat"))
|
||||||
|
#t))))))
|
||||||
(inputs
|
(inputs
|
||||||
`(("mpi" ,openmpi)
|
`(("mpi" ,openmpi)
|
||||||
("arpack" ,arpack-ng-openmpi)
|
("arpack" ,arpack-ng-openmpi)
|
||||||
|
@ -1955,8 +1976,15 @@ sparse system of linear equations A x = b using Guassian elimination.")
|
||||||
(substitute-keyword-arguments (package-arguments mumps)
|
(substitute-keyword-arguments (package-arguments mumps)
|
||||||
((#:phases phases)
|
((#:phases phases)
|
||||||
`(modify-phases ,phases
|
`(modify-phases ,phases
|
||||||
(replace
|
(add-before 'check 'set-test-environment
|
||||||
'check
|
(lambda _
|
||||||
|
;; By default, running the test suite would fail because 'ssh'
|
||||||
|
;; could not be found in $PATH. Define this variable to
|
||||||
|
;; placate Open MPI without adding a dependency on OpenSSH (the
|
||||||
|
;; agent isn't used anyway.)
|
||||||
|
(setenv "OMPI_MCA_plm_rsh_agent" (which "cat"))
|
||||||
|
#t))
|
||||||
|
(replace 'check
|
||||||
(lambda _
|
(lambda _
|
||||||
((assoc-ref ,phases 'check)
|
((assoc-ref ,phases 'check)
|
||||||
#:exec-prefix '("mpirun" "-n" "2"))))))))
|
#:exec-prefix '("mpirun" "-n" "2"))))))))
|
||||||
|
@ -2201,6 +2229,11 @@ CDEFS = -DAdd_"
|
||||||
#t))
|
#t))
|
||||||
(replace 'check
|
(replace 'check
|
||||||
(lambda _
|
(lambda _
|
||||||
|
;; By default, running the test suite would fail because 'ssh'
|
||||||
|
;; could not be found in $PATH. Define this variable to placate
|
||||||
|
;; Open MPI without adding a dependency on OpenSSH (the agent
|
||||||
|
;; isn't used anyway.)
|
||||||
|
(setenv "OMPI_MCA_plm_rsh_agent" (which "cat"))
|
||||||
(with-directory-excursion "EXAMPLE"
|
(with-directory-excursion "EXAMPLE"
|
||||||
(and
|
(and
|
||||||
(zero? (system* "mpirun" "-n" "2"
|
(zero? (system* "mpirun" "-n" "2"
|
||||||
|
@ -2295,6 +2328,12 @@ YACC = bison -pscotchyy -y -b y
|
||||||
(add-after
|
(add-after
|
||||||
'build 'build-esmumps
|
'build 'build-esmumps
|
||||||
(lambda _
|
(lambda _
|
||||||
|
;; By default, running the test suite would fail because 'ssh'
|
||||||
|
;; could not be found in $PATH. Define this variable to placate
|
||||||
|
;; Open MPI without adding a dependency on OpenSSH (the agent
|
||||||
|
;; isn't used anyway.)
|
||||||
|
(setenv "OMPI_MCA_plm_rsh_agent" (which "cat"))
|
||||||
|
|
||||||
(zero? (system* "make"
|
(zero? (system* "make"
|
||||||
(format #f "-j~a" (parallel-job-count))
|
(format #f "-j~a" (parallel-job-count))
|
||||||
"esmumps"))))
|
"esmumps"))))
|
||||||
|
@ -2474,7 +2513,16 @@ schemes.")
|
||||||
" -lopenblas")
|
" -lopenblas")
|
||||||
,(string-append "LAPACK_LIBS=-L"
|
,(string-append "LAPACK_LIBS=-L"
|
||||||
(assoc-ref %build-inputs "lapack")
|
(assoc-ref %build-inputs "lapack")
|
||||||
" -llapack"))))
|
" -llapack"))
|
||||||
|
#:phases (modify-phases %standard-phases
|
||||||
|
(add-before 'check 'set-test-environment
|
||||||
|
(lambda _
|
||||||
|
;; By default, running the test suite would fail because
|
||||||
|
;; 'ssh' could not be found in $PATH. Define this
|
||||||
|
;; variable to placate Open MPI without adding a
|
||||||
|
;; dependency on OpenSSH (the agent isn't used anyway.)
|
||||||
|
(setenv "OMPI_MCA_plm_rsh_agent" (which "cat"))
|
||||||
|
#t)))))
|
||||||
(home-page "http://www.p4est.org")
|
(home-page "http://www.p4est.org")
|
||||||
(synopsis "Adaptive mesh refinement on forests of octrees")
|
(synopsis "Adaptive mesh refinement on forests of octrees")
|
||||||
(description
|
(description
|
||||||
|
@ -3531,7 +3579,17 @@ problems.")
|
||||||
(substitute-keyword-arguments (package-arguments hypre)
|
(substitute-keyword-arguments (package-arguments hypre)
|
||||||
((#:configure-flags flags)
|
((#:configure-flags flags)
|
||||||
``("--with-MPI"
|
``("--with-MPI"
|
||||||
,@(delete "--without-MPI" ,flags)))))
|
,@(delete "--without-MPI" ,flags)))
|
||||||
|
((#:phases phases)
|
||||||
|
`(modify-phases ,phases
|
||||||
|
(add-before 'check 'set-test-environment
|
||||||
|
(lambda _
|
||||||
|
;; By default, running the test suite would fail because 'ssh'
|
||||||
|
;; could not be found in $PATH. Define this variable to
|
||||||
|
;; placate Open MPI without adding a dependency on OpenSSH (the
|
||||||
|
;; agent isn't used anyway.)
|
||||||
|
(setenv "OMPI_MCA_plm_rsh_agent" (which "cat"))
|
||||||
|
#t))))))
|
||||||
(synopsis "Parallel solvers and preconditioners for linear equations")
|
(synopsis "Parallel solvers and preconditioners for linear equations")
|
||||||
(description
|
(description
|
||||||
"HYPRE is a software library of high performance preconditioners and
|
"HYPRE is a software library of high performance preconditioners and
|
||||||
|
|
|
@ -153,7 +153,7 @@ bind processes, and much more.")
|
||||||
(define-public openmpi
|
(define-public openmpi
|
||||||
(package
|
(package
|
||||||
(name "openmpi")
|
(name "openmpi")
|
||||||
(version "1.10.7")
|
(version "3.0.1")
|
||||||
(source
|
(source
|
||||||
(origin
|
(origin
|
||||||
(method url-fetch)
|
(method url-fetch)
|
||||||
|
@ -162,7 +162,7 @@ bind processes, and much more.")
|
||||||
"/downloads/openmpi-" version ".tar.bz2"))
|
"/downloads/openmpi-" version ".tar.bz2"))
|
||||||
(sha256
|
(sha256
|
||||||
(base32
|
(base32
|
||||||
"142s1vny9gllkq336yafxayjgcirj2jv0ddabj879jgya7hyr2d0"))))
|
"0pbqrm5faf57nasy1s81wqivl7zvxmv8lzjh8hvb0f3qxv8m0d36"))))
|
||||||
(build-system gnu-build-system)
|
(build-system gnu-build-system)
|
||||||
(inputs
|
(inputs
|
||||||
`(("hwloc" ,hwloc "lib")
|
`(("hwloc" ,hwloc "lib")
|
||||||
|
@ -205,8 +205,8 @@ bind processes, and much more.")
|
||||||
(("_ABSOLUTE") ""))
|
(("_ABSOLUTE") ""))
|
||||||
;; Avoid valgrind (which pulls in gdb etc.).
|
;; Avoid valgrind (which pulls in gdb etc.).
|
||||||
(substitute*
|
(substitute*
|
||||||
'("./ompi/mca/io/romio/src/io_romio_component.c")
|
'("./ompi/mca/io/romio314/src/io_romio314_component.c")
|
||||||
(("MCA_io_romio_COMPLETE_CONFIGURE_FLAGS")
|
(("MCA_io_romio314_COMPLETE_CONFIGURE_FLAGS")
|
||||||
"\"[elided to reduce closure]\""))
|
"\"[elided to reduce closure]\""))
|
||||||
#t))
|
#t))
|
||||||
(add-before 'build 'scrub-timestamps ;reproducibility
|
(add-before 'build 'scrub-timestamps ;reproducibility
|
||||||
|
|
Reference in New Issue