decoration left 1
decoration left 2
decoration rigth

Show/Hide search bar
black cat logo variable logo

Usage of OpenCL with Qt

First of all to develop with OpenCL in Qt you require OpenCL SDK, for example AMD APP SDK (AMD GPU is required) or Intel SDK for OpenCL (for Intel processors). Different SDKs may be required to compare work and results of different OpenCL platforms (in case of bugs in drivers). Add following lines to .PRO file of your Qt project to include OpenCL headers and library: #AMD
INCLUDEPATH += 'C:/Program Files (x86)/AMD APP/include/'
LIBS += -lOpenCL
        -L'C:/Program Files (x86)/AMD APP/bin/x86'
        -L'C:/Program Files (x86)/AMD APP/lib/x86'

INCLUDEPATH += 'C:/Program Files (x86)/Intel/OpenCL_SDK/2.0/include'
LIBS += -lOpenCL
        -L'C:/Program Files (x86)/Intel/OpenCL_SDK/2.0/bin/x86'
        -L'C:/Program Files (x86)/Intel/OpenCL_SDK/2.0/lib/x86'

Include OpenCL header (for C API): #include 'cl/cl.h'

Or to use OpenCL C++ wrapper include following header: #include 'cl/cl.hpp'

Now OpenCL is ready to use :) You can also use Qt module for work with OpenCL - QtOpenCL. But development of QtOpenCL stopped in 2011 and this module is only experimental. Unfortunately, OpenCL-OpenGL Interoperability doesn't work in Qt under Windows.


Sun and Black Cat- Igor Dykhta (igor dykhta email) 2007-2014