unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
From: "Franck Pérignon" <Franck.Perignon@univ-grenoble-alpes.fr>
To: 47656@debbugs.gnu.org
Subject: [bug#47656] [PATCH] Add boost mpi
Date: Thu, 8 Apr 2021 15:46:45 +0200	[thread overview]
Message-ID: <23E636A1-81D3-4312-9F24-ECEF9DB9954F@univ-grenoble-alpes.fr> (raw)

[-- Attachment #1: Type: text/plain, Size: 91 bytes --]

Hello,

the attached file adds a recipe to install boost with its component mpi.




Thanks

[-- Attachment #2.1: Type: text/html, Size: 847 bytes --]

[-- Attachment #2.2: 0001-PATCH-add-boost-mpi.patch --]
[-- Type: application/octet-stream, Size: 2339 bytes --]

From be7a3cb3bf4060ed4430c36d797127d4268ab446 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Franck=20P=C3=A9rignon?=
 <Franck.Perignon@univ-grenoble-alpes.fr>
Date: Thu, 8 Apr 2021 13:42:27 +0000
Subject: [PATCH] =?UTF-8?q?[PATCH]=C2=A0add=20boost-mpi?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 gnu/packages/boost.scm | 27 +++++++++++++++++++++++++++
 1 file changed, 27 insertions(+)

diff --git a/gnu/packages/boost.scm b/gnu/packages/boost.scm
index 1323e28278..db0f79f3b0 100644
--- a/gnu/packages/boost.scm
+++ b/gnu/packages/boost.scm
@@ -14,6 +14,7 @@
 ;;; Copyright © 2019, 2020 Giacomo Leidi <goodoldpaul@autistici.org>
 ;;; Copyright © 2020 Marius Bakke <mbakke@fastmail.com>
 ;;; Copyright © 2020 Jonathan Brielmaier <jonathan.brielmaier@web.de>
+;;; Copyright © 2021 Franck Pérignon <franck.perignon@univ-grenoble-alpes.fr>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -45,6 +46,7 @@
   #:use-module (gnu packages perl)
   #:use-module (gnu packages python)
   #:use-module (gnu packages shells)
+  #:use-module (gnu packages mpi)
   #:use-module (srfi srfi-1))
 
 (define (version-with-underscores version)
@@ -347,6 +349,31 @@ Boost.Thread.")
 signals and slots system.")
     (license (license:x11-style "https://www.boost.org/LICENSE_1_0.txt"))))
 
+
+(define-public boost-mpi
+  (package
+    (inherit boost)
+    (name "boost-mpi")
+    (native-inputs
+     `(("perl" ,perl)
+       ,@(if (%current-target-system)
+             '()
+             `(("python" ,python-wrapper)))
+       ("openmpi" , openmpi)))
+    (arguments
+     (substitute-keyword-arguments (package-arguments boost)
+      ((#:phases phases)
+        `(modify-phases ,phases
+         (add-after 'configure 'update-jam
+           (lambda* (#:key inputs outputs #:allow-other-keys)
+             (let ((output-port (open-file "project-config.jam" "a")))
+               (display "using mpi ;" output-port)
+               (newline output-port)
+               (close output-port))))))))
+    (home-page "https://www.boost.org")
+    (synopsis "Message Passing Interface library")
+    (license (license:x11-style "https://www.boost.org/LICENSE_1_0.txt"))))
+
 (define-public mdds
   (package
     (name "mdds")
-- 
2.25.1


[-- Attachment #2.3: Type: text/html, Size: 285 bytes --]

             reply	other threads:[~2021-04-08 13:53 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-04-08 13:46 Franck Pérignon [this message]
2021-04-09 15:35 ` bug#47656: [PATCH] Add boost mpi Ludovic Courtès

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=23E636A1-81D3-4312-9F24-ECEF9DB9954F@univ-grenoble-alpes.fr \
    --to=franck.perignon@univ-grenoble-alpes.fr \
    --cc=47656@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).