[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
08/09: gnu: Add python-pyopencl.
From: |
guix-commits |
Subject: |
08/09: gnu: Add python-pyopencl. |
Date: |
Mon, 10 Feb 2020 17:35:01 -0500 (EST) |
civodul pushed a commit to branch master
in repository guix.
commit 01dce79fa400e7e41024567c9fc7614b0cf8eddf
Author: Ludovic Courtès <address@hidden>
AuthorDate: Mon Feb 10 22:56:23 2020 +0100
gnu: Add python-pyopencl.
* gnu/packages/opencl.scm (python-pyopencl): New variable.
---
gnu/packages/opencl.scm | 49 +++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 49 insertions(+)
diff --git a/gnu/packages/opencl.scm b/gnu/packages/opencl.scm
index dc90d91..04b3cb0 100644
--- a/gnu/packages/opencl.scm
+++ b/gnu/packages/opencl.scm
@@ -384,3 +384,52 @@ Batch job submission, @code{pytools.batchjob}.
A lexer, @code{pytools.lex}.
@end itemize\n")
(license license:expat)))
+
+(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)))
- branch master updated (8a0dd28 -> 50e96d2), guix-commits, 2020/02/10
- 01/09: git: Add missing exports for <git-checkout>., guix-commits, 2020/02/10
- 02/09: gnu: pybind11: Change 'license' field to BSD-3., guix-commits, 2020/02/10
- 07/09: gnu: Add python-pytools., guix-commits, 2020/02/10
- 04/09: gnu: pybind11: Add dependency on Catch and Eigen., guix-commits, 2020/02/10
- 06/09: gnu: pybind11: Install .py files., guix-commits, 2020/02/10
- 03/09: gnu: pybind11: Update to 2.4.3., guix-commits, 2020/02/10
- 08/09: gnu: Add python-pyopencl.,
guix-commits <=
- 05/09: gnu: pybind11: Tweak description., guix-commits, 2020/02/10
- 09/09: gnu: geoclue: Update to 2.5.5, guix-commits, 2020/02/10