Hi,
I'm switching from Visual Studio to QTCreator to develop my OpenCL application and I would like to do some "printf" from my kernel.
The problem is that it doesn't work !
I have try to call AllocConsole, to put my app in console mode... nothing !!!!
Do you have an idea ?
Which version of SDK are you using? According to AMD ATI Stream SDK 2.2 supports printf in kernel, search printf in this page
http://developer.amd.com/gpu/atistreamsdk/pages/default.aspx
Try also this page
http://www.khronos.org/message_boards/viewtopic.php?f=28&t=3117
Thx,
I'm using SDK 2.2 and I use printf since a lof of time !
I have do openCL with C#, MSVC and now QT. With C# I have call 'AllocConsole' and everything was fine. But, here with QT I can't print anything !
Also, what is strange is that during kernel compilation several console are appearing and disappearing !!! But my created console is still empty !
Thx
viewon01,
AFAIK, QT absorbs the standard output. You might get more help at QTforums.
i thing you should tell it to the comany they could provide you its great solution.