Category Archives: advcl

Adventures in OpenCL

Adventures in OpenCL Part 3: Constant Memory Structs

Today we make a brief stop on our journey to examine a technique which has proven useful but not straightforward; passing in a structure as a parameter to an OpenCL kernel as __constant memory. Why would you want to do … Continue reading

Posted in advcl, code, python, tutorial | 7 Comments

Adventures in PyOpenCL: Part 2, Particles with PyOpenGL

Today we journey as pythonauts into the world of particle systems and fast 3D graphics, manipulating thousands upon thousands of little dots in mere milliseconds! We accomplish this with two Python modules, PyOpenCL and PyOpenGL. This is a port of … Continue reading

Posted in advcl, code, opencl, python, tutorial | 21 Comments

Adventures in PyOpenCL: Part 1 Getting Started with Python

Hello, World! I’m a big fan of Python (and excited to be attending PyCon!), and I’ve recently started playing with a great module called PyOpenCL. I’ve ported my Part 1 (and Part 1.5) tutorials from C (and C++) to Python … Continue reading

Posted in advcl, opencl, tutorial | 14 Comments

Adventures in OpenCL Part 2: Particles with OpenGL

This tutorial series is aimed at developers trying to learn OpenCL from the bottom up, with a focus on practicality. This installment introduces OpenCL context sharing with OpenGL. We make a simple particle system to demonstrate this feature. One of … Continue reading

Posted in advcl, code, opencl, tutorial | 12 Comments

Adventures in OpenCL: Part 1.5, C++ Bindings

This tutorial series is aimed at developers trying to learn OpenCL from the bottom up, with a focus on practicality. This part is a reworking of my first tutorial using the OpenCL C++ Bindings. Learning by example works best for … Continue reading

Posted in advcl, code, opencl, tutorial | 11 Comments

Adventures in OpenCL: Part 1, Getting Started

This tutorial series is aimed at developers trying to learn OpenCL from the bottom up, with a focus on practicality (i.e. I’m still learning, I’m sharing what I’ve found to work). Learning by example works best for me so make … Continue reading

Posted in advcl, code, opencl, tutorial | 36 Comments