From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id +EclOyu0ZWT55gAASxT56A (envelope-from ) for ; Thu, 18 May 2023 07:14:20 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id iI8wOiu0ZWRITAEAG6o9tA (envelope-from ) for ; Thu, 18 May 2023 07:14:19 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 9234B479BA for ; Thu, 18 May 2023 07:14:19 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pzVxk-0004PQ-M5; Thu, 18 May 2023 01:14:04 -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 1pzVxj-0004PH-5G for guix-patches@gnu.org; Thu, 18 May 2023 01:14:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pzVxi-00041f-TN for guix-patches@gnu.org; Thu, 18 May 2023 01:14:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pzVxi-0002NI-8f for guix-patches@gnu.org; Thu, 18 May 2023 01:14:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#63439] [PATCH v2] gnu: Add opensycl References: In-Reply-To: Resent-From: Andy Tai Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 18 May 2023 05:14:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 63439 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 63439@debbugs.gnu.org Cc: Andy Tai Received: via spool by 63439-submit@debbugs.gnu.org id=B63439.16843867869050 (code B ref 63439); Thu, 18 May 2023 05:14:02 +0000 Received: (at 63439) by debbugs.gnu.org; 18 May 2023 05:13:06 +0000 Received: from localhost ([127.0.0.1]:51676 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pzVwo-0002Lu-3W for submit@debbugs.gnu.org; Thu, 18 May 2023 01:13:06 -0400 Received: from mail-pj1-f48.google.com ([209.85.216.48]:46140) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pzVwl-0002LN-Ho for 63439@debbugs.gnu.org; Thu, 18 May 2023 01:13:04 -0400 Received: by mail-pj1-f48.google.com with SMTP id 98e67ed59e1d1-2532c2c419dso1268011a91.0 for <63439@debbugs.gnu.org>; Wed, 17 May 2023 22:13:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1684386777; x=1686978777; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:sender:from:to:cc:subject:date:message-id:reply-to; bh=qylFBZzJx+shg4zz2/xcfbtE3ewVcsQBZocmLQ4P0+A=; b=MizBV6gDT2ei+GZisqq70COWqRCzMMZPHT7Q//OsQif3S22GskpiBNTwh/3sBhk0kH t95efCc3Sg5xkuIan0JWIoDELpBQbavHVcKew5BO1C/gExRa5/egptVBm+60Xm2M2Fd9 GY7T6b0gchHHCmDWQ58FVUtN/NNIcpUz5nd7GTkRsWeMkdhDkrKnhOGZ8cPPxP9p3hA5 sILhlgpSArRWrhKuS4dRDGP7cSueNiHUqHnHrmUBDmbhk5pVEbatseGsaAYJ77QEsrXE naXe/JrBcR7HRu7klKk8LRL0IdtOF/La14dMUMJYZAuOZjWTA+6hB2aR+Mv4l+Jy0W6K Wetg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684386777; x=1686978777; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:sender:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=qylFBZzJx+shg4zz2/xcfbtE3ewVcsQBZocmLQ4P0+A=; b=dKXOG1PXfUz3xGYKfl1Uce6QielMdvtCvCSN5IYbLa03s1NWJ6TirLE3hJ1kLS0aDP Z8bAXzCIRXZ1WvdDNwLm6MNvfWw5FXgGfmKK5NqK747ea7kyW0LqiYusrgZshbXD5c+q oZcpDBCd2NY/MYwq/edqo82LY9irLCsu8vQbGMfroQT5QJsHY/HS0ZpJrCRpP6UB9tqW HqxU3/ZSP27vOGLR1uk+sdRZVsueWDJ9iT7rdZrV3Jf4G5T92D/EaQIncicDhMvnGker XDVY42U/RsFVlo0KvcId8gIV8fkqkbmnUV+tTDdITPJsmB0jjlk2d2S2OROKzRg1WWyg 0E/A== X-Gm-Message-State: AC+VfDyj8hrIJniEupJWTBtD00mGrT2EoUyHEWa5ohsx92yhDEHG57s0 qwUs0gJ6P5LU98LR0YdhrQm4yCQ+ZC8= X-Google-Smtp-Source: ACHHUZ7IoZU+cXYXfvxBsLkONnXQCGJy3wFpOirKTA1mT1kO8sYL+XdfjMCLFvF+A4U1pv3ZWcBbgg== X-Received: by 2002:a17:90a:f40d:b0:24e:1090:40ac with SMTP id ch13-20020a17090af40d00b0024e109040acmr1369662pjb.37.1684386777161; Wed, 17 May 2023 22:12:57 -0700 (PDT) Received: from localhost.localdomain ([98.37.226.98]) by smtp.googlemail.com with ESMTPSA id mi1-20020a17090b4b4100b002532eef4fc5sm458654pjb.34.2023.05.17.22.12.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 17 May 2023 22:12:56 -0700 (PDT) From: Andy Tai Date: Wed, 17 May 2023 22:12:13 -0700 Message-Id: X-Mailer: git-send-email 2.40.1 MIME-Version: 1.0 Content-Type: text/plain; charset=y Content-Transfer-Encoding: 8bit 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+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN ARC-Seal: i=1; s=key1; d=yhetil.org; t=1684386859; a=rsa-sha256; cv=none; b=khhOgoNw9qVgBNiDbVN3ETA5x6ZYZlXP+hF5mVluF5k4wXiZoUr3VgM9iCZG+RWtf1LfG0 3KnN9MJnuoxUknvMW/HWizrkgYktQ4QSsrTFJNUyz1OEyfAUvmfhkHBmw+V/qVz3Gt8hs/ 0xi4Eu6WjGWLmaDdrhXD2X+OazBWKfYit4PadC21B9OP9pT72YtxxtiOizTgMMtQSIAH1j jbxLgNC4f83orvLy+3VBFeZGglP+4meUxQK8gwONwR5dUDh7bmJYrbx8Ctf+J1iz1NkviD zOEjiDvYj0g9OHX3YeZHmX9UaoZ3/WDhza9cXwhnXvoojrnocWIm+IId9E8UXQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20221208 header.b=MizBV6gD; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1684386859; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=qylFBZzJx+shg4zz2/xcfbtE3ewVcsQBZocmLQ4P0+A=; b=FB0VpVupgtrO9rGA9fxkcp5/Ai4NLOmBz5E07wBIq4ONU8jE77Bv2oyde34Aayxp4Mvi3R uE/spaHq0xfdoUiHdTXcIRa27Mu6fwD5pFk29qHcmdZibBTYIU959sCOH6JuqiVAxwZ8dV L4Y+o48JMc3+zHqEktLren1Dik63bDPsEI9tuzvj1M+mrSd6iRrf+Y9RvGAjGt9k4WypZm Ti6lCS7mKo30VgYKc3cF28ZN12av/gIF6PEx3pzU0efq74JakOzVHiNSpb01jxDT5gWPTO 8OP27ORA7yoDrJ9MNTxfC8euxQoyPs95TDq7okLWO/eWgQ0MELiBXcE2NWcAQQ== X-Migadu-Spam-Score: -0.61 X-Spam-Score: -0.61 X-Migadu-Queue-Id: 9234B479BA X-Migadu-Scanner: scn0.migadu.com Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20221208 header.b=MizBV6gD; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-TUID: KpXeHeBA1Fqd * gnu/packages/sycl.scm (opensycl): New variable --- gnu/packages/sycl.scm | 61 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 61 insertions(+) create mode 100644 gnu/packages/sycl.scm diff --git a/gnu/packages/sycl.scm b/gnu/packages/sycl.scm new file mode 100644 index 0000000000..82fb59ec82 --- /dev/null +++ b/gnu/packages/sycl.scm @@ -0,0 +1,61 @@ +;;; GNU Guix --- Functional package management for GNU +;;; Copyright © 2023 Andy Tai +;;; +;;; This file is part of GNU Guix. +;;; +;;; GNU Guix is free software; you can redistribute it and/or modify it +;;; under the terms of the GNU General Public License as published by +;;; the Free Software Foundation; either version 3 of the License, or (at +;;; your option) any later version. +;;; +;;; GNU Guix is distributed in the hope that it will be useful, but +;;; WITHOUT ANY WARRANTY; without even the implied warranty of +;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +;;; GNU General Public License for more details. +;;; +;;; You should have received a copy of the GNU General Public License +;;; along with GNU Guix. If not, see . + +(define-module (gnu packages sycl) + #:use-module (guix build-system gnu) + #:use-module (guix build-system cmake) + #:use-module (guix build-system python) + #:use-module (guix download) + #:use-module (guix utils) + #:use-module (guix git-download) + #:use-module ((guix licenses) #:prefix license:) + #:use-module (guix packages) + #:use-module (gnu packages) + #:use-module (gnu packages boost) + #:use-module (gnu packages llvm) + #:use-module (gnu packages pkg-config) + #:use-module (gnu packages python) + #:use-module (gnu packages rocm) + #:use-module (gnu packages vulkan)) + +;; This file adds SYCL implementation related packages. Due to the fact that +;; SYCL devices like GPU are not available during build (store environment), +;; tests that require such devices are all disabled. +;; Check https://lists.gnu.org/archive/html/guix-devel/2018-04/msg00293.html + +(define-public opensycl + (package + (name "opensycl") + (version "0.9.4") + (source (origin + (method url-fetch) + (uri (string-append "https://github.com/OpenSYCL/OpenSYCL/" + "archive/refs/tags/v" version ".tar.gz")) + (sha256 + (base32 + "1i2i7r16k2kyjp4yrjp0ywnavr8aa6pfcrwb5xp9c4n8j4qm6qk2")))) + (build-system cmake-build-system) + (native-inputs (list clang-15 llvm-15 python spirv-tools)) + (inputs (list boost rocm-opencl-runtime spirv-headers)) + (arguments `(#:tests? #f)) ; no tests + (home-page "https://github.com/OpenSYCL/OpenSYCL") + (synopsis "Modern SYCL implementation") + (description + "Open SYCL is a modern SYCL implementation targeting CPUs and GPUs from all +major vendors that supports many use cases and approaches for implementing SYCL") + (license license:bsd-2))) base-commit: 5b700945fb0b33eec410de8979cae2fbf0d4f118 -- 2.40.1