notyou

cl_amd_printf unrecognized extension

Discussion created by notyou on May 22, 2011
Latest reply on May 24, 2011 by himanshu.gautam

I couldn't find any topics relating to why I can't get cl_amd_printf to work under SDK 2.4 and driver 11.4.

Whenever I add #pragma OPENCL EXTENSION cl_amd_printf : enable to my .cl file, it comes back with "warning: ignore unrecognized OpenCL extension" and fails to compile.

If I try to use the standard printf ( ... ) I get "error: function "printf" declared implicitly" and again it fails to compile.

Is there a file or library I need to include to make this work?

For reference:

Windows 7 x64 Home Premium

Intel i7-720QM

ATI Mobility Radeon 5870

Outcomes