You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm currently practicing OpenCL programming by implementing an SHA256. When debugging the kernel code, Oclgrind keeps promoting an error message: Undefined external function: llvm.fshl.i32. I've checked the wiki and it reads that this error ususally comes with misusages of the inline keywork. However, there's no inline in my kernel code.
The Oclgrind instance is freshly built from the latest commit accf518f8623548417c344a0193aa9b531cc9486 with clang version 14.0.6 on ArchLinux. I've attached the kernel code and host code to this issue, any ideas on why this happens?
I suppose the inline instruction is generated by the compiler optimization.
Try running it with --build-options -O0 to turn off the compiler optimizations.
Worked for me.
I'm currently practicing OpenCL programming by implementing an SHA256. When debugging the kernel code, Oclgrind keeps promoting an error message:
Undefined external function: llvm.fshl.i32
. I've checked the wiki and it reads that this error ususally comes with misusages of the inline keywork. However, there's no inline in my kernel code.The Oclgrind instance is freshly built from the latest commit
accf518f8623548417c344a0193aa9b531cc9486
with clang version 14.0.6 on ArchLinux. I've attached the kernel code and host code to this issue, any ideas on why this happens?Attachment: sha256_opencl.zip
The text was updated successfully, but these errors were encountered: