Bartosz Sochacki
Bartosz Sochacki
Have you tried to output LLVM instead of SPIR-V to check if this is Clang compiler issue or LLVM to SPIR-V converter (https://github.com/KhronosGroup/SPIRV-LLVM/tree/khronos/spirv-3.6.1)?
It may fail. I don't know if this is required.
It's a compiler bug and it should be fixed.
It looks like a bug in the OpenCL C++ clang implementation.
Do you know whether __attribute__ really has any effect in OpenCL C? It is accepted, but maybe it's just ignored. I don't know if packing/aligning separately each element of structure/class...
One more question, have you verified in C++ 14 standard that it's valid syntax ? More precisely, does the C++ 14 standard allow to put attributes in this place for...
Ok, I verified that C++ standard allows to put attributes in this place. So it is a bug in OpenCL C++ compiler.
I think it's a compiler bug and it should be fixed
@fegin can we merge this change?
I believe this issue is not fully solved. It appears again as soon as there is any graph break.