From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:57932) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1drVcj-0004jn-Jz for guix-patches@gnu.org; Mon, 11 Sep 2017 16:48:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1drVcg-0003Ua-GZ for guix-patches@gnu.org; Mon, 11 Sep 2017 16:48:05 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:53716) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1drVcg-0003UO-Cg for guix-patches@gnu.org; Mon, 11 Sep 2017 16:48:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1drVcg-0005br-3a for guix-patches@gnu.org; Mon, 11 Sep 2017 16:48:02 -0400 Subject: [bug#28423] gnu: Add imb-openmpi. Resent-Message-ID: Received: from eggs.gnu.org ([2001:4830:134:3::10]:57844) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1drVcK-0004ck-Sy for guix-patches@gnu.org; Mon, 11 Sep 2017 16:47:42 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1drVcH-0003Ki-On for guix-patches@gnu.org; Mon, 11 Sep 2017 16:47:40 -0400 Received: from tranquility.mcc.ac.uk ([130.88.200.145]:33545) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1drVcH-0003JA-H7 for guix-patches@gnu.org; Mon, 11 Sep 2017 16:47:37 -0400 Received: from asmtp2.its.manchester.ac.uk ([130.88.13.150]) by tranquility.mcc.ac.uk with esmtps (TLSv1:DHE-RSA-AES256-SHA:256) (Exim 4.85 (FreeBSD)) (envelope-from ) id 1drVcG-0003Wk-1d for guix-patches@gnu.org; Mon, 11 Sep 2017 21:47:36 +0100 Received: from albion.it.manchester.ac.uk ([130.88.138.79]:58264) by asmtp2.its.manchester.ac.uk with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.89) (envelope-from ) id 1drVcF-00027R-OJ for guix-patches@gnu.org; Mon, 11 Sep 2017 21:47:35 +0100 From: Dave Love References: <877ex5j7dz.fsf@albion.it.manchester.ac.uk> Date: Mon, 11 Sep 2017 21:47:35 +0100 In-Reply-To: <877ex5j7dz.fsf@albion.it.manchester.ac.uk> (Dave Love's message of "Mon, 11 Sep 2017 21:40:56 +0100") Message-ID: <87377tj72w.fsf@albion.it.manchester.ac.uk> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="Human-to-Human-DERA-Narcotics-FX-H.N.P." 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: 28423@debbugs.gnu.org --Human-to-Human-DERA-Narcotics-FX-H.N.P. Content-Type: text/plain I wrote: > I'm not sure whether this should be in benchmark or in mpi, as an MPI > benchmark. and then attached an old one rather then a new one where I put it in benchmark instead... This is what I meant to send. --Human-to-Human-DERA-Narcotics-FX-H.N.P. Content-Type: text/x-diff; charset=iso-8859-1 Content-Disposition: attachment; filename=0001-gnu-Add-imb-openmpi.patch Content-Transfer-Encoding: quoted-printable >From eed7aaac597248505d0ad0609810f7af5caac720 Mon Sep 17 00:00:00 2001 From: Dave Love Date: Sat, 9 Sep 2017 11:10:29 +0100 Subject: [PATCH] gnu: Add imb-openmpi. * mpi.scm (gnu, imb): New function. (imb-openmpi): New package. --- gnu/packages/benchmark.scm | 68 ++++++++++++++++++++++++++++++++++++++++++= ++++ 1 file changed, 68 insertions(+) diff --git a/gnu/packages/benchmark.scm b/gnu/packages/benchmark.scm index 136f141d8..7ed4addcf 100644 --- a/gnu/packages/benchmark.scm +++ b/gnu/packages/benchmark.scm @@ -1,5 +1,6 @@ ;;; GNU Guix --- Functional package management for GNU ;;; Copyright =A9 2016, 2017 Marius Bakke +;;; Copyright =A9 2017 Dave Love ;;; ;;; This file is part of GNU Guix. ;;; @@ -24,6 +25,7 @@ #:use-module (gnu packages compression) #:use-module (gnu packages linux) #:use-module (gnu packages maths) + #:use-module (gnu packages mpi) #:use-module (gnu packages python) #:use-module (gnu packages storage)) =20 @@ -103,3 +105,69 @@ is to write a job file matching the I/O load one wants= to simulate.") ;; are covered by other licenses. (license (list license:gpl2 license:gpl2+ license:bsd-2 license:public-domain)))) + +;; Parameterized in anticipation of m(va)pich support +(define (imb mpi) + (package + (name (string-append "imb-" (package-name mpi))) + (version "2017.2") + (source + (origin + (method url-fetch) + (uri (let* ((parts (string-split version #\.) ) + (major (car parts)) + (minor (cadr parts))) + (string-append + "https://software.intel.com/sites/default/files/managed/76/6= c/IMB_" + major "_Update" minor ".tgz"))) + (sha256 (base32 "11nczxm686rsppmw9gjc2p2sxc0jniv5kv18yxm1lzp5qfh5rqy= b")))) + (build-system gnu-build-system) + (inputs + `((,(package-name mpi) ,mpi))) + (arguments + `(#:phases + (modify-phases %standard-phases + (delete 'configure) + (delete 'check) + (replace 'build + (lambda* _ + (let ((mpi-home (dirname (dirname (which "mpicc"))))) + (zero? + ;; Not safe for parallel build + (system + (format #f "make -C imb/src -f make_mpich SHELL=3Dsh MPI_= HOME=3D~a" + mpi-home)))))) + (replace 'install + (lambda* (#:key outputs #:allow-other-keys) + (let* ((out (assoc-ref outputs "out")) + (doc (string-append out "/share/doc")) + (bin (string-append out "/bin"))) + (mkdir-p bin) + (mkdir-p doc) + (and + (zero? + (system + (string-append + "cd imb/src && install -m755 IMB-IO IMB-EXT IMB-MPI1 IM= B-NBC IMB-RMA " + bin))) + (zero? + (system + (string-append + "cd imb && cp -r license " doc)))))))))) + (home-page "https://software.intel.com/en-us/articles/intel-mpi-benchm= arks") + (synopsis (format #f "Intel MPI Benchmarks, ~a version" (package-name = mpi))) + (description (format #f "\ +A set of MPI performance measurements for point-to-point and global +communication, and file, operations for a range of message sizes. +The generated benchmark data fully characterize: +@itemize +@item +Performance of a cluster system, including node performance, network laten= cy, +and throughput; +@item +Efficiency of the MPI implementation. +@end itemize +This is the ~a version." (package-name mpi))) + (license license:cpl1.0))) + +(define-public imb-openmpi (imb openmpi)) --=20 2.11.0 --Human-to-Human-DERA-Narcotics-FX-H.N.P.--