Skip to content
(py)OpenCL - GPGPU intro
Python
Branch: master
Clone or download

Latest commit

Fetching latest commit…
Cannot retrieve the latest commit at this time.

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
examples
.gitignore
README.rst
setup.py
tox.ini

README.rst

(py)OpenCL Examples

Used in (py)OpenCL on video cards: GPGPU intro talk (polish only).

Please note, you must have working OpenCL installed on your system, along with proper Installable Client Driver (ICD).

Python (2/3)

First, install dependencies:

pip install numpy pyopencl pytest

Use pure Python:

python examples/test_vectors_cl.py

or py.test to run all examples:

py.test

C

Go to examples directory, compile:

cd examples/
gcc -std=c99 vectors_cl.c -o vectors_cl -l OpenCL

and run:

./vectors_cl
You can’t perform that action at this time.