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

InvalidFunctionCall: Unexpected llvm intrinsic: 7> llvm.vector.reduce.or.v4i8 #1631

Closed
biggysmith opened this issue Sep 29, 2022 · 2 comments

Comments

@biggysmith
Copy link

Hi,

I've been getting this error when translating some kernels:

InvalidFunctionCall: Unexpected llvm intrinsic:
7> llvm.vector.reduce.or.v4i8

Is this a supported function?

@MrSidims
Copy link
Contributor

Hi, unfortunately there is no SPIR-V counterpart for this intrinsic to translate it appropriately. But still you can pass '--spirv-allow-unknown-intrinsics' option to the translator, in this case it will emit a regular function call in SPIR-V. In general it's not a good idea to add this option by default, since there is no guarantee the the device's SPIR-V consumer would support such intrinsic, but may it it would help in your case.

@MrSidims
Copy link
Contributor

Resolved by emulation of the intrinsic in #2198

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

2 participants