Forum Discussion
Hi Hiroto,
so according to the documentation I can pass structure parameters in OpenCL kernels by value.
But the emulator fails in compiling it (see my first post). Why is this happening?
This occur even if I disable the automatic alignment by using the packed attribute (in any case, the alignment is 1 byte being the struct composed by 2 chars).
Thanks
Hi, tde_m,
Yes, you are right.
BTW, could you like to test with -fast-emulator flag ?
Intel recommends when emulating kernel code, you add -fast-emulator for 18.1 and later.
https://www.intel.com/content/www/us/en/programmable/documentation/mwh1391807965224.html#hzx1553406416602
On my side, the code you posted firstly completed compiling successfully.
Only -march=emulator mode is legacy now and it is possibility that the issue was reported and has been resolved when migrating from lagacy emulator to fast emulator.
If so, I could not get the answer why, sorry.