- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
I try to use the printf with the lats version of the SDK... but nothing is printed in my output !
I use the following code :
#pragma OPENCL EXTENSION cl_intel_printf : enable
printf("%d ", i);
I work under Visual Studio 2008 with Win7 64 bits.
I have also try to open my console with :
AllocConsole();
HWND hConsole = (HWND)GetStdHandle(0xfffffff5);
ShowWindow(hConsole, SW_SHOWMINNOACTIVE);
AllocConsole(); HWND hConsole = (HWND)GetStdHandle(0xfffffff5); ShowWindow(hConsole, SW_SHOWMINNOACTIVE);But no success... nothing is printed !
Do you have an idea ?
Thanks
Link Copied
3 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
Could you please attach the complete .cl file (or string) you're using that demonstrates this problem for you?
Could you please attach the complete .cl file (or string) you're using that demonstrates this problem for you?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
There is too much code (+ 4000 lines)!!!!
This code works on AMD SDK. It is just a QT application running in VS !
Even when I run it from command line... (DOS cmd) I have no message in my console !
I don't know what to do to print with Intel SDK !
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
- Which version of the Intel OpenCL SDK are you using?
- Can you try to write a simple & small kernel and use printf in it, running it in the same environment that you run your large kernel? Do you see output from the printf call in the small kernel?
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page