intel / intel-graphics-compiler

Other
606 stars 158 forks source link

SIGSEGV: Pass 'Dead Code Elimination' is not initialized #194

Closed knzivid closed 3 years ago

knzivid commented 3 years ago

On arch linux, I get this error when I clBuildProgram

Pass 'Dead Code Elimination' is not initialized.
Verify if there is a pass dependency cycle.
Required Passes:

The backtrace on the crashing thread

#0  0x00007fc0229fa067 in llvm::PMTopLevelManager::schedulePass(llvm::Pass*) () from /usr/lib/libLLVM-12.so
intel/compute-runtime#1  0x00007fc01655f2b2 in ?? () from /usr/lib/libigc.so.1
intel/compute-runtime#2  0x00007fc0164aeae2 in ?? () from /usr/lib/libigc.so.1
intel/compute-runtime#3  0x00007fc0164b011e in ?? () from /usr/lib/libigc.so.1
intel/compute-runtime#4  0x00007fc01656adfe in ?? () from /usr/lib/libigc.so.1
intel/compute-runtime#5  0x00007fc02f2a583d in ?? () from /usr/lib/intel-opencl/libigdrcl.so
intel/compute-runtime#6  0x00007fc02f0602ae in ?? () from /usr/lib/intel-opencl/libigdrcl.so
intel/compute-runtime#7  0x00007fc02efff6be in ?? () from /usr/lib/intel-opencl/libigdrcl.so
intel/compute-runtime#8  0x00007fc03701f960 in clBuildProgram () from libZividCore.so

These are the related package versions

intel-compute-runtime 21.21.19914-1
intel-gmmlib 21.2.1-1
intel-graphics-compiler 1:1.0.7423-2
intel-media-driver 21.2.3-1
intel-media-sdk 21.2.3-1
intel-opencl-clang 12.0.0-1

I am not able to reproduce this on a Hello World OpenCL program.

JacekDanecki commented 3 years ago

It looks like issue on IGC side, so moving it to https://github.com/intel/intel-graphics-compiler repository

knzivid commented 3 years ago

Thanks for the fix :)

pszymich commented 3 years ago

Happy to help!