On 03/21/2016 07:23 PM, Martin Jambor wrote: > This is strange. The pointer to the shadow data structure is, from > the HSA perspective, a normal kernel argument and therefore should > already be included in the kernel->kernarg_segment_size. Have you > checked that the values are indeed off? Hi Martin. You are right that size of a shadow argument pointer should be included in the kernel->kernarg_segment_size. I've been currently testing a proper patch which conditionally copies shadow argument. Thanks, Martin