I am working on the OpenACC compiler for the AMD GPUs. It is extremely difficult to debug the OpenCL kernel in AMD platform without the printf.
This is the simple kernel I am using.
#pragma OPENCL EXTENSION cl_amd_printf : enable
kernel void helloworld()
However, it doesn't printf anything.
I use the version AMDAPPSDK-3.0-0-Beta.
This is the output that I received from my machine:
 Platform Name: AMD Accelerated Parallel Processing
Choose Platform .
32692 CPU device available.
1 GPU device available.
Choose GPU Device:1
Device Name = Hawaii
Device Vendor = Advanced Micro Devices, Inc.
The sample code is attached. Any suggestion is appreciated.
Thank you very much,