Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Still get 'Undefined external function: llvm.fshl.i32' error without inline keyword #205

Open
TommyJerryMairo opened this issue Nov 20, 2022 · 2 comments

Comments

@TommyJerryMairo
Copy link

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

@Dolaned
Copy link

Dolaned commented Dec 11, 2022

also having this issue

@olepoeschl
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants