From: Andy Tai <atai@atai.org>
To: 63439@debbugs.gnu.org
Cc: Andy Tai <atai@atai.org>
Subject: [bug#63439] [PATCH v2] gnu: Add opensycl
Date: Wed, 17 May 2023 22:12:13 -0700 [thread overview]
Message-ID: <aa7b6f7c94de2ff1ca00754094fbb2664e47f08a.1684386694.git.atai@atai.org> (raw)
In-Reply-To: <fc40be1e0e53c2b35d2ffc571e196b42cb56e13b.1683790454.git.atai@atai.org>
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset=y, Size: 3078 bytes --]
* 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 <atai@atai.org>
+;;;
+;;; 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 <http://www.gnu.org/licenses/>.
+
+(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
next prev parent reply other threads:[~2023-05-18 5:14 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-05-11 7:35 [bug#63439] [PATCH] gnu: Add opensycl Andy Tai
2023-05-18 5:12 ` Andy Tai [this message]
2023-05-22 14:41 ` bug#63439: " Ludovic Courtès
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=aa7b6f7c94de2ff1ca00754094fbb2664e47f08a.1684386694.git.atai@atai.org \
--to=atai@atai.org \
--cc=63439@debbugs.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.