aboutsummaryrefslogtreecommitdiff
path: root/gn/packages/beignet.scm
diff options
context:
space:
mode:
Diffstat (limited to 'gn/packages/beignet.scm')
-rw-r--r--gn/packages/beignet.scm71
1 files changed, 4 insertions, 67 deletions
diff --git a/gn/packages/beignet.scm b/gn/packages/beignet.scm
index c07fa61..ea099c4 100644
--- a/gn/packages/beignet.scm
+++ b/gn/packages/beignet.scm
@@ -47,7 +47,10 @@
#:use-module (gnu packages xorg)
#:use-module (gnu packages xdisorg)
#:use-module (gnu packages version-control)
- #:use-module (gnu packages linux))
+ #:use-module (gnu packages linux)
+ #:use-module (gnu packages opencl)
+ #:use-module (gn packages ocl-headers)
+ #:use-module (gn packages ocl-icd))
(define-public beignet
(package
@@ -87,69 +90,3 @@
(synopsis "Intel's OpenCL framework")
(description "Intel's OpenCL framework that works with Intel IvyBridge GPUs and above")
(license license:gpl2)))
-
-(define-public ocl-icd
- (package
- (name "ocl-icd")
- (version "2.2.9")
- (source (origin
- (method url-fetch)
- (uri (string-append "https://forge.imag.fr/frs/download.php/716/ocl-icd-"
- version ".tar.gz"))
- (file-name (string-append name "-" version ".tar.gz"))
- (sha256
- (base32
- "1rgaixwnxmrq2aq4kcdvs0yx7i6krakarya9vqs7qwsv5hzc32hc"))))
- (inputs `(("zip" ,zip)
- ("autoconf" ,autoconf)
- ("automake" ,automake)
- ("ruby" ,ruby)
- ("libtool" ,libtool)
- ("opencl-headers" ,opencl-headers)
- ("libgcrypt" ,libgcrypt)))
- (build-system gnu-build-system)
- (arguments
- '(#:phases (modify-phases %standard-phases
- (add-after 'unpack `bootstrap
- (lambda _
- (zero? (system* "autoreconf" "-vfi")))))))
- (home-page "https://forge.imag.fr/projects/ocl-icd/")
- (synopsis "OpenCL implementations are provided as ICD (Installable Client Driver).")
- (description "OpenCL implementations are provided as ICD (Installable Client Driver).
- An OpenCL program can use several ICD thanks to the use of an ICD Loader as provided by this project.
- This free ICD Loader can load any (free or non free) ICD")
- (license license:gpl2)))
-
-(define-public opencl-headers
-(let ((commit "c1770dc"))
- (package
- (name "opencl-headers")
- (version (string-append "2.1-" commit ))
- (source (origin
- (method git-fetch)
- (uri (git-reference
- (url "https://github.com/KhronosGroup/OpenCL-Headers.git")
- (commit commit)))
- (file-name (string-append name "-" commit))
- (sha256
- (base32
- "0m9fkblqja0686i2jjqiszvq3df95gp01a2674xknlmkd6525rck"))))
- (propagated-inputs '())
- (inputs '())
- (native-inputs '())
- (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
- (assoc-ref outputs "out")
- "/include/CL")))))))
- (synopsis "The Khronos OpenCL headers")
- (description "This package provides the Khronos OpenCL headers")
- (home-page "https://www.khronos.org/registry/cl/")
- (license license:gpl2))))