From patchwork Fri Oct 13 12:35:37 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Paul A. Patience" X-Patchwork-Id: 54796 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id A6B6E27BBEA; Fri, 13 Oct 2023 13:37:03 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,SPF_HELO_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id B91C227BBE2 for ; Fri, 13 Oct 2023 13:37:02 +0100 (BST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qrHPH-000561-LG; Fri, 13 Oct 2023 08:36:43 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qrHPE-00054J-GZ for guix-patches@gnu.org; Fri, 13 Oct 2023 08:36:40 -0400 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qrHPE-0006Jh-7t for guix-patches@gnu.org; Fri, 13 Oct 2023 08:36:40 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qrHPb-0003Yh-5u for guix-patches@gnu.org; Fri, 13 Oct 2023 08:37:03 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#66516] [PATCH 1/2] gnu: Add kokkos. Resent-From: "Paul A. Patience" Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 13 Oct 2023 12:37:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 66516 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 66516@debbugs.gnu.org Cc: "Paul A. Patience" Received: via spool by 66516-submit@debbugs.gnu.org id=B66516.169720057113585 (code B ref 66516); Fri, 13 Oct 2023 12:37:03 +0000 Received: (at 66516) by debbugs.gnu.org; 13 Oct 2023 12:36:11 +0000 Received: from localhost ([127.0.0.1]:45428 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qrHOl-0003X2-6V for submit@debbugs.gnu.org; Fri, 13 Oct 2023 08:36:11 -0400 Received: from mail-4022.proton.ch ([185.70.40.22]:40649) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qrHOj-0003Wj-JA for 66516@debbugs.gnu.org; Fri, 13 Oct 2023 08:36:10 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=apatience.com; s=protonmail2; t=1697200540; x=1697459740; bh=lySA3Cwu3W3bQXgmeRudMme+iZtNhx9mPKrD8yuN9OY=; h=Date:To:From:Cc:Subject:Message-ID:In-Reply-To:References: Feedback-ID:From:To:Cc:Date:Subject:Reply-To:Feedback-ID: Message-ID:BIMI-Selector; b=Gn31R1o9hQwOlz0aXgNd+DCeL8ln4NPvPPwwOODA4VjHIx/foy2Ynfqnee82SHqzH vfNxymk/ZLpsN2gZeeDvtQwTSofA6NltV7mGOU6YFSGL06M4XAk2f0DH3WXfNXMECp 9C/d7vboJ8Zqm+nKtM+RkHgEwaCxZh7EbHrGhaEIbOspeCVv8ITEtIagiSgSbh2lX6 fV5vgjLcfqOUpAUg/YiQe32LZLWBVhwZA8VTizPVG6lLMiOtG0P9VxO9AInR2B26p6 sJKoZ9lPyxMGe0w/UIciRnn0U9FNWNB+0uiwmU+qNFbZeVztajiqJruPPiYoEsG6tg qQLcqMad29i2g== Date: Fri, 13 Oct 2023 12:35:37 +0000 From: "Paul A. Patience" Message-ID: In-Reply-To: References: Feedback-ID: 19227857:user:proton MIME-Version: 1.0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches * gnu/packages/maths.scm (kokkos): New variable. --- gnu/packages/maths.scm | 51 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) diff --git a/gnu/packages/maths.scm b/gnu/packages/maths.scm index 7a87fcb54e..2762e13a4f 100644 --- a/gnu/packages/maths.scm +++ b/gnu/packages/maths.scm @@ -116,6 +116,7 @@ (define-module (gnu packages maths) #:use-module (gnu packages cyrus-sasl) #:use-module (gnu packages datamash) #:use-module (gnu packages dbm) + #:use-module (gnu packages disk) #:use-module (gnu packages documentation) #:use-module (gnu packages elf) #:use-module (gnu packages emacs) @@ -6403,6 +6404,56 @@ (define-public lpsolve revised simplex and the branch-and-bound methods.") (license license:lgpl2.1+))) +(define-public kokkos + (package + (name "kokkos") + (version "4.1.00") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/kokkos/kokkos") + (commit version))) + (file-name (git-file-name name version)) + (sha256 + (base32 "15kjpa54ssrrbid9h2nr94nh85qna5c4vq2152i4iy7gaagigy3c")) + (modules '((guix build utils))) + (snippet + ;; Remove bundled googletest. + #~(delete-file-recursively "tpls/gtest")))) + (build-system cmake-build-system) + (arguments + (list #:configure-flags + ;; deal.II uses only the serial backend, so do not enable the + ;; others yet. + #~(list "-DBUILD_SHARED_LIBS=ON" + "-DKokkos_ENABLE_SERIAL=ON" + "-DKokkos_ENABLE_TESTS=ON" + "-DKokkos_ENABLE_EXAMPLES=ON" + "-DKokkos_ENABLE_HWLOC=ON" + "-DKokkos_ENABLE_MEMKIND=ON") + #:phases + #~(modify-phases %standard-phases + (add-after 'install-license-files 'remove-cruft + (lambda _ + (delete-file + (string-append #$output "/share/doc/" + #$name "-" #$version + "/LICENSE_FILE_HEADER"))))))) + (native-inputs + (list googletest python)) + (inputs + (list `(,hwloc "lib") memkind)) + (home-page "https://github.com/kokkos/kokkos") + (synopsis "C++ abstractions for parallel execution and data management") + (description + "Kokkos Core implements a programming model in C++ for writing performance +portable applications targeting all major HPC platforms. For that purpose it +provides abstractions for both parallel execution of code and data management. +Kokkos is designed to target complex node architectures with N-level memory +hierarchies and multiple types of execution resources.") + (license license:asl2.0))) ; With LLVM exception + ;; Private Trilinos package for dealii-openmpi (similar to ;; trilinos-serial-xyce and trilinos-parallel-xyce). ;; This version is the latest known to be compatible with deal.II [1].