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,
Solved! Go to Solution.
I dont think so you can use printf in the kernel code. The extension which you are specifying , make sure that your hardware/compilier supports that. It would be helpful to debug if you can give the clinfo of your system.