svn commit: r399324 - in head/devel: . py-pyopencl

Jung-uk Kim jkim at FreeBSD.org
Thu Oct 15 00:15:26 UTC 2015


Author: jkim
Date: Thu Oct 15 00:15:24 2015
New Revision: 399324
URL: https://svnweb.freebsd.org/changeset/ports/399324

Log:
  PyOpenCL gives you easy, Pythonic access to the OpenCL parallel computation
  API.  What makes PyOpenCL special?
  
  - Object cleanup tied to lifetime of objects. This idiom, often called RAII
    in C++, makes it much easier to write correct, leak- and crash-free code.
  - Completeness.  PyOpenCL puts the full power of OpenCL's API at your
    disposal, if you wish.  Every obscure get_info() query and all CL calls
    are accessible.
  - Automatic Error Checking.  All errors are automatically translated into
    Python exceptions.
  - Speed. PyOpenCL's base layer is written in C++, so all the niceties above
    are virtually free.
  - Helpful Documentation.
  - Liberal license.  PyOpenCL is open-source under the MIT license and free
    for commercial, academic, and private use.
  
  WWW: http://mathema.tician.de/software/pyopencl

Added:
  head/devel/py-pyopencl/
  head/devel/py-pyopencl/Makefile   (contents, props changed)
  head/devel/py-pyopencl/distinfo   (contents, props changed)
  head/devel/py-pyopencl/pkg-descr   (contents, props changed)
Modified:
  head/devel/Makefile

Modified: head/devel/Makefile
==============================================================================
--- head/devel/Makefile	Thu Oct 15 00:06:49 2015	(r399323)
+++ head/devel/Makefile	Thu Oct 15 00:15:24 2015	(r399324)
@@ -4179,6 +4179,7 @@
     SUBDIR += py-pymarc
     SUBDIR += py-pympler
     SUBDIR += py-pymtbl
+    SUBDIR += py-pyopencl
     SUBDIR += py-pyrfc3339
     SUBDIR += py-pyro
     SUBDIR += py-pyshapelib

Added: head/devel/py-pyopencl/Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/py-pyopencl/Makefile	Thu Oct 15 00:15:24 2015	(r399324)
@@ -0,0 +1,30 @@
+# $FreeBSD$
+
+PORTNAME=	pyopencl
+PORTVERSION=	2015.1
+CATEGORIES=	devel python
+MASTER_SITES=	CHEESESHOP
+PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER=	python at FreeBSD.org
+COMMENT=	Python wrapper for OpenCL
+
+LICENSE=	MIT
+
+BUILD_DEPENDS=	${LOCALBASE}/include/CL/cl.h:${PORTSDIR}/devel/opencl \
+		${PYTHON_SITELIBDIR}/numpy/__init__.py:${PORTSDIR}/math/py-numpy
+LIB_DEPENDS=	libOpenCL.so:${PORTSDIR}/devel/ocl-icd
+RUN_DEPENDS=	${PYTHON_SITELIBDIR}/pytools/__init__.py:${PORTSDIR}/devel/py-pytools \
+		${PYTHON_SITELIBDIR}/numpy/__init__.py:${PORTSDIR}/math/py-numpy \
+		${PYTHON_SITELIBDIR}/mako/__init__.py:${PORTSDIR}/textproc/py-mako
+
+USE_PYTHON=	autoplist distutils
+USES=		python
+
+CPPFLAGS+=	-isystem ${LOCALBASE}/include
+
+post-install:
+	${FIND} ${STAGEDIR}${PYTHON_SITELIBDIR}/${PORTNAME} -name '*.so' \
+	    -exec ${STRIP_CMD} {} \;
+
+.include <bsd.port.mk>

Added: head/devel/py-pyopencl/distinfo
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/py-pyopencl/distinfo	Thu Oct 15 00:15:24 2015	(r399324)
@@ -0,0 +1,2 @@
+SHA256 (pyopencl-2015.1.tar.gz) = 823b8c5ae438a70de87b3675c3896d04d785261cb0cbd45c01c7dd0fe9d9f6ff
+SIZE (pyopencl-2015.1.tar.gz) = 1652046

Added: head/devel/py-pyopencl/pkg-descr
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/py-pyopencl/pkg-descr	Thu Oct 15 00:15:24 2015	(r399324)
@@ -0,0 +1,17 @@
+PyOpenCL gives you easy, Pythonic access to the OpenCL parallel computation
+API.  What makes PyOpenCL special?
+
+- Object cleanup tied to lifetime of objects. This idiom, often called RAII
+  in C++, makes it much easier to write correct, leak- and crash-free code.
+- Completeness.  PyOpenCL puts the full power of OpenCL's API at your
+  disposal, if you wish.  Every obscure get_info() query and all CL calls
+  are accessible.
+- Automatic Error Checking.  All errors are automatically translated into
+  Python exceptions.
+- Speed. PyOpenCL's base layer is written in C++, so all the niceties above
+  are virtually free.
+- Helpful Documentation.
+- Liberal license.  PyOpenCL is open-source under the MIT license and free
+  for commercial, academic, and private use.
+
+WWW: http://mathema.tician.de/software/pyopencl


More information about the svn-ports-all mailing list