AnsweredAssumed Answered

printf debug in kernel

Question asked by pumpkin83 on Mar 26, 2016
Latest reply on Mar 30, 2016 by pradyotsn

Hi, all:

 

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()

{

        printf("hello world!\n");

}

 

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:

 

[0] Platform Name: AMD Accelerated Parallel Processing

Choose Platform [0].

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,

Daniel

Attachments

Outcomes