-
Notifications
You must be signed in to change notification settings - Fork 171
Compiler crashing on my OpenCL kernel #207
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
Comments
Moving to IGC project |
@sudden6 , could you please provide branch name and commits of opencl-clang, SPIRV-LLVM-Translator and llvm you are using? Thanks very much. |
SPIRV-LLVM Translator commit: 4d43f68a30a510b4e7607351caab3df8e7426a6b opencl-clang Tag: 10.0.0-2 I'm not sure what LLVM commit is used in the package. I'd be also happy to hear if my code compiles on the newest master branches. |
Hi, @sudden6. When try to build IGC from source or prebuild, there are some build errors. Could you please kindly offer more details about IGC build since I am not familiar with the env setting on opensuse?
|
@haonanya I don't really now the exact build setup, since I just installed the package that's linked in DISTRIBUTIONS.md If you can confirm that the kernel successfully compiles on some other platform or with latest master I'd be happy to close this issue and try that platform. |
Hi, @sudden6. I am using llvm11.0.1, latest opencl-clang 11branch and SPIRV llvm_release_110 source build. I got the similar crash information:
#0 0x0000000003837ed6 llvm::sys::PrintStackTrace(llvm::raw_ostream&) /export/users/haonanya/ocl-clang-110/llvm/lib/Support/Unix/Signals.inc:564:22 |
Small reproducer is attached. |
I file an issue llvm/llvm-project#53436. |
@haonanya Thank you very much! |
Hi, due to comments in llvm/llvm-project#53436 refering to invalid kernel I'm closing the issue. |
I'm trying to build the kernel clqueens.cl.txt, but the Intel OpenCL compiler causes a segmentation fault, see backtrace.txt
Release is from: https://github.com/intel/compute-runtime/blob/master/opencl/doc/DISTRIBUTIONS.md#opensuse-leap-153 version 1.0.8708-1.suse.lp153
The kernel should be valid OpenCL C 2.0 and 3.0, the AMD OpenCL compiler based LLVM seems to have no issue with it. In case you find it invalid, I'd expect the compiler to reject the kernel with an error message and not crash.
The text was updated successfully, but these errors were encountered: