diff options
author | Cedric Nugteren <web@cedricnugteren.nl> | 2018-02-18 18:01:02 +0100 |
---|---|---|
committer | Cedric Nugteren <web@cedricnugteren.nl> | 2018-02-18 18:01:02 +0100 |
commit | ce5e2a1e008bee3512a9e17db4d6ded17d2141e6 (patch) | |
tree | e843d5b4214f9bfc44d0aad9f790c8063e8b8f1c /src | |
parent | 76c21a95c29bd3645213b870de61e012204cc844 (diff) |
Prepared PyCLBlast for release as a package on PyPi
Diffstat (limited to 'src')
-rw-r--r-- | src/pyclblast/MANIFEST.in | 2 | ||||
-rw-r--r-- | src/pyclblast/README.md | 31 | ||||
-rw-r--r-- | src/pyclblast/setup.py | 17 | ||||
-rw-r--r-- | src/pyclblast/src/pyclblast.pyx (renamed from src/pyclblast/pyclblast/pyclblast.pyx) | 0 |
4 files changed, 46 insertions, 4 deletions
diff --git a/src/pyclblast/MANIFEST.in b/src/pyclblast/MANIFEST.in new file mode 100644 index 00000000..fb20923f --- /dev/null +++ b/src/pyclblast/MANIFEST.in @@ -0,0 +1,2 @@ +include README.md setup.py src/*.pyx +include samples/*.py diff --git a/src/pyclblast/README.md b/src/pyclblast/README.md new file mode 100644 index 00000000..be37af01 --- /dev/null +++ b/src/pyclblast/README.md @@ -0,0 +1,31 @@ + +PyCLBlast: Python wrappers for the tuned OpenCL BLAS library CLBlast +================ + +This Python package provides a straightforward wrapper for CLBast based on PyOpenCL. CLBlast is a modern, lightweight, performant and tunable OpenCL BLAS library written in C++11. It is designed to leverage the full performance potential of a wide variety of OpenCL devices from different vendors, including desktop and laptop GPUs, embedded GPUs, and other accelerators. CLBlast implements BLAS routines: basic linear algebra subprograms operating on vectors and matrices. + +See [the CLBlast repository](https://github.com/CNugteren/CLBlast) and [the CLBlast website](https://cnugteren.github.io/clblast) for more information about CLBlast. + + +Prerequisites +------------- + +Non-Python requirements: + +* OpenCL +* [CLBlast](https://github.com/CNugteren/CLBlast) + +Python requirements: + +* Cython +* [PyOpenCL](https://github.com/pyopencl/pyopencl/) + + +Getting started +------------- + +After installation OpenCL and CLBlast, simply use pip to install PyCLBlast, e.g.: + + pip install --user pyclblast + +To start using the library, browse the [CLBlast](https://github.com/CNugteren/CLBlast) documentation or check out the PyCLBlast samples provides in the `samples` subfolder. diff --git a/src/pyclblast/setup.py b/src/pyclblast/setup.py index 2a90f16d..d5916e06 100644 --- a/src/pyclblast/setup.py +++ b/src/pyclblast/setup.py @@ -14,7 +14,7 @@ ext_modules = list() ext_modules.append( Extension( "pyclblast", - ["pyclblast/pyclblast.pyx"], + ["src/pyclblast.pyx"], libraries=["clblast"], language="c++" ) @@ -27,10 +27,19 @@ setup( author_email="web@cedricnugteren.nl", url="https://github.com/cnugteren/clblast", description="Python bindings for CLBlast, the tuned OpenCL BLAS library", - license="ApacheV2", - requires=["pyopencl","cython"], - packages=["pyclblast"], + license="Apache Software License", + requires=["numpy", "pyopencl", "cython"], + package_dir={'': 'src'}, scripts=[], ext_modules=ext_modules, cmdclass={"build_ext": build_ext}, + classifiers=[ + 'Development Status :: 4 - Beta', + 'Intended Audience :: Developers', + 'Topic :: Software Development :: Libraries', + 'License :: OSI Approved :: Apache Software License', + 'Programming Language :: Python :: 2', + 'Programming Language :: Python :: 3', + ], + keywords="OpenCL BLAS CLBlast GEMM matrix-multiplication" ) diff --git a/src/pyclblast/pyclblast/pyclblast.pyx b/src/pyclblast/src/pyclblast.pyx index 9529400c..9529400c 100644 --- a/src/pyclblast/pyclblast/pyclblast.pyx +++ b/src/pyclblast/src/pyclblast.pyx |