Open linehill opened 1 year ago
Hi @linehill,
I think the if-condition should be tid == 0
in bug.spv
, right?
I think the if-condition should be tid == 0 in bug.spv, right?
Yes, that's correct. I fixed the description.
A patch for this bug has been submitted into the internal repo, please wait for next release. Thanks for catching this subtle bug!
(Not sure if this is the correct place for this issue)
I have two SPIR-V module, a working one
nobug.spv
which has following kernels in pseudo OpenCL:And failing one
bug.spv
which is the same butreadFoo
is defined as (in pseudo code):The attached OpenCL test application
bug.cpp
fails withbug.spv
but passes withnobug.spv
on Intel OpenCL CPU:The issue is affected by https://github.com/CHIP-SPV/chip-spv/issues/215.
Environment:
repro.zip