(py)OpenCL - GPGPU intro
Python
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
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