Beginning OpenCL tutorials?

hddh picture hddh · Jun 29, 2013 · Viewed 24.1k times · Source

I have seen some videos and articles about how powerful OpenCL can be - and I'm hooked. The problem is there is a LOT less resources out there to help you with OpenCL then .. say OpenGL.

I am looking for some pointers to some beginning OpenCL (e.g. a Hello World tutorial) tutorials and some advanced tutorials as well when I get the hang of it.

Also - how 'cross platform' is OpenCL, how many different operating systems (e.g. Windows, Linux, iOS & Android) could I get an OpenCL program running on.

BTW: I would prefer tutorials on using OpenCL with C++ (not Java etc.) :-)

EDIT: If I were to start developing in OpenCL where would I need to go for downloads like headers & .lib files on a Windows system (On linux you just need to type sudo apt-get install opencl-dev & I think Mac OS X already has it installed?).

Answer

a.lasram picture a.lasram · Jun 29, 2013

How 'cross platform' is OpenCL, how many different operating systems (e.g. Windows, Linux, iOS & Android) could I get an OpenCL program running on?

OpenCL is open standard but mostly relies on a driver that a vendor develops for a specific hardware and operating system.

To obtain drivers, c++ lib and information follow the links:

Khronos

AMD

AMD guide (beginner to relatively advanced)

Nvidia

Nvidia guide (beginner to relatively advanced) + CUDA (to learn more techniques for Nvidia GPUs)

Mac

Intel

ARM

Samsung

Qualcomm