;;; GNU Guix --- Functional package management for GNU ;;; Copyright © 2018 Fis Trivial ;;; Copyright © 2018, 2020 Tobias Geerinckx-Rice ;;; 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 opencl) #:use-module (guix build-system gnu) #:use-module (guix build-system cmake) #:use-module (gu
aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGreg Hogan <code@greghogan.com>2022-04-14 16:39:37 +0000
committerLudovic Courtès <ludo@gnu.org>2022-04-20 23:46:43 +0200
commit25a1c60b1ca99e500d1bd909af85a08eeb2b0ae3 (patch)
tree5cb96b5860dc4928c3d5a23a80e3ea7e5ec5da02 /gnu/packages/geo.scm
parentbc3e32454f1641281a689fdbf9f4e1493dcf2157 (diff)
downloadguix-25a1c60b1ca99e500d1bd909af85a08eeb2b0ae3.tar.gz
guix-25a1c60b1ca99e500d1bd909af85a08eeb2b0ae3.zip
gnu: aws-lc: Update to 1.0.2.
* gnu/packages/tls.scm (aws-lc): Update to 1.0.2. Signed-off-by: Ludovic Courtès <ludo@gnu.org>
Diffstat (limited to 'gnu/packages/geo.scm')
0 files changed, 0 insertions, 0 deletions
L API entry points @item Enumerating OpenCL implementations @item Forwarding OpenCL API calls to the correct implementation @end itemize This package contains the Khronos official OpenCL ICD Loader.") (license license:asl2.0))) (define-public clinfo (package (name "clinfo") (version "3.0.21.02.21") (source (origin (method git-fetch) (uri (git-reference (url "https://github.com/Oblomov/clinfo") (commit version))) (file-name (git-file-name name version)) (sha256 (base32 "1sfxp6ai83i0vwdg7b05h0k07q6873q1z1avnyksj5zmzdnxya6j")))) (build-system gnu-build-system) (native-inputs (list opencl-headers)) (inputs (list opencl-icd-loader)) (arguments `(#:make-flags (list ,(string-append "CC=" (cc-for-target)) (string-append "PREFIX=" (assoc-ref %outputs "out"))) #:phases (modify-phases %standard-phases (delete 'configure)) #: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))) (define-public ocl-icd (package (name "ocl-icd") (version "2.3.2") (source (origin (method git-fetch) (uri (git-reference (url "https://github.com/OCL-dev/ocl-icd") (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 (base32 "0y0lnxb6zlhfb5vxxib5n1vvxa4b23qc0j3lsih6yjz9j37mj7wz")))) (build-system gnu-build-system) (native-inputs (list autoconf automake libtool ruby)) (home-page "https://github.com/OCL-dev/ocl-icd") (synopsis "Generic OpenCL @acronym{ICD, Installable Client Driver} loader") (description "This package provides an OpenCL @acronym{ICD, Installable Client Driver} loader. It maintains a YAML database of all known and guessed function pointers from vendor-specific drivers. It also delivers a skeleton of bindings to incorporate inside an OpenCL implementation to give it ICD functionalities.") (license license:bsd-2))) (define-public beignet (package (name "beignet") (version "1.3.2") (source (origin (method git-fetch) (uri (git-reference (url "https://github.com/intel/beignet") (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$"))))) (native-inputs (list pkg-config 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) ("libpthread-stubs" ,libpthread-stubs) ("libsm" ,libsm) ("libva" ,libva) ("libxfixes" ,libxfixes) ("libxext" ,libxext) ("mesa-utils" ,mesa-utils) ("ncurses" ,ncurses) ("ocl-icd" ,ocl-icd) ("opencl-icd-loader" ,opencl-icd-loader) ("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.") ;; Beignet only supports Intel processors. (supported-systems '("x86_64-linux" "i686-linux")) (license license:lgpl2.1+))) (define-public pocl (package (name "pocl") (version "3.1") (source (origin (method git-fetch) (uri (git-reference (url "https://github.com/pocl/pocl") (commit (string-append "v" version)))) (sha256 (base32 "1pw4q0hi5ynx34fvzryravz3jbh89f9cg60fkjj77sxh9xw8phdd")) (file-name (git-file-name name version)) (modules '((guix build utils))) (snippet '(begin ;; "kernel/test_printf_vectors" and ;; "kernel/test_printf_vectors_ulongn" ;; fail on aarch5 and likely other platforms ;; as commented in CMakeLists.txt ;; thus disable the block in CMakeList.txt adding ;; these two tests (substitute* "tests/kernel/CMakeLists.txt" (("NOT ENABLE_POCL_FLOAT_CONVERSION") "false")))))) (build-system cmake-build-system) (native-inputs (list libltdl pkg-config python-3)) (inputs (list clang-15 llvm-15 `(,hwloc-2 "lib") opencl-icd-loader)) (arguments `(#:configure-flags (let* ((libdir (string-append (assoc-ref %outputs "out") "/lib"))) (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") ;; We need both libdir and libdir/pocl in RUNPATH. (string-append "-DCMAKE_INSTALL_RPATH=" libdir ";" libdir "/pocl"))) #:phases (modify-phases %standard-phases (add-before 'check 'set-HOME (lambda _ (setenv "HOME" "/tmp") ;; Since 2.9.0, hwloc fails when /sys is missing, so provide a ;; fake topology. (setenv "HWLOC_SYNTHETIC" "4")))))) (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))) (define-public python-pytools (package (name "python-pytools") (version "2021.2.7") (source (origin (method url-fetch) (uri (pypi-uri "pytools" version)) (sha256 (base32 "1yyr4k6sqx859gjhc02633l2vxwdnj6m2f5blmf7dgq0gzzgcf05")))) (build-system python-build-system) (arguments `(#:tests? #f)) ; Tests depend on packages not present in Guix. (propagated-inputs (list python-appdirs python-numpy)) (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))) (define-public python-pyopencl (package (name "python-pyopencl") (version "2021.2.6") (source (origin (method git-fetch) (uri (git-reference (url "https://github.com/inducer/pyopencl.git") (commit (string-append "v" version)) (recursive? #t))) (file-name (git-file-name name version)) (sha256 (base32 "1s2cls7avxvf753zzpx422ikslaxdnm8rz58zg7mal15yak0wv2x")))) (build-system python-build-system) (arguments `(#:tests? #f)) ; Tests cannot find pygpu_language_opencl.cpp (inputs (list opencl-headers pybind11 opencl-icd-loader)) ;libOpenCL (propagated-inputs (list python-appdirs python-numpy python-pytools python-mako)) (home-page "https://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)))