AnsweredAssumed Answered

How to pass a pointer in a class to a kernel in opencl c++ and get pointer data.

Question asked by anilsharma92 on Feb 3, 2017
Latest reply on Feb 16, 2017 by dipak

Hi all,

The platform i am using is AMD radeon 200 series (sapphire 250 (GPU- Oland)

I am creating a class on host having a pointer as data member, and same class on kernel side too.

now if in kernel side, pointer is present in the class, build error( -11) arises. if we remove pointer on kernel side, code builds up.

there, the pointer value is copied to a global pointer and  dereference value comes to be zero.

 

My main objective is to access a pointer in a class on device side.

 

AMD SDK-3.0

opencl c++ version 1.2

 

any help would be appreciated.

Attachments

Outcomes