From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:39991) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fBIw3-0004oQ-5l for guix-patches@gnu.org; Wed, 25 Apr 2018 07:50:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fBIvy-0004rq-N3 for guix-patches@gnu.org; Wed, 25 Apr 2018 07:50:07 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:59136) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fBIvy-0004ri-Je for guix-patches@gnu.org; Wed, 25 Apr 2018 07:50:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1fBIvy-0008HL-61 for guix-patches@gnu.org; Wed, 25 Apr 2018 07:50:02 -0400 Subject: [bug#31172] [PATCH] gnu: Add psm2. Resent-Message-ID: From: Rouby Pierre-Antoine Date: Wed, 25 Apr 2018 13:48:50 +0200 Message-Id: <20180425114850.12404-1-pierre-antoine.rouby@inria.fr> In-Reply-To: <87sh7m2igw.fsf@gnu.org> References: <87sh7m2igw.fsf@gnu.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: 31172@debbugs.gnu.org Cc: Rouby Pierre-Antoine * gnu/packages/linux.scm (psm2): New variable. --- gnu/packages/linux.scm | 48 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm index f49171fa5..e69bbf5b7 100644 --- a/gnu/packages/linux.scm +++ b/gnu/packages/linux.scm @@ -27,6 +27,7 @@ ;;; Copyright © 2017, 2018 Rutger Helling ;;; Copyright © 2017 nee ;;; Copyright © 2017 Dave Love +;;; Copyright © 2018 Pierre-Antoine Rouby ;;; ;;; This file is part of GNU Guix. ;;; @@ -4561,3 +4562,50 @@ text-mode or graphical applications that don't use a display server. Also included is @command{fbgrab}, a wrapper around @command{fbcat} that emulates the behaviour of Gunnar Monell's older fbgrab utility.") (license license:gpl2))) + +(define-public psm2 + (package + (name "psm2") + (version "10.3-46") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/intel/opa-psm2.git") + (commit (string-append "PSM2_" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "0wadphv4rl5p38x6a3dgpbijlzqdvcn02cfafnp72nh9faz0zvlx")))) + (build-system gnu-build-system) + (arguments + '(#:make-flags + `(,(string-append "LDFLAGS=-Wl,-rpath=" %output "/lib")) + #:tests? #f + #:phases (modify-phases %standard-phases + (delete 'configure) + (add-after 'unpack 'patch-Makefiles + (lambda _ + (substitute* "Makefile" + (("/lib64") "/lib") + (("/usr") "")) + (substitute* "compat/Makefile" + (("/lib64") "/lib") + (("/usr") "")) + #t)) + (replace 'install + (lambda _ + (setenv "DESTDIR" %output) + (invoke "make" "install")))))) + (inputs + `(("rdma-core" ,rdma-core) + ("numactl" ,numactl))) + (synopsis "Intel Performance Scaled Messaging 2 (PSM2) library") + (description + "This package is low-level user-level Intel's communications interface. +The PSM2 API is a high-performance vendor-specific protocol that provides a +low-level communications interface for the Intel Omni-Path family of +products.") + (home-page "https://github.com/intel/opa-psm2") + ;; Only the x86_64 architecure is supported. + (supported-systems '("x86_64-linux")) + (license (list license:bsd-3 license:gpl2)))) ; dual -- 2.17.0