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

undefined intrinsic whit the latest version of the compiler (2022.2.0) #1

Open
AuroraPerego opened this issue Nov 22, 2022 · 0 comments

Comments

@AuroraPerego
Copy link
Owner

AuroraPerego commented Nov 22, 2022

Step to reproduce the error:

git clone -b intrinsic-llvm [email protected]:AuroraPerego/pixeltrack-standalone.git
cd pixeltrack-standalone/

in the Makefile change the ONEAPI_BASE to ours

make environment
. env.sh
make -j `nproc` sycl

The error is the following:

InvalidFunctionCall: Unexpected llvm intrinsic:
 llvm.uadd.sat.i8
llvm-foreach:
dpcpp: fatal error: llvm-spirv command failed with exit code 6 (use -v to see invocation)

The line that gives the error is in src/sycl/plugin-PixelVertexFinding/gpuClusterTracksIterative.h line 155:

for (; p < hist->end(be); ++p)

A workaround is to use the flag -fno-sycl-early-optimizations

Note that the same happens with the open source compiler (clang 16.0.0), but didn't happen with dpcpp 2022.1.0

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

1 participant