From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Bavier Subject: [PATCH 1/4] gnu: openmpi: Add memchecker support Date: Sat, 17 May 2014 00:55:11 -0500 Message-ID: <878uq17xvk.fsf@gmail.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:60870) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WlXXi-0004DH-CF for guix-devel@gnu.org; Sat, 17 May 2014 01:52:26 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WlXXd-000347-S3 for guix-devel@gnu.org; Sat, 17 May 2014 01:52:22 -0400 Received: from mail-ig0-x236.google.com ([2607:f8b0:4001:c05::236]:52262) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WlXXd-000342-Mo for guix-devel@gnu.org; Sat, 17 May 2014 01:52:17 -0400 Received: by mail-ig0-f182.google.com with SMTP id uy17so1645217igb.15 for ; Fri, 16 May 2014 22:52:17 -0700 (PDT) Received: from cooper.gmail.com (chippewa-nat.cray.com. [136.162.34.1]) by mx.google.com with ESMTPSA id uf4sm3283066igc.18.2014.05.16.22.52.14 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Fri, 16 May 2014 22:52:14 -0700 (PDT) List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org To: guix-devel@gnu.org --=-=-= Content-Type: text/x-diff Content-Disposition: inline; filename=0001-gnu-openmpi-Add-memchecker-support.patch >From 3aaab98e3b9a0b1b893dd5bc64e098136364e717 Mon Sep 17 00:00:00 2001 From: Eric Bavier Date: Sat, 17 May 2014 00:02:44 -0500 Subject: [PATCH 1/4] gnu: openmpi: Add memchecker support * gnu/packages/mpi.scm (openmpi) [inputs]: Add valgrind. [arguments]: Add configure flags for memchecker. --- gnu/packages/mpi.scm | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/gnu/packages/mpi.scm b/gnu/packages/mpi.scm index 37b7858..e525ed8 100644 --- a/gnu/packages/mpi.scm +++ b/gnu/packages/mpi.scm @@ -32,6 +32,7 @@ #:use-module (gnu packages xml) #:use-module (gnu packages ncurses) #:use-module (gnu packages pkg-config) + #:use-module (gnu packages valgrind) #:use-module (srfi srfi-1)) (define-public hwloc @@ -99,7 +100,8 @@ bind processes, and much more.") (native-inputs `(("pkg-config" ,pkg-config))) (propagated-inputs - `(("gfortran" ,gfortran-4.8))) + `(("gfortran" ,gfortran-4.8) + ("valgrind" ,valgrind))) (arguments `(#:configure-flags `("--enable-static" "--enable-oshmem" @@ -110,6 +112,10 @@ bind processes, and much more.") ;; "--enable-mpi-thread-multiple" "--enable-mpi-ext=all" "--with-devel-headers" + "--enable-debug" + "--enable-memchecker" + ,(string-append "--with-valgrind=" + (assoc-ref %build-inputs "valgrind")) ,(string-append "--with-hwloc=" (assoc-ref %build-inputs "hwloc"))))) (home-page "http://www.open-mpi.org") -- 1.7.9.5 --=-=-= -- Eric Bavier Please avoid sending me Word or PowerPoint attachments. See http://www.gnu.org/philosophy/no-word-attachments.html --=-=-=--