unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
* [bug#30318] [PATCH 2/2] gnu: Add Elemental.
@ 2018-02-01 15:54 Eric Bavier
  2018-02-01 21:12 ` Leo Famulari
  0 siblings, 1 reply; 3+ messages in thread
From: Eric Bavier @ 2018-02-01 15:54 UTC (permalink / raw)
  To: 30318

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

This patch adds the Elemental solver library.

-- 
Eric Bavier, Scientific Libraries, Cray Inc.

[-- Attachment #2: 0002-gnu-Add-Elemental.patch --]
[-- Type: text/x-patch, Size: 3633 bytes --]

From d30c6a00a2c23d8e51b09ac7d3db4e6135d68286 Mon Sep 17 00:00:00 2001
From: Eric Bavier <bavier@cray.com>
Date: Wed, 31 Jan 2018 16:56:10 -0600
Subject: [PATCH 2/2] gnu: Add Elemental.

* gnu/packages/maths.scm (elemental): New variable.
---
 gnu/packages/maths.scm | 55 +++++++++++++++++++++++++++++++++++++++++++++++++-
 1 file changed, 54 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/maths.scm b/gnu/packages/maths.scm
index bce662737..dfd48aee4 100644
--- a/gnu/packages/maths.scm
+++ b/gnu/packages/maths.scm
@@ -2,7 +2,7 @@
 ;;; Copyright © 2013, 2014, 2015, 2016 Andreas Enge <andreas@enge.fr>
 ;;; Copyright © 2013 Nikita Karetnikov <nikita@karetnikov.org>
 ;;; Copyright © 2014, 2016, 2017 John Darrington <jmd@gnu.org>
-;;; Copyright © 2014, 2015, 2016, 2017 Eric Bavier <bavier@member.fsf.org>
+;;; Copyright © 2014, 2015, 2016, 2017, 2018 Eric Bavier <bavier@member.fsf.org>
 ;;; Copyright © 2014 Federico Beffa <beffa@fbengineering.ch>
 ;;; Copyright © 2014 Mathieu Lirzin <mathieu.lirzin@openmailbox.org>
 ;;; Copyright © 2015, 2016, 2017 Ricardo Wurmus <rekado@elephly.net>
@@ -3651,3 +3651,56 @@ parametrized transition systems with states represented as arrays indexed by
 an arbitrary number of processes.  Cache coherence protocols and mutual
 exclusion algorithms are typical examples of such systems.")
     (license license:asl2.0)))
+
+(define-public elemental
+  (package
+    (name "elemental")
+    (version "0.87.7")
+    (source (origin
+              (method url-fetch)
+              (uri (string-append "https://github.com/elemental/Elemental/"
+                                  "archive/v" version ".tar.gz"))
+              (file-name (string-append name "-" version ".tar.gz"))
+              (sha256
+               (base32
+                "1nfp82w22pi8x8fg9sc37z8kf84dqi1dhxp8bbk7571y4aygvv3v"))))
+    (build-system cmake-build-system)
+    (home-page "http://libelemental.org")
+    (native-inputs
+     `(("gfortran" ,gfortran)))
+    (inputs
+     `(("blas" ,openblas)
+       ("gfortran:lib" ,gfortran "lib")
+       ("gmp" ,gmp)
+       ("lapack" ,lapack)
+       ("metis" ,metis)
+       ("mpc" ,mpc)
+       ("mpfr" ,mpfr)
+       ("mpi" ,openmpi)
+       ("qd" ,qd)))
+    (arguments
+     `(#:build-type "Release"           ;default RelWithDebInfo not supported
+       #:configure-flags `("-DEL_DISABLE_PARMETIS:BOOL=YES"
+                           "-DEL_AVOID_COMPLEX_MPI:BOOL=NO"
+                           "-DEL_CACHE_WARNINGS:BOOL=YES"
+                           "-DEL_TESTS:BOOL=YES"
+                           "-DCMAKE_INSTALL_LIBDIR=lib"
+                           "-DGFORTRAN_LIB=gfortran")
+       #:phases (modify-phases %standard-phases
+                  (add-before 'check 'setup-tests
+                    (lambda _
+                      ;; Parallelism is done at the MPI layer.
+                      (setenv "OMP_NUM_THREADS" "1")
+                      #t))
+                  (add-after 'install 'remove-tests
+                    (lambda* (#:key outputs #:allow-other-keys)
+                      ;; Tests are installed, with no easy configuration
+                      ;; switch to prevent this, so delete them.
+                      (delete-file-recursively
+                       (string-append (assoc-ref outputs "out") "/bin"))
+                      #t)))))
+    (synopsis "Dense and sparse-direct linear algebra and optimization")
+    (description "Elemental is a modern C++ library for distributed-memory
+dense and sparse-direct linear algebra, conic optimization, and lattice
+reduction.")
+    (license license:bsd-2)))
-- 
2.15.1


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [bug#30318] [PATCH 2/2] gnu: Add Elemental.
  2018-02-01 15:54 [bug#30318] [PATCH 2/2] gnu: Add Elemental Eric Bavier
@ 2018-02-01 21:12 ` Leo Famulari
  2018-02-02 14:41   ` bug#30318: " Eric Bavier
  0 siblings, 1 reply; 3+ messages in thread
From: Leo Famulari @ 2018-02-01 21:12 UTC (permalink / raw)
  To: Eric Bavier; +Cc: 30318

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

On Thu, Feb 01, 2018 at 09:54:27AM -0600, Eric Bavier wrote:
> This patch adds the Elemental solver library.
> 
> -- 
> Eric Bavier, Scientific Libraries, Cray Inc.

> From d30c6a00a2c23d8e51b09ac7d3db4e6135d68286 Mon Sep 17 00:00:00 2001
> From: Eric Bavier <bavier@cray.com>
> Date: Wed, 31 Jan 2018 16:56:10 -0600
> Subject: [PATCH 2/2] gnu: Add Elemental.
> 
> * gnu/packages/maths.scm (elemental): New variable.

LGTM, thanks!

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* bug#30318: [PATCH 2/2] gnu: Add Elemental.
  2018-02-01 21:12 ` Leo Famulari
@ 2018-02-02 14:41   ` Eric Bavier
  0 siblings, 0 replies; 3+ messages in thread
From: Eric Bavier @ 2018-02-02 14:41 UTC (permalink / raw)
  To: 30318-done

On Thu, Feb 01, 2018 at 04:12:12PM -0500, Leo Famulari wrote:
> On Thu, Feb 01, 2018 at 09:54:27AM -0600, Eric Bavier wrote:
> > This patch adds the Elemental solver library.
> > 
> > -- 
> > Eric Bavier, Scientific Libraries, Cray Inc.
> 
> > From d30c6a00a2c23d8e51b09ac7d3db4e6135d68286 Mon Sep 17 00:00:00 2001
> > From: Eric Bavier <bavier@cray.com>
> > Date: Wed, 31 Jan 2018 16:56:10 -0600
> > Subject: [PATCH 2/2] gnu: Add Elemental.
> > 
> > * gnu/packages/maths.scm (elemental): New variable.
> 
> LGTM, thanks!

Pushed in e01397b489dc1ec76fcbe33a26333ddcb92e20f8.

-- 
Eric Bavier, Scientific Libraries, Cray Inc.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2018-02-02 16:30 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-02-01 15:54 [bug#30318] [PATCH 2/2] gnu: Add Elemental Eric Bavier
2018-02-01 21:12 ` Leo Famulari
2018-02-02 14:41   ` bug#30318: " Eric Bavier

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).