Open athas opened 2 years ago
Through bisection I have confirmed that 16a4f20981a94ec6d65d2d5620d338d473947788 is the commit that introduces this bug.
As a workaround, I can pass -O1
as an OpenCL build option. It seems to only be -Oz
that produces these interesting constants.
I'm getting this error on Oclgrind 21.10 with rather simple kernels, e.g. this one:
This is a contrived kernel derived from a much larger example. Interestingly, the original kernel triggered a complaint about the constant being 9 bytes.
I'm not sure whether this is a compatibility problem with the wrong version of LLVM. It happens with the Oclgrind packaged in Ubuntu 21.04, but I am not sure which LLVM it is linked against.