Success! Subscription added.
Success! Subscription removed.
Sorry, you must verify to complete this action. Please click the verification link in your email. You may re-send via your
Unable to pass structure to a opencl kernel?
typedef struct _Point
unsigned int x;
unsigned int y;
__kernel void Fun(__global struct mPoint* p)
unsigned int tid = get_local_id(0);
The error returned by clBuildProgram():
1:3:38: warning: declaration of 'struct mPoint' will not be visible outside of t
1:6:3: error: incomplete definition of type 'struct mPoint'
1:3:38: note: forward declaration of 'struct mPoint'
I don't known where is the mistake.
For more complete information about compiler optimizations, see our Optimization Notice.