[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#33059] [PATCH v2 1/9] gnu: Add python-mpi4py.
From: |
Paul Garlick |
Subject: |
[bug#33059] [PATCH v2 1/9] gnu: Add python-mpi4py. |
Date: |
Mon, 12 Nov 2018 16:00:33 +0000 |
* gnu/packages/mpi.scm (python-mpi4py): New variable.
---
gnu/packages/mpi.scm | 42 ++++++++++++++++++++++++++++++++++++++++++
1 file changed, 42 insertions(+)
diff --git a/gnu/packages/mpi.scm b/gnu/packages/mpi.scm
index fc8aade..f08a7f5 100644
--- a/gnu/packages/mpi.scm
+++ b/gnu/packages/mpi.scm
@@ -6,6 +6,7 @@
;;; Copyright © 2017 Dave Love <address@hidden>
;;; Copyright © 2017 Efraim Flashner <address@hidden>
;;; Copyright © 2018 Tobias Geerinckx-Rice <address@hidden>
+;;; Copyright © 2018 Paul Garlick <address@hidden>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -29,6 +30,7 @@
#:use-module (guix download)
#:use-module (guix utils)
#:use-module (guix build-system gnu)
+ #:use-module (guix build-system python)
#:use-module (gnu packages)
#:use-module (gnu packages gcc)
#:use-module (gnu packages linux)
@@ -263,3 +265,43 @@ only provides @code{MPI_THREAD_FUNNELED}.")))
;; in the build environment than the package wants while testing.
(setenv "OMPI_MCA_rmaps_base_oversubscribe" "yes")
#t))
+
+(define-public python-mpi4py
+ (package
+ (name "python-mpi4py")
+ (version "3.0.0")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "mpi4py" version))
+ (sha256
+ (base32
+ "1mzgd26dfv4vwbci8gq77ss9f0x26i9aqzq9b9vs9ndxhlnv0mxl"))))
+ (build-system python-build-system)
+ (arguments
+ `(#:phases
+ (modify-phases %standard-phases
+ (add-after 'build 'mpi-setup
+ ,%openmpi-setup)
+ (add-before 'check 'pre-check
+ (lambda _
+ ;; Skip BaseTestSpawn class (causes error 'ompi_dpm_dyn_init()
+ ;; failed --> Returned "Unreachable"' in chroot environment).
+ (substitute* "test/test_spawn.py"
+ (("unittest.skipMPI\\('openmpi\\(<3.0.0\\)'\\)")
+ "unittest.skipMPI('openmpi')"))
+ #t)))))
+ (inputs
+ `(("openmpi" ,openmpi)))
+ (home-page "https://bitbucket.org/mpi4py/mpi4py/")
+ (synopsis "Python bindings for the Message Passing Interface standard")
+ (description "MPI for Python (mpi4py) provides bindings of the Message
+Passing Interface (MPI) standard for the Python programming language, allowing
+any Python program to exploit multiple processors.
+
+mpi4py is constructed on top of the MPI-1/MPI-2 specification and provides an
+object oriented interface which closely follows MPI-2 C++ bindings. It
+supports point-to-point and collective communications of any picklable Python
+object as well as optimized communications of Python objects (such as NumPy
+arrays) that expose a buffer interface.")
+ (license bsd-3)))
--
1.8.3.1
- [bug#33059] [PATCH v2 0/9] Add the FEniCS Project, v2 patches, Paul Garlick, 2018/11/12
- [bug#33059] [PATCH v2 3/9] gnu: Add python-slepc4py., Paul Garlick, 2018/11/12
- [bug#33059] [PATCH v2 2/9] gnu: Add python-petsc4py., Paul Garlick, 2018/11/12
- [bug#33059] [PATCH v2 9/9] gnu: Add fenics., Paul Garlick, 2018/11/12
- [bug#33059] [PATCH v2 1/9] gnu: Add python-mpi4py.,
Paul Garlick <=
- [bug#33059] [PATCH v2 6/9] gnu: Add python-fenics-fiat., Paul Garlick, 2018/11/12
- [bug#33059] [PATCH v2 4/9] gnu: Add python-fenics-dijitso., Paul Garlick, 2018/11/12
- [bug#33059] [PATCH v2 7/9] gnu: Add python-fenics-ffc., Paul Garlick, 2018/11/12
- [bug#33059] [PATCH v2 8/9] gnu: Add fenics-dolfin., Paul Garlick, 2018/11/12
- [bug#33059] [PATCH v2 5/9] gnu: Add python-fenics-ufl., Paul Garlick, 2018/11/12
- bug#33059: [PATCH v2 0/9] Add the FEniCS Project, v2 patches, Ludovic Courtès, 2018/11/14