Skip to main content

OpenCL wrapper using ctypes

Project description

[![Build Status](https://travis-ci.org/ucb-sejits/pycl.svg)](https://travis-ci.org/ucb-sejits/pycl) What is PyCL? =============

PyCL is yet another OpenCL wrapper for Python. Its primary goal is simple: wrap OpenCL in such a way that as many Python implementations can use it as feasible. It is currently tested on CPython 2.{5,6,7}, 3.2, and PyPy 1.5. It is known to largely not work on Jython, whose ctypes library is still immature.

To achieve this, we eschew extension modules and dependencies outside of the standard library. Ideally things like NumPy arrays and PIL images should Just Work, but they shouldn’t be required.

If you’re looking to get actual work done in OpenCL, this probably isn’t the distribution for you… yet. Before considering using PyCL for anything, give PyOpenCL a look. Its API is stable, its wrapper layer is fast C++, and it has fairly reasonable dependencies.

If you’re looking to contribute, or just get the latest development release, take a look at our repository.

Installation

It’s on PyPI, so installation should be as easy as:

pip install pycl
      -or-
easy_install pycl

But it’s a single module and there’s nothing to compile, so downloading it from PyPI or the repository and using it directly works too.

To actually use it, though, you’ll need an OpenCL platform installed. If you’re on Mac OS X 10.6 or later, you’re already done. Otherwise, download and install an appropriate platform from AMD, Intel, or NVIDIA.

Device Report

Installing pycl creates a pycl script which will give you a rather verbose report on the OpenCL device present on your system, just:

pycl

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pycl-0.1.0.tar.gz (29.9 kB view details)

Uploaded Source

File details

Details for the file pycl-0.1.0.tar.gz.

File metadata

  • Download URL: pycl-0.1.0.tar.gz
  • Upload date:
  • Size: 29.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for pycl-0.1.0.tar.gz
Algorithm Hash digest
SHA256 1a04bfcd79aef22ada0638a589f84a8145ab470a282646227dead0f810010d52
MD5 f741819d5df50c546497f31378b3a11f
BLAKE2b-256 2d2bda225785b38763c69c3fc8a77f16a2cd7c5e72afe20f15c0169d8440d76a

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page