cancel
Showing results for 
Search instead for 
Did you mean: 

Archives Discussions

spectral
Adept II

Unable to print console from OpenCL kernel with QT Application

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 ?

0 Likes
4 Replies
uforob
Journeyman III

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

0 Likes

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

0 Likes

viewon01,

AFAIK, QT absorbs the standard output. You might get more help at QTforums.

0 Likes
faizan4it
Journeyman III

i thing you should tell it to the comany they could provide you its great solution.


passport renewal

imigration attorney

0 Likes