What is the best way to define structs that are shared by multiple .cl files ?
I develop a software that uses OpenCL with Apple Xcode tools, and Xcode generates .h automatically.
It doesn’t work if I put all my struct definitions into a unique header file and includes it over all the required kernel files (even if the header file is protected by macro). I get a semantic issue due to struct redefinition.
Typedef didn’t help.
The XCode OpenCL integrated compiler is really great, but is there a way to do not have to replicate the same structs with different names over all my .cl files ? I didn’t find any answer to this particular problem.
Thanks a lot by advance,