summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorMatthias Diener <mdiener@illinois.edu>2020-09-25 03:19:56 -0500
committerGitHub <noreply@github.com>2020-09-25 10:19:56 +0200
commit9c5a47183eb8b144d57fa47528105de2fd4b680f (patch)
treea73df9bc8b293b872f069a4063acc6755c2bb600 /var
parent54517e571a34fdbfb1bc9074ac1f67c31b9d6cb9 (diff)
downloadspack-9c5a47183eb8b144d57fa47528105de2fd4b680f.tar.gz
spack-9c5a47183eb8b144d57fa47528105de2fd4b680f.tar.bz2
spack-9c5a47183eb8b144d57fa47528105de2fd4b680f.tar.xz
spack-9c5a47183eb8b144d57fa47528105de2fd4b680f.zip
pyopencl: add new package (#18899)
Co-authored-by: Adam J. Stewart <ajstewart426@gmail.com>
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/py-pyopencl/package.py35
1 files changed, 35 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/py-pyopencl/package.py b/var/spack/repos/builtin/packages/py-pyopencl/package.py
new file mode 100644
index 0000000000..78baa07ea5
--- /dev/null
+++ b/var/spack/repos/builtin/packages/py-pyopencl/package.py
@@ -0,0 +1,35 @@
+# Copyright 2013-2020 Lawrence Livermore National Security, LLC and other
+# Spack Project Developers. See the top-level COPYRIGHT file for details.
+#
+# SPDX-License-Identifier: (Apache-2.0 OR MIT)
+
+
+from spack import *
+
+
+class PyPyopencl(PythonPackage):
+ """Python wrapper for OpenCL."""
+
+ homepage = "https://documen.tician.de/pyopencl/"
+ url = "https://pypi.io/packages/source/p/pyopencl/pyopencl-2020.2.2.tar.gz"
+
+ maintainers = ['matthiasdiener']
+
+ version('2020.2.2', sha256='31fcc79fb6862998e98d91a624c0bd4f0ab4c5d418d199912d4d312c64e437ec')
+
+ depends_on('ocl-icd', type=('build', 'link', 'run'))
+ depends_on('opencl', type=('build', 'link', 'run'))
+ depends_on('python@3.6:', type=('build', 'run'))
+ depends_on('py-appdirs@1.4.0:', type=('build', 'run'))
+ depends_on('py-decorator@3.2.0:', type=('build', 'run'))
+ depends_on('py-mako@0.3.6:', type=('build', 'run'))
+ depends_on('py-numpy', type=('build', 'run'))
+ depends_on('py-pybind11@2.5.0:', type='build')
+ depends_on('py-pytools@2017.6:', type=('build', 'run'))
+ depends_on('py-setuptools', type='build')
+
+ @run_before('build')
+ def prepare(self):
+ cl_prefix = self.spec['ocl-icd'].prefix
+ python('configure.py', '--cl-inc-dir=' + cl_prefix.include,
+ '--cl-lib-dir=' + cl_prefix.lib)