2018-05-12 19:49:01 +00:00
|
|
|
;;; GNU Guix --- Functional package management for GNU
|
|
|
|
;;; Copyright © 2018 Fis Trivial <ybbs.daans@hotmail.com>
|
2018-08-24 01:51:38 +00:00
|
|
|
;;; Copyright © 2018 Tobias Geerinckx-Rice <me@tobias.gr>
|
2018-05-12 19:49:01 +00:00
|
|
|
;;;
|
|
|
|
;;; 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 opencl)
|
|
|
|
#:use-module (guix build-system gnu)
|
2018-05-12 19:49:36 +00:00
|
|
|
#:use-module (guix build-system cmake)
|
2020-02-10 21:49:31 +00:00
|
|
|
#:use-module (guix build-system python)
|
2018-05-12 19:49:36 +00:00
|
|
|
#:use-module (guix download)
|
2018-05-12 19:49:01 +00:00
|
|
|
#:use-module (guix git-download)
|
2018-05-12 19:49:36 +00:00
|
|
|
#:use-module ((guix licenses) #:prefix license:)
|
2018-06-26 19:40:31 +00:00
|
|
|
#:use-module (guix packages)
|
|
|
|
#:use-module (gnu packages)
|
2018-06-29 00:10:25 +00:00
|
|
|
#:use-module (gnu packages autotools)
|
2018-06-26 19:40:31 +00:00
|
|
|
#:use-module (gnu packages gl)
|
2018-06-26 19:39:04 +00:00
|
|
|
#:use-module (gnu packages gnupg)
|
2018-06-26 19:40:31 +00:00
|
|
|
#:use-module (gnu packages compression)
|
|
|
|
#:use-module (gnu packages libedit)
|
|
|
|
#:use-module (gnu packages llvm)
|
2018-06-29 00:10:25 +00:00
|
|
|
#:use-module (gnu packages mpi)
|
2018-06-26 19:40:31 +00:00
|
|
|
#:use-module (gnu packages ncurses)
|
|
|
|
#:use-module (gnu packages pkg-config)
|
2018-06-26 19:39:04 +00:00
|
|
|
#:use-module (gnu packages python)
|
2020-02-10 21:49:31 +00:00
|
|
|
#:use-module (gnu packages python-xyz)
|
2018-06-26 19:40:31 +00:00
|
|
|
#:use-module (gnu packages ruby)
|
|
|
|
#:use-module (gnu packages video)
|
|
|
|
#:use-module (gnu packages xdisorg)
|
|
|
|
#:use-module (gnu packages xorg))
|
2018-05-12 19:49:01 +00:00
|
|
|
|
|
|
|
;; This file adds OpenCL implementation related packages. Due to the fact that
|
2018-06-29 00:10:25 +00:00
|
|
|
;; OpenCL devices like GPU are not available during build (store environment),
|
|
|
|
;; tests that require such devices are all disabled.
|
2018-05-12 19:49:01 +00:00
|
|
|
;; Check https://lists.gnu.org/archive/html/guix-devel/2018-04/msg00293.html
|
|
|
|
|
|
|
|
(define (make-opencl-headers major-version subversion)
|
|
|
|
(let ((commit "e986688daf750633898dfd3994e14a9e618f2aa5")
|
|
|
|
(revision "0"))
|
|
|
|
(package
|
|
|
|
(name "opencl-headers")
|
|
|
|
(version (git-version
|
|
|
|
(string-append major-version "." subversion ".0")
|
|
|
|
revision commit))
|
|
|
|
(source (origin
|
|
|
|
(method git-fetch)
|
|
|
|
(uri (git-reference
|
gnu: Remove ".git" from "https://github/…/….git".
Until now, 'lookup-origin' and thus 'lookup-origin-revision' in (guix
swh) would sometimes return #f for these because the ".git" URLs are
redirects to the non-".git" URLs. Consequently, 'guix lint -c archival'
would keep saying "scheduled Software Heritage archival"; likewise, the
fallback download code would fail.
* gnu/packages/ada.scm,
gnu/packages/admin.scm,
gnu/packages/aidc.scm,
gnu/packages/algebra.scm,
gnu/packages/android.scm,
gnu/packages/animation.scm,
gnu/packages/arcan.scm,
gnu/packages/assembly.scm,
gnu/packages/audio.scm,
gnu/packages/authentication.scm,
gnu/packages/avr.scm,
gnu/packages/axoloti.scm,
gnu/packages/backup.scm,
gnu/packages/bash.scm,
gnu/packages/benchmark.scm,
gnu/packages/bioconductor.scm,
gnu/packages/bioinformatics.scm,
gnu/packages/bittorrent.scm,
gnu/packages/boost.scm,
gnu/packages/build-tools.scm,
gnu/packages/c.scm,
gnu/packages/calendar.scm,
gnu/packages/cdrom.scm,
gnu/packages/check.scm,
gnu/packages/chemistry.scm,
gnu/packages/chez.scm,
gnu/packages/clojure.scm,
gnu/packages/code.scm,
gnu/packages/compression.scm,
gnu/packages/compton.scm,
gnu/packages/coq.scm,
gnu/packages/cpp.scm,
gnu/packages/cran.scm,
gnu/packages/crypto.scm,
gnu/packages/curl.scm,
gnu/packages/databases.scm,
gnu/packages/datastructures.scm,
gnu/packages/debug.scm,
gnu/packages/disk.scm,
gnu/packages/distributed.scm,
gnu/packages/django.scm,
gnu/packages/dlang.scm,
gnu/packages/dns.scm,
gnu/packages/docker.scm,
gnu/packages/education.scm,
gnu/packages/efi.scm,
gnu/packages/elixir.scm,
gnu/packages/emacs-xyz.scm,
gnu/packages/embedded.scm,
gnu/packages/emulators.scm,
gnu/packages/engineering.scm,
gnu/packages/erlang.scm,
gnu/packages/fabric-management.scm,
gnu/packages/file-systems.scm,
gnu/packages/finance.scm,
gnu/packages/firmware.scm,
gnu/packages/flashing-tools.scm,
gnu/packages/fonts.scm,
gnu/packages/fontutils.scm,
gnu/packages/fpga.scm,
gnu/packages/game-development.scm,
gnu/packages/games.scm,
gnu/packages/genealogy.scm,
gnu/packages/genimage.scm,
gnu/packages/geo.scm,
gnu/packages/gimp.scm,
gnu/packages/gl.scm,
gnu/packages/gnome-xyz.scm,
gnu/packages/gnome.scm,
gnu/packages/gnuzilla.scm,
gnu/packages/golang.scm,
gnu/packages/gpodder.scm,
gnu/packages/graph.scm,
gnu/packages/graphics.scm,
gnu/packages/graphviz.scm,
gnu/packages/groff.scm,
gnu/packages/groovy.scm,
gnu/packages/gtk.scm,
gnu/packages/guile-xyz.scm,
gnu/packages/guile.scm,
gnu/packages/hardware.scm,
gnu/packages/haskell-apps.scm,
gnu/packages/haskell-xyz.scm,
gnu/packages/hexedit.scm,
gnu/packages/i2p.scm,
gnu/packages/ibus.scm,
gnu/packages/image-processing.scm,
gnu/packages/image-viewers.scm,
gnu/packages/image.scm,
gnu/packages/ipfs.scm,
gnu/packages/java-graphics.scm,
gnu/packages/java-maths.scm,
gnu/packages/java.scm,
gnu/packages/javascript.scm,
gnu/packages/jrnl.scm,
gnu/packages/julia.scm,
gnu/packages/jupyter.scm,
gnu/packages/kodi.scm,
gnu/packages/language.scm,
gnu/packages/lego.scm,
gnu/packages/less.scm,
gnu/packages/libusb.scm,
gnu/packages/linux.scm,
gnu/packages/lirc.scm,
gnu/packages/lisp-xyz.scm,
gnu/packages/llvm.scm,
gnu/packages/logging.scm,
gnu/packages/lolcode.scm,
gnu/packages/lua.scm,
gnu/packages/lxde.scm,
gnu/packages/lxqt.scm,
gnu/packages/machine-learning.scm,
gnu/packages/mail.scm,
gnu/packages/markup.scm,
gnu/packages/maths.scm,
gnu/packages/maven.scm,
gnu/packages/mes.scm,
gnu/packages/messaging.scm,
gnu/packages/monitoring.scm,
gnu/packages/mpd.scm,
gnu/packages/music.scm,
gnu/packages/networking.scm,
gnu/packages/node-xyz.scm,
gnu/packages/ocaml.scm,
gnu/packages/ocr.scm,
gnu/packages/onc-rpc.scm,
gnu/packages/opencl.scm,
gnu/packages/opencog.scm,
gnu/packages/pantheon.scm,
gnu/packages/password-utils.scm,
gnu/packages/patchutils.scm,
gnu/packages/pdf.scm,
gnu/packages/perl6.scm,
gnu/packages/phabricator.scm,
gnu/packages/popt.scm,
gnu/packages/printers.scm,
gnu/packages/prolog.scm,
gnu/packages/protobuf.scm,
gnu/packages/pulseaudio.scm,
gnu/packages/python-crypto.scm,
gnu/packages/python-web.scm,
gnu/packages/python-xyz.scm,
gnu/packages/qt.scm,
gnu/packages/radio.scm,
gnu/packages/rails.scm,
gnu/packages/rdf.scm,
gnu/packages/rednotebook.scm,
gnu/packages/rpc.scm,
gnu/packages/rsync.scm,
gnu/packages/ruby.scm,
gnu/packages/rust.scm,
gnu/packages/scheme.scm,
gnu/packages/screen.scm,
gnu/packages/security-token.scm,
gnu/packages/selinux.scm,
gnu/packages/serialization.scm,
gnu/packages/shells.scm,
gnu/packages/shellutils.scm,
gnu/packages/simh.scm,
gnu/packages/sml.scm,
gnu/packages/ssh.scm,
gnu/packages/statistics.scm,
gnu/packages/stenography.scm,
gnu/packages/sync.scm,
gnu/packages/syncthing.scm,
gnu/packages/synergy.scm,
gnu/packages/telephony.scm,
gnu/packages/terminals.scm,
gnu/packages/tex.scm,
gnu/packages/texinfo.scm,
gnu/packages/text-editors.scm,
gnu/packages/textutils.scm,
gnu/packages/time.scm,
gnu/packages/tmux.scm,
gnu/packages/tor.scm,
gnu/packages/toys.scm,
gnu/packages/version-control.scm,
gnu/packages/video.scm,
gnu/packages/vim.scm,
gnu/packages/virtualization.scm,
gnu/packages/vlang.scm,
gnu/packages/vnc.scm,
gnu/packages/vpn.scm,
gnu/packages/web-browsers.scm,
gnu/packages/web.scm,
gnu/packages/wireservice.scm,
gnu/packages/wm.scm,
gnu/packages/wxwidgets.scm,
gnu/packages/xdisorg.scm,
gnu/packages/xml.scm,
gnu/packages/xorg.scm,
tests/lint.scm: Remove trailing ".git" from 'git-reference' URL.
2020-07-12 20:53:28 +00:00
|
|
|
(url "https://github.com/KhronosGroup/OpenCL-Headers")
|
2018-05-12 19:49:01 +00:00
|
|
|
(commit commit)))
|
2018-08-24 01:51:38 +00:00
|
|
|
(file-name (git-file-name name version))
|
2018-05-12 19:49:01 +00:00
|
|
|
(sha256
|
|
|
|
(base32
|
|
|
|
"176ydpbyws5nr4av6hf8p41pkhc0rc4m4vrah9w6gp2fw2i32838"))))
|
|
|
|
(build-system gnu-build-system)
|
|
|
|
(arguments
|
|
|
|
`(#:phases
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
(delete 'configure)
|
|
|
|
(delete 'build)
|
|
|
|
(delete 'check)
|
|
|
|
(replace 'install
|
|
|
|
(lambda* (#:key outputs #:allow-other-keys)
|
|
|
|
(copy-recursively (string-append "./opencl" (string-append
|
|
|
|
,major-version
|
|
|
|
,subversion) "/CL")
|
|
|
|
(string-append
|
|
|
|
(assoc-ref outputs "out")
|
|
|
|
"/include/CL")))))))
|
|
|
|
(synopsis "The Khronos OpenCL headers")
|
|
|
|
(description
|
|
|
|
"This package provides the C headers by Khronos for OpenCL
|
|
|
|
programming.")
|
|
|
|
(home-page "https://www.khronos.org/registry/OpenCL/")
|
|
|
|
(license license:expat))))
|
|
|
|
|
|
|
|
(define-public opencl-headers-2.2
|
|
|
|
(make-opencl-headers "2" "2"))
|
|
|
|
(define-public opencl-headers-2.1
|
|
|
|
(make-opencl-headers "2" "1"))
|
|
|
|
(define-public opencl-headers-2.0
|
|
|
|
(make-opencl-headers "2" "0"))
|
|
|
|
(define-public opencl-headers-1.2
|
|
|
|
(make-opencl-headers "1" "2"))
|
|
|
|
(define-public opencl-headers-1.1
|
|
|
|
(make-opencl-headers "1" "1"))
|
|
|
|
(define-public opencl-headers-1.0
|
|
|
|
(make-opencl-headers "1" "0"))
|
|
|
|
|
|
|
|
(define-public opencl-headers opencl-headers-2.2)
|
2018-05-12 19:49:36 +00:00
|
|
|
|
|
|
|
(define-public opencl-clhpp
|
|
|
|
(package
|
|
|
|
(name "opencl-clhpp")
|
|
|
|
(version "2.0.10")
|
2018-08-24 01:51:38 +00:00
|
|
|
(source
|
|
|
|
(origin
|
|
|
|
(method git-fetch)
|
|
|
|
(uri (git-reference
|
gnu: Remove ".git" from "https://github/…/….git".
Until now, 'lookup-origin' and thus 'lookup-origin-revision' in (guix
swh) would sometimes return #f for these because the ".git" URLs are
redirects to the non-".git" URLs. Consequently, 'guix lint -c archival'
would keep saying "scheduled Software Heritage archival"; likewise, the
fallback download code would fail.
* gnu/packages/ada.scm,
gnu/packages/admin.scm,
gnu/packages/aidc.scm,
gnu/packages/algebra.scm,
gnu/packages/android.scm,
gnu/packages/animation.scm,
gnu/packages/arcan.scm,
gnu/packages/assembly.scm,
gnu/packages/audio.scm,
gnu/packages/authentication.scm,
gnu/packages/avr.scm,
gnu/packages/axoloti.scm,
gnu/packages/backup.scm,
gnu/packages/bash.scm,
gnu/packages/benchmark.scm,
gnu/packages/bioconductor.scm,
gnu/packages/bioinformatics.scm,
gnu/packages/bittorrent.scm,
gnu/packages/boost.scm,
gnu/packages/build-tools.scm,
gnu/packages/c.scm,
gnu/packages/calendar.scm,
gnu/packages/cdrom.scm,
gnu/packages/check.scm,
gnu/packages/chemistry.scm,
gnu/packages/chez.scm,
gnu/packages/clojure.scm,
gnu/packages/code.scm,
gnu/packages/compression.scm,
gnu/packages/compton.scm,
gnu/packages/coq.scm,
gnu/packages/cpp.scm,
gnu/packages/cran.scm,
gnu/packages/crypto.scm,
gnu/packages/curl.scm,
gnu/packages/databases.scm,
gnu/packages/datastructures.scm,
gnu/packages/debug.scm,
gnu/packages/disk.scm,
gnu/packages/distributed.scm,
gnu/packages/django.scm,
gnu/packages/dlang.scm,
gnu/packages/dns.scm,
gnu/packages/docker.scm,
gnu/packages/education.scm,
gnu/packages/efi.scm,
gnu/packages/elixir.scm,
gnu/packages/emacs-xyz.scm,
gnu/packages/embedded.scm,
gnu/packages/emulators.scm,
gnu/packages/engineering.scm,
gnu/packages/erlang.scm,
gnu/packages/fabric-management.scm,
gnu/packages/file-systems.scm,
gnu/packages/finance.scm,
gnu/packages/firmware.scm,
gnu/packages/flashing-tools.scm,
gnu/packages/fonts.scm,
gnu/packages/fontutils.scm,
gnu/packages/fpga.scm,
gnu/packages/game-development.scm,
gnu/packages/games.scm,
gnu/packages/genealogy.scm,
gnu/packages/genimage.scm,
gnu/packages/geo.scm,
gnu/packages/gimp.scm,
gnu/packages/gl.scm,
gnu/packages/gnome-xyz.scm,
gnu/packages/gnome.scm,
gnu/packages/gnuzilla.scm,
gnu/packages/golang.scm,
gnu/packages/gpodder.scm,
gnu/packages/graph.scm,
gnu/packages/graphics.scm,
gnu/packages/graphviz.scm,
gnu/packages/groff.scm,
gnu/packages/groovy.scm,
gnu/packages/gtk.scm,
gnu/packages/guile-xyz.scm,
gnu/packages/guile.scm,
gnu/packages/hardware.scm,
gnu/packages/haskell-apps.scm,
gnu/packages/haskell-xyz.scm,
gnu/packages/hexedit.scm,
gnu/packages/i2p.scm,
gnu/packages/ibus.scm,
gnu/packages/image-processing.scm,
gnu/packages/image-viewers.scm,
gnu/packages/image.scm,
gnu/packages/ipfs.scm,
gnu/packages/java-graphics.scm,
gnu/packages/java-maths.scm,
gnu/packages/java.scm,
gnu/packages/javascript.scm,
gnu/packages/jrnl.scm,
gnu/packages/julia.scm,
gnu/packages/jupyter.scm,
gnu/packages/kodi.scm,
gnu/packages/language.scm,
gnu/packages/lego.scm,
gnu/packages/less.scm,
gnu/packages/libusb.scm,
gnu/packages/linux.scm,
gnu/packages/lirc.scm,
gnu/packages/lisp-xyz.scm,
gnu/packages/llvm.scm,
gnu/packages/logging.scm,
gnu/packages/lolcode.scm,
gnu/packages/lua.scm,
gnu/packages/lxde.scm,
gnu/packages/lxqt.scm,
gnu/packages/machine-learning.scm,
gnu/packages/mail.scm,
gnu/packages/markup.scm,
gnu/packages/maths.scm,
gnu/packages/maven.scm,
gnu/packages/mes.scm,
gnu/packages/messaging.scm,
gnu/packages/monitoring.scm,
gnu/packages/mpd.scm,
gnu/packages/music.scm,
gnu/packages/networking.scm,
gnu/packages/node-xyz.scm,
gnu/packages/ocaml.scm,
gnu/packages/ocr.scm,
gnu/packages/onc-rpc.scm,
gnu/packages/opencl.scm,
gnu/packages/opencog.scm,
gnu/packages/pantheon.scm,
gnu/packages/password-utils.scm,
gnu/packages/patchutils.scm,
gnu/packages/pdf.scm,
gnu/packages/perl6.scm,
gnu/packages/phabricator.scm,
gnu/packages/popt.scm,
gnu/packages/printers.scm,
gnu/packages/prolog.scm,
gnu/packages/protobuf.scm,
gnu/packages/pulseaudio.scm,
gnu/packages/python-crypto.scm,
gnu/packages/python-web.scm,
gnu/packages/python-xyz.scm,
gnu/packages/qt.scm,
gnu/packages/radio.scm,
gnu/packages/rails.scm,
gnu/packages/rdf.scm,
gnu/packages/rednotebook.scm,
gnu/packages/rpc.scm,
gnu/packages/rsync.scm,
gnu/packages/ruby.scm,
gnu/packages/rust.scm,
gnu/packages/scheme.scm,
gnu/packages/screen.scm,
gnu/packages/security-token.scm,
gnu/packages/selinux.scm,
gnu/packages/serialization.scm,
gnu/packages/shells.scm,
gnu/packages/shellutils.scm,
gnu/packages/simh.scm,
gnu/packages/sml.scm,
gnu/packages/ssh.scm,
gnu/packages/statistics.scm,
gnu/packages/stenography.scm,
gnu/packages/sync.scm,
gnu/packages/syncthing.scm,
gnu/packages/synergy.scm,
gnu/packages/telephony.scm,
gnu/packages/terminals.scm,
gnu/packages/tex.scm,
gnu/packages/texinfo.scm,
gnu/packages/text-editors.scm,
gnu/packages/textutils.scm,
gnu/packages/time.scm,
gnu/packages/tmux.scm,
gnu/packages/tor.scm,
gnu/packages/toys.scm,
gnu/packages/version-control.scm,
gnu/packages/video.scm,
gnu/packages/vim.scm,
gnu/packages/virtualization.scm,
gnu/packages/vlang.scm,
gnu/packages/vnc.scm,
gnu/packages/vpn.scm,
gnu/packages/web-browsers.scm,
gnu/packages/web.scm,
gnu/packages/wireservice.scm,
gnu/packages/wm.scm,
gnu/packages/wxwidgets.scm,
gnu/packages/xdisorg.scm,
gnu/packages/xml.scm,
gnu/packages/xorg.scm,
tests/lint.scm: Remove trailing ".git" from 'git-reference' URL.
2020-07-12 20:53:28 +00:00
|
|
|
(url "https://github.com/KhronosGroup/OpenCL-CLHPP")
|
2018-08-24 01:51:38 +00:00
|
|
|
(commit (string-append "v" version))))
|
|
|
|
(sha256
|
|
|
|
(base32 "0h5kpg5cl8wzfnqmv6i26aig2apv06ffm9p3rh35938n9r8rladm"))
|
|
|
|
(file-name (git-file-name name version))))
|
2018-05-12 19:49:36 +00:00
|
|
|
(native-inputs
|
|
|
|
`(("python" ,python-wrapper)))
|
|
|
|
(propagated-inputs
|
|
|
|
`(("opencl-headers" ,opencl-headers)))
|
|
|
|
(arguments
|
|
|
|
`(#:configure-flags
|
|
|
|
(let ((out (assoc-ref %outputs "out")))
|
|
|
|
(list
|
|
|
|
"-DBUILD_EXAMPLES=OFF"
|
|
|
|
"-DBUILD_TESTS=OFF"
|
|
|
|
(string-append "-DCMAKE_INSTALL_PREFIX="
|
|
|
|
(assoc-ref %outputs "out")
|
|
|
|
"/include")))
|
2018-08-24 01:51:38 +00:00
|
|
|
;; The regression tests require a lot more dependencies.
|
2018-05-12 19:49:36 +00:00
|
|
|
#:tests? #f))
|
|
|
|
(build-system cmake-build-system)
|
2020-03-20 23:33:58 +00:00
|
|
|
(home-page "https://github.khronos.org/OpenCL-CLHPP/")
|
2018-05-12 19:49:36 +00:00
|
|
|
(synopsis "Khronos OpenCL-CLHPP")
|
|
|
|
(description
|
|
|
|
"This package provides the @dfn{host API} C++ headers for OpenCL.")
|
|
|
|
(license license:expat)))
|
2018-06-26 19:39:04 +00:00
|
|
|
|
|
|
|
(define-public ocl-icd
|
|
|
|
(package
|
|
|
|
(name "ocl-icd")
|
|
|
|
(version "2.2.12")
|
|
|
|
(source (origin
|
|
|
|
(method url-fetch)
|
|
|
|
(uri (string-append
|
|
|
|
"https://forge.imag.fr/frs/download.php/836/ocl-icd-"
|
|
|
|
version ".tar.gz"))
|
|
|
|
(file-name (string-append name "-" version ".tar.gz"))
|
|
|
|
(sha256
|
|
|
|
(base32
|
|
|
|
"1x2dr8p4dkfds56r38av360i3nv1y3326jmshxvjngaf6mlg6rbn"))
|
|
|
|
(modules '((guix build utils)))
|
|
|
|
(snippet
|
|
|
|
'(delete-file-recursively "khronos-headers"))))
|
|
|
|
(native-inputs
|
|
|
|
`(("opencl-headers" ,opencl-headers)
|
|
|
|
("ruby" ,ruby)))
|
|
|
|
(inputs
|
|
|
|
`(("libgcrypt" ,libgcrypt)))
|
|
|
|
(build-system gnu-build-system)
|
|
|
|
(arguments
|
|
|
|
'(#:configure-flags '("DEBUG_OCL_ICD=1")))
|
|
|
|
(native-search-paths
|
|
|
|
(list (search-path-specification
|
|
|
|
(variable "OPENCL_VENDOR_PATH")
|
|
|
|
(files '("etc/OpenCL/vendors")))))
|
|
|
|
(search-paths native-search-paths)
|
|
|
|
(home-page "https://forge.imag.fr/projects/ocl-icd/")
|
|
|
|
(synopsis "OpenCL loader for Installable Client Drivers (ICDs)")
|
|
|
|
(description
|
|
|
|
"OpenCL implementations are provided as ICDs (Installable Client
|
|
|
|
Drivers). An OpenCL program can use several ICDs thanks to the use of an ICD
|
|
|
|
Loader as provided by this package.")
|
|
|
|
(license license:bsd-2)))
|
2018-06-26 19:39:42 +00:00
|
|
|
|
|
|
|
(define-public clinfo
|
|
|
|
(package
|
|
|
|
(name "clinfo")
|
|
|
|
(version "2.2.18.04.06")
|
2018-08-24 01:51:38 +00:00
|
|
|
(source
|
|
|
|
(origin
|
|
|
|
(method git-fetch)
|
|
|
|
(uri (git-reference
|
gnu: Remove ".git" from "https://github/…/….git".
Until now, 'lookup-origin' and thus 'lookup-origin-revision' in (guix
swh) would sometimes return #f for these because the ".git" URLs are
redirects to the non-".git" URLs. Consequently, 'guix lint -c archival'
would keep saying "scheduled Software Heritage archival"; likewise, the
fallback download code would fail.
* gnu/packages/ada.scm,
gnu/packages/admin.scm,
gnu/packages/aidc.scm,
gnu/packages/algebra.scm,
gnu/packages/android.scm,
gnu/packages/animation.scm,
gnu/packages/arcan.scm,
gnu/packages/assembly.scm,
gnu/packages/audio.scm,
gnu/packages/authentication.scm,
gnu/packages/avr.scm,
gnu/packages/axoloti.scm,
gnu/packages/backup.scm,
gnu/packages/bash.scm,
gnu/packages/benchmark.scm,
gnu/packages/bioconductor.scm,
gnu/packages/bioinformatics.scm,
gnu/packages/bittorrent.scm,
gnu/packages/boost.scm,
gnu/packages/build-tools.scm,
gnu/packages/c.scm,
gnu/packages/calendar.scm,
gnu/packages/cdrom.scm,
gnu/packages/check.scm,
gnu/packages/chemistry.scm,
gnu/packages/chez.scm,
gnu/packages/clojure.scm,
gnu/packages/code.scm,
gnu/packages/compression.scm,
gnu/packages/compton.scm,
gnu/packages/coq.scm,
gnu/packages/cpp.scm,
gnu/packages/cran.scm,
gnu/packages/crypto.scm,
gnu/packages/curl.scm,
gnu/packages/databases.scm,
gnu/packages/datastructures.scm,
gnu/packages/debug.scm,
gnu/packages/disk.scm,
gnu/packages/distributed.scm,
gnu/packages/django.scm,
gnu/packages/dlang.scm,
gnu/packages/dns.scm,
gnu/packages/docker.scm,
gnu/packages/education.scm,
gnu/packages/efi.scm,
gnu/packages/elixir.scm,
gnu/packages/emacs-xyz.scm,
gnu/packages/embedded.scm,
gnu/packages/emulators.scm,
gnu/packages/engineering.scm,
gnu/packages/erlang.scm,
gnu/packages/fabric-management.scm,
gnu/packages/file-systems.scm,
gnu/packages/finance.scm,
gnu/packages/firmware.scm,
gnu/packages/flashing-tools.scm,
gnu/packages/fonts.scm,
gnu/packages/fontutils.scm,
gnu/packages/fpga.scm,
gnu/packages/game-development.scm,
gnu/packages/games.scm,
gnu/packages/genealogy.scm,
gnu/packages/genimage.scm,
gnu/packages/geo.scm,
gnu/packages/gimp.scm,
gnu/packages/gl.scm,
gnu/packages/gnome-xyz.scm,
gnu/packages/gnome.scm,
gnu/packages/gnuzilla.scm,
gnu/packages/golang.scm,
gnu/packages/gpodder.scm,
gnu/packages/graph.scm,
gnu/packages/graphics.scm,
gnu/packages/graphviz.scm,
gnu/packages/groff.scm,
gnu/packages/groovy.scm,
gnu/packages/gtk.scm,
gnu/packages/guile-xyz.scm,
gnu/packages/guile.scm,
gnu/packages/hardware.scm,
gnu/packages/haskell-apps.scm,
gnu/packages/haskell-xyz.scm,
gnu/packages/hexedit.scm,
gnu/packages/i2p.scm,
gnu/packages/ibus.scm,
gnu/packages/image-processing.scm,
gnu/packages/image-viewers.scm,
gnu/packages/image.scm,
gnu/packages/ipfs.scm,
gnu/packages/java-graphics.scm,
gnu/packages/java-maths.scm,
gnu/packages/java.scm,
gnu/packages/javascript.scm,
gnu/packages/jrnl.scm,
gnu/packages/julia.scm,
gnu/packages/jupyter.scm,
gnu/packages/kodi.scm,
gnu/packages/language.scm,
gnu/packages/lego.scm,
gnu/packages/less.scm,
gnu/packages/libusb.scm,
gnu/packages/linux.scm,
gnu/packages/lirc.scm,
gnu/packages/lisp-xyz.scm,
gnu/packages/llvm.scm,
gnu/packages/logging.scm,
gnu/packages/lolcode.scm,
gnu/packages/lua.scm,
gnu/packages/lxde.scm,
gnu/packages/lxqt.scm,
gnu/packages/machine-learning.scm,
gnu/packages/mail.scm,
gnu/packages/markup.scm,
gnu/packages/maths.scm,
gnu/packages/maven.scm,
gnu/packages/mes.scm,
gnu/packages/messaging.scm,
gnu/packages/monitoring.scm,
gnu/packages/mpd.scm,
gnu/packages/music.scm,
gnu/packages/networking.scm,
gnu/packages/node-xyz.scm,
gnu/packages/ocaml.scm,
gnu/packages/ocr.scm,
gnu/packages/onc-rpc.scm,
gnu/packages/opencl.scm,
gnu/packages/opencog.scm,
gnu/packages/pantheon.scm,
gnu/packages/password-utils.scm,
gnu/packages/patchutils.scm,
gnu/packages/pdf.scm,
gnu/packages/perl6.scm,
gnu/packages/phabricator.scm,
gnu/packages/popt.scm,
gnu/packages/printers.scm,
gnu/packages/prolog.scm,
gnu/packages/protobuf.scm,
gnu/packages/pulseaudio.scm,
gnu/packages/python-crypto.scm,
gnu/packages/python-web.scm,
gnu/packages/python-xyz.scm,
gnu/packages/qt.scm,
gnu/packages/radio.scm,
gnu/packages/rails.scm,
gnu/packages/rdf.scm,
gnu/packages/rednotebook.scm,
gnu/packages/rpc.scm,
gnu/packages/rsync.scm,
gnu/packages/ruby.scm,
gnu/packages/rust.scm,
gnu/packages/scheme.scm,
gnu/packages/screen.scm,
gnu/packages/security-token.scm,
gnu/packages/selinux.scm,
gnu/packages/serialization.scm,
gnu/packages/shells.scm,
gnu/packages/shellutils.scm,
gnu/packages/simh.scm,
gnu/packages/sml.scm,
gnu/packages/ssh.scm,
gnu/packages/statistics.scm,
gnu/packages/stenography.scm,
gnu/packages/sync.scm,
gnu/packages/syncthing.scm,
gnu/packages/synergy.scm,
gnu/packages/telephony.scm,
gnu/packages/terminals.scm,
gnu/packages/tex.scm,
gnu/packages/texinfo.scm,
gnu/packages/text-editors.scm,
gnu/packages/textutils.scm,
gnu/packages/time.scm,
gnu/packages/tmux.scm,
gnu/packages/tor.scm,
gnu/packages/toys.scm,
gnu/packages/version-control.scm,
gnu/packages/video.scm,
gnu/packages/vim.scm,
gnu/packages/virtualization.scm,
gnu/packages/vlang.scm,
gnu/packages/vnc.scm,
gnu/packages/vpn.scm,
gnu/packages/web-browsers.scm,
gnu/packages/web.scm,
gnu/packages/wireservice.scm,
gnu/packages/wm.scm,
gnu/packages/wxwidgets.scm,
gnu/packages/xdisorg.scm,
gnu/packages/xml.scm,
gnu/packages/xorg.scm,
tests/lint.scm: Remove trailing ".git" from 'git-reference' URL.
2020-07-12 20:53:28 +00:00
|
|
|
(url "https://github.com/Oblomov/clinfo")
|
2018-08-24 01:51:38 +00:00
|
|
|
(commit version)))
|
|
|
|
(file-name (git-file-name name version))
|
|
|
|
(sha256
|
|
|
|
(base32 "0y2q0lz5yzxy970b7w7340vp4fl25vndahsyvvrywcrn51ipgplx"))))
|
2018-06-26 19:39:42 +00:00
|
|
|
(build-system gnu-build-system)
|
|
|
|
(native-inputs
|
|
|
|
`(("opencl-headers" ,opencl-headers)))
|
|
|
|
(inputs
|
|
|
|
`(("ocl-icd" ,ocl-icd)))
|
|
|
|
(arguments
|
|
|
|
`(#:phases
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
(delete 'configure)
|
|
|
|
(replace 'build
|
|
|
|
(lambda _
|
|
|
|
(let ((cores (number->string (parallel-job-count))))
|
|
|
|
(setenv "CC" "gcc")
|
|
|
|
(invoke "make" "-j" cores))))
|
|
|
|
(replace 'install
|
|
|
|
(lambda* (#:key outputs #:allow-other-keys)
|
|
|
|
(invoke "make" "install" (string-append
|
|
|
|
"PREFIX="
|
|
|
|
(assoc-ref outputs "out"))))))
|
|
|
|
#:tests? #f))
|
|
|
|
(home-page "https://github.com/Oblomov/clinfo")
|
|
|
|
(synopsis "Print information about OpenCL platforms and devices")
|
|
|
|
;; Only the implementation installed via Guix will be detected.
|
|
|
|
(description
|
|
|
|
"This package provides the @command{clinfo} command that enumerates all
|
|
|
|
possible (known) properties of the OpenCL platform and devices available on
|
|
|
|
the system.")
|
|
|
|
(license license:cc0)))
|
2018-06-26 19:40:31 +00:00
|
|
|
|
|
|
|
(define-public beignet
|
|
|
|
(package
|
|
|
|
(name "beignet")
|
|
|
|
(version "1.3.2")
|
2018-08-24 01:51:38 +00:00
|
|
|
(source
|
|
|
|
(origin
|
|
|
|
(method git-fetch)
|
|
|
|
(uri (git-reference
|
gnu: Remove ".git" from "https://github/…/….git".
Until now, 'lookup-origin' and thus 'lookup-origin-revision' in (guix
swh) would sometimes return #f for these because the ".git" URLs are
redirects to the non-".git" URLs. Consequently, 'guix lint -c archival'
would keep saying "scheduled Software Heritage archival"; likewise, the
fallback download code would fail.
* gnu/packages/ada.scm,
gnu/packages/admin.scm,
gnu/packages/aidc.scm,
gnu/packages/algebra.scm,
gnu/packages/android.scm,
gnu/packages/animation.scm,
gnu/packages/arcan.scm,
gnu/packages/assembly.scm,
gnu/packages/audio.scm,
gnu/packages/authentication.scm,
gnu/packages/avr.scm,
gnu/packages/axoloti.scm,
gnu/packages/backup.scm,
gnu/packages/bash.scm,
gnu/packages/benchmark.scm,
gnu/packages/bioconductor.scm,
gnu/packages/bioinformatics.scm,
gnu/packages/bittorrent.scm,
gnu/packages/boost.scm,
gnu/packages/build-tools.scm,
gnu/packages/c.scm,
gnu/packages/calendar.scm,
gnu/packages/cdrom.scm,
gnu/packages/check.scm,
gnu/packages/chemistry.scm,
gnu/packages/chez.scm,
gnu/packages/clojure.scm,
gnu/packages/code.scm,
gnu/packages/compression.scm,
gnu/packages/compton.scm,
gnu/packages/coq.scm,
gnu/packages/cpp.scm,
gnu/packages/cran.scm,
gnu/packages/crypto.scm,
gnu/packages/curl.scm,
gnu/packages/databases.scm,
gnu/packages/datastructures.scm,
gnu/packages/debug.scm,
gnu/packages/disk.scm,
gnu/packages/distributed.scm,
gnu/packages/django.scm,
gnu/packages/dlang.scm,
gnu/packages/dns.scm,
gnu/packages/docker.scm,
gnu/packages/education.scm,
gnu/packages/efi.scm,
gnu/packages/elixir.scm,
gnu/packages/emacs-xyz.scm,
gnu/packages/embedded.scm,
gnu/packages/emulators.scm,
gnu/packages/engineering.scm,
gnu/packages/erlang.scm,
gnu/packages/fabric-management.scm,
gnu/packages/file-systems.scm,
gnu/packages/finance.scm,
gnu/packages/firmware.scm,
gnu/packages/flashing-tools.scm,
gnu/packages/fonts.scm,
gnu/packages/fontutils.scm,
gnu/packages/fpga.scm,
gnu/packages/game-development.scm,
gnu/packages/games.scm,
gnu/packages/genealogy.scm,
gnu/packages/genimage.scm,
gnu/packages/geo.scm,
gnu/packages/gimp.scm,
gnu/packages/gl.scm,
gnu/packages/gnome-xyz.scm,
gnu/packages/gnome.scm,
gnu/packages/gnuzilla.scm,
gnu/packages/golang.scm,
gnu/packages/gpodder.scm,
gnu/packages/graph.scm,
gnu/packages/graphics.scm,
gnu/packages/graphviz.scm,
gnu/packages/groff.scm,
gnu/packages/groovy.scm,
gnu/packages/gtk.scm,
gnu/packages/guile-xyz.scm,
gnu/packages/guile.scm,
gnu/packages/hardware.scm,
gnu/packages/haskell-apps.scm,
gnu/packages/haskell-xyz.scm,
gnu/packages/hexedit.scm,
gnu/packages/i2p.scm,
gnu/packages/ibus.scm,
gnu/packages/image-processing.scm,
gnu/packages/image-viewers.scm,
gnu/packages/image.scm,
gnu/packages/ipfs.scm,
gnu/packages/java-graphics.scm,
gnu/packages/java-maths.scm,
gnu/packages/java.scm,
gnu/packages/javascript.scm,
gnu/packages/jrnl.scm,
gnu/packages/julia.scm,
gnu/packages/jupyter.scm,
gnu/packages/kodi.scm,
gnu/packages/language.scm,
gnu/packages/lego.scm,
gnu/packages/less.scm,
gnu/packages/libusb.scm,
gnu/packages/linux.scm,
gnu/packages/lirc.scm,
gnu/packages/lisp-xyz.scm,
gnu/packages/llvm.scm,
gnu/packages/logging.scm,
gnu/packages/lolcode.scm,
gnu/packages/lua.scm,
gnu/packages/lxde.scm,
gnu/packages/lxqt.scm,
gnu/packages/machine-learning.scm,
gnu/packages/mail.scm,
gnu/packages/markup.scm,
gnu/packages/maths.scm,
gnu/packages/maven.scm,
gnu/packages/mes.scm,
gnu/packages/messaging.scm,
gnu/packages/monitoring.scm,
gnu/packages/mpd.scm,
gnu/packages/music.scm,
gnu/packages/networking.scm,
gnu/packages/node-xyz.scm,
gnu/packages/ocaml.scm,
gnu/packages/ocr.scm,
gnu/packages/onc-rpc.scm,
gnu/packages/opencl.scm,
gnu/packages/opencog.scm,
gnu/packages/pantheon.scm,
gnu/packages/password-utils.scm,
gnu/packages/patchutils.scm,
gnu/packages/pdf.scm,
gnu/packages/perl6.scm,
gnu/packages/phabricator.scm,
gnu/packages/popt.scm,
gnu/packages/printers.scm,
gnu/packages/prolog.scm,
gnu/packages/protobuf.scm,
gnu/packages/pulseaudio.scm,
gnu/packages/python-crypto.scm,
gnu/packages/python-web.scm,
gnu/packages/python-xyz.scm,
gnu/packages/qt.scm,
gnu/packages/radio.scm,
gnu/packages/rails.scm,
gnu/packages/rdf.scm,
gnu/packages/rednotebook.scm,
gnu/packages/rpc.scm,
gnu/packages/rsync.scm,
gnu/packages/ruby.scm,
gnu/packages/rust.scm,
gnu/packages/scheme.scm,
gnu/packages/screen.scm,
gnu/packages/security-token.scm,
gnu/packages/selinux.scm,
gnu/packages/serialization.scm,
gnu/packages/shells.scm,
gnu/packages/shellutils.scm,
gnu/packages/simh.scm,
gnu/packages/sml.scm,
gnu/packages/ssh.scm,
gnu/packages/statistics.scm,
gnu/packages/stenography.scm,
gnu/packages/sync.scm,
gnu/packages/syncthing.scm,
gnu/packages/synergy.scm,
gnu/packages/telephony.scm,
gnu/packages/terminals.scm,
gnu/packages/tex.scm,
gnu/packages/texinfo.scm,
gnu/packages/text-editors.scm,
gnu/packages/textutils.scm,
gnu/packages/time.scm,
gnu/packages/tmux.scm,
gnu/packages/tor.scm,
gnu/packages/toys.scm,
gnu/packages/version-control.scm,
gnu/packages/video.scm,
gnu/packages/vim.scm,
gnu/packages/virtualization.scm,
gnu/packages/vlang.scm,
gnu/packages/vnc.scm,
gnu/packages/vpn.scm,
gnu/packages/web-browsers.scm,
gnu/packages/web.scm,
gnu/packages/wireservice.scm,
gnu/packages/wm.scm,
gnu/packages/wxwidgets.scm,
gnu/packages/xdisorg.scm,
gnu/packages/xml.scm,
gnu/packages/xorg.scm,
tests/lint.scm: Remove trailing ".git" from 'git-reference' URL.
2020-07-12 20:53:28 +00:00
|
|
|
(url "https://github.com/intel/beignet")
|
2018-08-24 01:51:38 +00:00
|
|
|
(commit (string-append "Release_v" version))))
|
|
|
|
(file-name (git-file-name name version))
|
|
|
|
(sha256
|
|
|
|
(base32 "0lpv3lvi2vrmzb8blflrpbd3jgin76zqmz6jcv17vn9mylqdrfnd"))
|
|
|
|
(patches (search-patches "beignet-correct-file-names.patch"))
|
|
|
|
(modules '((guix build utils)))
|
|
|
|
(snippet
|
|
|
|
;; There's a suspicious .isa binary file under kernels/.
|
|
|
|
;; Remove it.
|
|
|
|
'(for-each delete-file (find-files "." "\\.isa$")))))
|
2018-06-26 19:40:31 +00:00
|
|
|
(native-inputs `(("pkg-config" ,pkg-config)
|
|
|
|
("python" ,python)))
|
|
|
|
(inputs `(("clang@3.7" ,clang-3.7)
|
|
|
|
("clang-runtime@3.7" ,clang-runtime-3.7)
|
|
|
|
("glu" ,glu)
|
|
|
|
("llvm@3.7" ,llvm-3.7)
|
|
|
|
("libdrm" ,libdrm)
|
|
|
|
("libedit" ,libedit)
|
gnu: Fix misplaced commas (unquotes).
* gnu/packages/java.scm (ant-bootstrap),
gnu/packages/kde.scm (kdenlive),
gnu/packages/lxqt.scm (lxqt-panel, lxqt-runner),
gnu/packages/mpd.scm (ncmpc),
gnu/packages/opencl.scm (beignet),
gnu/packages/pdf.scm (zathura-pdf-mupdf),
gnu/packages/video.scm (streamlink),
gnu/packages/web-browsers.scm (luakit),
gnu/packages/web.scm (perl-libwww),
gnu/packages/wm.scm (ghc-xmonad-contrib): Fix misplaced commas (unquotes).
2018-12-13 04:30:18 +00:00
|
|
|
("libpthread-stubs" ,libpthread-stubs)
|
2018-06-26 19:40:31 +00:00
|
|
|
("libsm" ,libsm)
|
|
|
|
("libva" ,libva)
|
|
|
|
("libxfixes" ,libxfixes)
|
|
|
|
("libxext" ,libxext)
|
|
|
|
("mesa-utils" ,mesa-utils)
|
|
|
|
("ncurses" ,ncurses)
|
|
|
|
("ocl-icd" ,ocl-icd)
|
|
|
|
("opencl-headers" ,opencl-headers)
|
|
|
|
("xextproto" ,xextproto)
|
|
|
|
("zlib" ,zlib)))
|
|
|
|
(build-system cmake-build-system)
|
|
|
|
(arguments
|
|
|
|
`(#:configure-flags
|
|
|
|
(list (string-append "-DCLANG_LIBRARY_DIR="
|
|
|
|
(assoc-ref %build-inputs "clang@3.7") "/lib")
|
|
|
|
"-DENABLE_GL_SHARING=ON"
|
|
|
|
"-DEXPERIMENTAL_DOUBLE=ON")
|
|
|
|
|
|
|
|
#:phases
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
(add-after 'install 'remove-headers
|
|
|
|
(lambda* (#:key outputs #:allow-other-keys)
|
|
|
|
(let ((out (assoc-ref outputs "out")))
|
|
|
|
(delete-file-recursively
|
|
|
|
(string-append out "/include"))
|
|
|
|
#t)))
|
|
|
|
(add-after 'remove-headers 'install-kernels
|
|
|
|
(lambda* (#:key outputs #:allow-other-keys)
|
|
|
|
(let* ((out (assoc-ref outputs "out"))
|
|
|
|
(builddir (getcwd))
|
|
|
|
(source-dir (string-append
|
|
|
|
builddir
|
|
|
|
"/../beignet-Release_v1.3.2/kernels")))
|
|
|
|
(copy-recursively source-dir
|
|
|
|
(string-append out "/lib/beignet/kernels"))
|
|
|
|
#t))))
|
|
|
|
;; Beignet tries to find GPU when running tests, which is not available
|
|
|
|
;; during build.
|
|
|
|
#:tests? #f))
|
|
|
|
(home-page "https://wiki.freedesktop.org/www/Software/Beignet/")
|
|
|
|
(synopsis "OpenCL framework for Intel GPUs")
|
|
|
|
(description
|
|
|
|
"Beignet is an implementation of the OpenCL specification. This code
|
|
|
|
base contains the code to run OpenCL programs on Intel GPUs---IvyBridge,
|
|
|
|
Haswell, Skylake, Apollolake, etc. It defines and implements the OpenCL host
|
|
|
|
functions required to initialize the device, create the command queues, the
|
|
|
|
kernels and the programs, and run them on the GPU. The code also contains a
|
|
|
|
back-end for the LLVM compiler framework.")
|
2019-02-26 20:26:35 +00:00
|
|
|
;; Beignet only supports Intel processors.
|
|
|
|
(supported-systems '("x86_64-linux" "i686-linux"))
|
2018-06-26 19:40:31 +00:00
|
|
|
(license license:lgpl2.1+)))
|
2018-06-29 00:10:25 +00:00
|
|
|
|
|
|
|
(define-public pocl
|
|
|
|
(package
|
|
|
|
(name "pocl")
|
2019-10-30 16:05:09 +00:00
|
|
|
(version "1.4")
|
2018-08-24 01:51:38 +00:00
|
|
|
(source
|
|
|
|
(origin
|
|
|
|
(method git-fetch)
|
|
|
|
(uri (git-reference
|
gnu: Remove ".git" from "https://github/…/….git".
Until now, 'lookup-origin' and thus 'lookup-origin-revision' in (guix
swh) would sometimes return #f for these because the ".git" URLs are
redirects to the non-".git" URLs. Consequently, 'guix lint -c archival'
would keep saying "scheduled Software Heritage archival"; likewise, the
fallback download code would fail.
* gnu/packages/ada.scm,
gnu/packages/admin.scm,
gnu/packages/aidc.scm,
gnu/packages/algebra.scm,
gnu/packages/android.scm,
gnu/packages/animation.scm,
gnu/packages/arcan.scm,
gnu/packages/assembly.scm,
gnu/packages/audio.scm,
gnu/packages/authentication.scm,
gnu/packages/avr.scm,
gnu/packages/axoloti.scm,
gnu/packages/backup.scm,
gnu/packages/bash.scm,
gnu/packages/benchmark.scm,
gnu/packages/bioconductor.scm,
gnu/packages/bioinformatics.scm,
gnu/packages/bittorrent.scm,
gnu/packages/boost.scm,
gnu/packages/build-tools.scm,
gnu/packages/c.scm,
gnu/packages/calendar.scm,
gnu/packages/cdrom.scm,
gnu/packages/check.scm,
gnu/packages/chemistry.scm,
gnu/packages/chez.scm,
gnu/packages/clojure.scm,
gnu/packages/code.scm,
gnu/packages/compression.scm,
gnu/packages/compton.scm,
gnu/packages/coq.scm,
gnu/packages/cpp.scm,
gnu/packages/cran.scm,
gnu/packages/crypto.scm,
gnu/packages/curl.scm,
gnu/packages/databases.scm,
gnu/packages/datastructures.scm,
gnu/packages/debug.scm,
gnu/packages/disk.scm,
gnu/packages/distributed.scm,
gnu/packages/django.scm,
gnu/packages/dlang.scm,
gnu/packages/dns.scm,
gnu/packages/docker.scm,
gnu/packages/education.scm,
gnu/packages/efi.scm,
gnu/packages/elixir.scm,
gnu/packages/emacs-xyz.scm,
gnu/packages/embedded.scm,
gnu/packages/emulators.scm,
gnu/packages/engineering.scm,
gnu/packages/erlang.scm,
gnu/packages/fabric-management.scm,
gnu/packages/file-systems.scm,
gnu/packages/finance.scm,
gnu/packages/firmware.scm,
gnu/packages/flashing-tools.scm,
gnu/packages/fonts.scm,
gnu/packages/fontutils.scm,
gnu/packages/fpga.scm,
gnu/packages/game-development.scm,
gnu/packages/games.scm,
gnu/packages/genealogy.scm,
gnu/packages/genimage.scm,
gnu/packages/geo.scm,
gnu/packages/gimp.scm,
gnu/packages/gl.scm,
gnu/packages/gnome-xyz.scm,
gnu/packages/gnome.scm,
gnu/packages/gnuzilla.scm,
gnu/packages/golang.scm,
gnu/packages/gpodder.scm,
gnu/packages/graph.scm,
gnu/packages/graphics.scm,
gnu/packages/graphviz.scm,
gnu/packages/groff.scm,
gnu/packages/groovy.scm,
gnu/packages/gtk.scm,
gnu/packages/guile-xyz.scm,
gnu/packages/guile.scm,
gnu/packages/hardware.scm,
gnu/packages/haskell-apps.scm,
gnu/packages/haskell-xyz.scm,
gnu/packages/hexedit.scm,
gnu/packages/i2p.scm,
gnu/packages/ibus.scm,
gnu/packages/image-processing.scm,
gnu/packages/image-viewers.scm,
gnu/packages/image.scm,
gnu/packages/ipfs.scm,
gnu/packages/java-graphics.scm,
gnu/packages/java-maths.scm,
gnu/packages/java.scm,
gnu/packages/javascript.scm,
gnu/packages/jrnl.scm,
gnu/packages/julia.scm,
gnu/packages/jupyter.scm,
gnu/packages/kodi.scm,
gnu/packages/language.scm,
gnu/packages/lego.scm,
gnu/packages/less.scm,
gnu/packages/libusb.scm,
gnu/packages/linux.scm,
gnu/packages/lirc.scm,
gnu/packages/lisp-xyz.scm,
gnu/packages/llvm.scm,
gnu/packages/logging.scm,
gnu/packages/lolcode.scm,
gnu/packages/lua.scm,
gnu/packages/lxde.scm,
gnu/packages/lxqt.scm,
gnu/packages/machine-learning.scm,
gnu/packages/mail.scm,
gnu/packages/markup.scm,
gnu/packages/maths.scm,
gnu/packages/maven.scm,
gnu/packages/mes.scm,
gnu/packages/messaging.scm,
gnu/packages/monitoring.scm,
gnu/packages/mpd.scm,
gnu/packages/music.scm,
gnu/packages/networking.scm,
gnu/packages/node-xyz.scm,
gnu/packages/ocaml.scm,
gnu/packages/ocr.scm,
gnu/packages/onc-rpc.scm,
gnu/packages/opencl.scm,
gnu/packages/opencog.scm,
gnu/packages/pantheon.scm,
gnu/packages/password-utils.scm,
gnu/packages/patchutils.scm,
gnu/packages/pdf.scm,
gnu/packages/perl6.scm,
gnu/packages/phabricator.scm,
gnu/packages/popt.scm,
gnu/packages/printers.scm,
gnu/packages/prolog.scm,
gnu/packages/protobuf.scm,
gnu/packages/pulseaudio.scm,
gnu/packages/python-crypto.scm,
gnu/packages/python-web.scm,
gnu/packages/python-xyz.scm,
gnu/packages/qt.scm,
gnu/packages/radio.scm,
gnu/packages/rails.scm,
gnu/packages/rdf.scm,
gnu/packages/rednotebook.scm,
gnu/packages/rpc.scm,
gnu/packages/rsync.scm,
gnu/packages/ruby.scm,
gnu/packages/rust.scm,
gnu/packages/scheme.scm,
gnu/packages/screen.scm,
gnu/packages/security-token.scm,
gnu/packages/selinux.scm,
gnu/packages/serialization.scm,
gnu/packages/shells.scm,
gnu/packages/shellutils.scm,
gnu/packages/simh.scm,
gnu/packages/sml.scm,
gnu/packages/ssh.scm,
gnu/packages/statistics.scm,
gnu/packages/stenography.scm,
gnu/packages/sync.scm,
gnu/packages/syncthing.scm,
gnu/packages/synergy.scm,
gnu/packages/telephony.scm,
gnu/packages/terminals.scm,
gnu/packages/tex.scm,
gnu/packages/texinfo.scm,
gnu/packages/text-editors.scm,
gnu/packages/textutils.scm,
gnu/packages/time.scm,
gnu/packages/tmux.scm,
gnu/packages/tor.scm,
gnu/packages/toys.scm,
gnu/packages/version-control.scm,
gnu/packages/video.scm,
gnu/packages/vim.scm,
gnu/packages/virtualization.scm,
gnu/packages/vlang.scm,
gnu/packages/vnc.scm,
gnu/packages/vpn.scm,
gnu/packages/web-browsers.scm,
gnu/packages/web.scm,
gnu/packages/wireservice.scm,
gnu/packages/wm.scm,
gnu/packages/wxwidgets.scm,
gnu/packages/xdisorg.scm,
gnu/packages/xml.scm,
gnu/packages/xorg.scm,
tests/lint.scm: Remove trailing ".git" from 'git-reference' URL.
2020-07-12 20:53:28 +00:00
|
|
|
(url "https://github.com/pocl/pocl")
|
2018-08-24 01:51:38 +00:00
|
|
|
(commit (string-append "v" version))))
|
|
|
|
(sha256
|
2019-10-30 16:05:09 +00:00
|
|
|
(base32 "1c4y69zks6hkq5fqh9waxgb8g4ka7y6h3vacmsm720kba0h57g8a"))
|
2018-09-29 04:05:15 +00:00
|
|
|
(file-name (git-file-name name version))))
|
2018-06-29 00:10:25 +00:00
|
|
|
(build-system cmake-build-system)
|
|
|
|
(native-inputs
|
|
|
|
`(("libltdl" ,libltdl)
|
|
|
|
("pkg-config" ,pkg-config)))
|
|
|
|
(inputs
|
|
|
|
`(("clang" ,clang)
|
2019-11-12 17:17:29 +00:00
|
|
|
("hwloc" ,hwloc-2 "lib")
|
2020-02-26 16:00:21 +00:00
|
|
|
("llvm" ,llvm)
|
2018-06-29 00:10:25 +00:00
|
|
|
("ocl-icd" ,ocl-icd)))
|
|
|
|
(arguments
|
|
|
|
`(#:configure-flags
|
|
|
|
(list "-DENABLE_ICD=ON"
|
|
|
|
"-DENABLE_TESTSUITES=ON"
|
|
|
|
;; We are not developers, don't run conformance suite.
|
|
|
|
"-DENABLE_CONFORMANCE=OFF"
|
|
|
|
(string-append "-DEXTRA_HOST_LD_FLAGS=-L"
|
|
|
|
(assoc-ref %build-inputs "libc") "/lib"))
|
|
|
|
#:phases
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
(add-before 'check 'set-HOME
|
|
|
|
(lambda _
|
|
|
|
(setenv "HOME" "/tmp")
|
|
|
|
#t)))))
|
|
|
|
(home-page "http://portablecl.org/")
|
|
|
|
(synopsis "Portable Computing Language (pocl), an OpenCL implementation")
|
|
|
|
(description
|
|
|
|
"Pocl is a portable implementation of the OpenCL standard (1.2 with some
|
|
|
|
2.0 features supported). This project seeks to improve performance
|
|
|
|
portability of OpenCL programs with the kernel compiler and the task run-time,
|
|
|
|
reducing the need for target-dependent manual optimizations.
|
|
|
|
|
|
|
|
pocl uses Clang as an OpenCL C frontend and LLVM for kernel compiler
|
|
|
|
implementation, and as a portability layer. Thus, if your desired target has
|
|
|
|
an LLVM backend, it should be able to get OpenCL support easily by using
|
|
|
|
pocl.")
|
|
|
|
(license license:expat)))
|
2020-02-10 21:49:31 +00:00
|
|
|
|
|
|
|
(define-public python-pytools
|
|
|
|
(package
|
|
|
|
(name "python-pytools")
|
|
|
|
(version "2020.1")
|
|
|
|
(source
|
|
|
|
(origin
|
|
|
|
(method url-fetch)
|
|
|
|
(uri (pypi-uri "pytools" version))
|
|
|
|
(sha256
|
|
|
|
(base32
|
|
|
|
"19h47pqfrq7ax7601i5g8icpb6b42h8zzwq0dqfdcjjqamwd2cn1"))))
|
|
|
|
(build-system python-build-system)
|
|
|
|
(propagated-inputs
|
|
|
|
`(("python-appdirs" ,python-appdirs)
|
|
|
|
("python-decorator" ,python-decorator)
|
|
|
|
("python-numpy" ,python-numpy)
|
|
|
|
("python-six" ,python-six)
|
|
|
|
("python-mpi4py" ,python-mpi4py)))
|
|
|
|
(home-page "https://pypi.org/project/pytools/")
|
|
|
|
(synopsis "Assorted tools for Python")
|
|
|
|
(description
|
|
|
|
"Pytools is a bag of things that are ``missing'' from the Python standard
|
|
|
|
library:
|
|
|
|
|
|
|
|
@itemize
|
|
|
|
@item
|
|
|
|
small helper functions such as @code{len_iterable}, @code{argmin},
|
|
|
|
tuple generation, permutation generation, ASCII table pretty printing,
|
|
|
|
GvR's @code{monkeypatch_xxx} hack, the elusive @code{flatten}, and much more.
|
|
|
|
@item
|
|
|
|
Michele Simionato's decorator module
|
|
|
|
@item
|
|
|
|
A time-series logging module, @code{pytools.log}.
|
|
|
|
@item
|
|
|
|
Batch job submission, @code{pytools.batchjob}.
|
|
|
|
@item
|
|
|
|
A lexer, @code{pytools.lex}.
|
|
|
|
@end itemize\n")
|
|
|
|
(license license:expat)))
|
2020-02-10 21:56:23 +00:00
|
|
|
|
|
|
|
(define-public python-pyopencl
|
|
|
|
(package
|
|
|
|
(name "python-pyopencl")
|
|
|
|
(version "2019.1.1")
|
|
|
|
(source
|
|
|
|
(origin
|
|
|
|
;; The tarball on PyPI lacks test programs such as
|
|
|
|
;; 'pygpu_language_opencl.cpp' so fetch it from Git.
|
|
|
|
;; XXX: The server at git.tiker.net is unreliable.
|
|
|
|
(method git-fetch)
|
|
|
|
(uri (git-reference
|
|
|
|
(url "http://git.tiker.net/trees/pyopencl.git")
|
|
|
|
(commit (string-append "v" version))
|
|
|
|
(recursive? #t)))
|
|
|
|
(file-name (git-file-name name version))
|
|
|
|
(sha256
|
|
|
|
(base32
|
|
|
|
"12q0rs8yla571vcfpsh0mfrjbdiayv0hi8r1rq0f178m3i3qjz80"))))
|
|
|
|
(build-system python-build-system)
|
|
|
|
(arguments
|
|
|
|
'(#:phases (modify-phases %standard-phases
|
|
|
|
(add-before 'build 'set-home
|
|
|
|
(lambda _
|
|
|
|
;; Some of the Python build scripts expect 'HOME' to be
|
|
|
|
;; set.
|
|
|
|
(setenv "HOME" (getcwd))
|
|
|
|
#t)))
|
|
|
|
|
|
|
|
;; Tests in 'compyte/ndarray/setup_opencl.py' appear to rely on
|
|
|
|
;; 'nvcc', which is not an option.
|
|
|
|
#:tests? #f))
|
|
|
|
(inputs
|
|
|
|
`(("opencl-headers" ,opencl-headers-1.2) ;POCL only supports OpenCL 1.2
|
|
|
|
("pybind11" ,pybind11)
|
|
|
|
("ocl-icd" ,ocl-icd))) ;libOpenCL
|
|
|
|
(propagated-inputs
|
|
|
|
`(("python-appdirs" ,python-appdirs)
|
|
|
|
("python-decorator" ,python-decorator)
|
|
|
|
("python-numpy" ,python-numpy)
|
|
|
|
("python-pytools" ,python-pytools)
|
|
|
|
("python-six" ,python-six)
|
|
|
|
("python-mako" ,python-mako)))
|
|
|
|
(home-page "http://mathema.tician.de/software/pyopencl")
|
|
|
|
(synopsis "Python wrapper for OpenCL")
|
|
|
|
(description
|
|
|
|
"PyOpenCL lets you access parallel computing devices such as GPUs from
|
|
|
|
Python @i{via} OpenCL.")
|
|
|
|
(license license:expat)))
|