cancel
Showing results for 
Search instead for 
Did you mean: 

Archives Discussions

maxdz8
Elite

Elements of a struct or union must belong to the same address space

1.2 specification, page 235.

Thereby, the following is invalid OpenCL C


struct Tables {


     local ulong *t0;


     constant ulong *t1;


};


Output from building in codexl 64 is

========== Build started: Building groestlMYR_legacy.cl on 3 devices. ==========

Compiling device: Capeverde... ...Failed!

OpenCL Compile Error: clBuildProgram failed (CL_BUILD_PROGRAM_FAILURE).

Error compiling program for legacyGROESTLMYR_1stStep.

Frontend phase failed compilation.

Error: Creating kernel legacyGROESTLMYR_1stStep failed!

Which is clearly the right thing to do, albeit I would appreciate a more descriptive error (not necessarily with line number) as I find this particular limitation a bit distant from the "as C" mindset.

0 Likes
1 Reply
dipak
Big Boss

Thanks for your suggestion. I do agree with you that compiler error message can be more specific or descriptive such that problem/error can be identified easily. I'll try to convey your suggestion to concern team.

Regards,

0 Likes