-
Notifications
You must be signed in to change notification settings - Fork 752
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
[SYCL][Question]Unexpected call to llvm.is.constant.i64 on Ubuntu 19.10 #2122
Comments
How is this related to MLIR?
I don't think OS version is really matters here, but I suspects that it might be related to C++ development toolchain. What libstdc++/GCC installations are used in both cases? If it's some default version, it looks like new version of the standard C++ library (installed with Ubuntu 19.10) makes use of some compiler built-in function, which DPPC++ compiler is not able to translate to SPIR-V format. |
The error comes from LLVM IR to SPIR-V translator means, that this LLVM intrinsic has no analogs in SPIR-V. @bader @AlexeySotkin that it's not unique issue that users might face, I suggest to add |
I don't think it's a good idea, because resulting SPIR-V won't conform to the spec and most likely will lead to runtime errors, which are much more difficult to analyze. |
In general I agree with @bader. But maybe it makes sense for the user, to have a possibility to use |
Thanks for all provided information. Ubuntu 19.10 GCC info
Ubuntu 18.04 GCC info
|
I think just installing GCC 7 is not enough, clang still picks up the headers from the latest GCC installation. You can confirm that by adding -### to your build command. You can specify GCC toolchain by using |
Thanks @bader , you are right. It picks the latest gcc. With your help, we located the problem to dpcpp using gcc-9. Would you mind to provide a further direction to find out which built-in used in gcc-9 is not recognized by dpcpp? |
|
As |
Hi @bader , could you help to direct me to reproduce the bug using a command? I am still getting familiar with dpcpp, but would like to create a small case to file a bug to support my product soon. Thank you. |
The command should be as simple as |
Will be resolved by the pulldown of KhronosGroup/SPIRV-LLVM-Translator#916. |
(KhronosGroup/SPIRV-LLVM-Translator/intel#2122)' Signed-off-by: Sidorov, Dmitry <dmitry.sidorov@intel.com>
Hi,
May I ask a question as the title described?
When compiling with DPCPP on Ubuntu 19.10, it throws an error message as follows. The same program works fine on Ubuntu 18.04, and I would like to try to write a simple case to reproduce, but I have no idea about under which condition the function will be called, and what makes it an Invalid FunctionCall.
Could you please share same information? Thanks!
InvalidFunctionCall: Unexpected llvm intrinsic: llvm.is.constant.i64 [Src: /xxx/llvm/llvm-spirv/lib/SPIRV/SPIRVWriter.cpp:1997 ]
llvm-foreach:
clang: error: llvm-spirv command failed with exit code 1 (use -v to see invocation)
The text was updated successfully, but these errors were encountered: