I tested the same with latest Catalyst driver and APP SDK on Windows 7 -64bit and it worked fine for me.
AMD FX(tm)-4100 Quad-Core Processor 3.6GHz
Windows 7 6bit
Visual Studio 13
HD Radeon Pitcairn 7850
Driver 14.7 (14.30-140716a-173979E-ATI)
Please check with the lastest driver and APP SDK. If still find the problem, please let us know your system details.
As per AMD APP Programming Guide:
The OpenCL Specification 1.1 and 1.2 support the optional AMD extension cl_amd_printf, which provides printf capabilities to OpenCL C programs. To use this extension, an application first must include
#pragma OPENCL EXTENSION cl_amd_printf : enable
Thanks for the reply.
I'm using Ubuntu 14.04 64bit with fglrx driver v13.35.5
I have the Radeon R9 200 Tahiti and Core i7-4770K @ 3.5GHz
I use thextension cl_amd_printf already.
By the way I have other functions where I use printf and it works perfectly.
I tested it again under Ubuntu 14.04 LTS with latest catalyst driver 14.40 but was unable to reproduce the issue. Please check with the latest driver and let us know your findings.
HD Radeon Pitcairn 7850 and AMD Radeon HD 8670D
APP SDK 2.9