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

ocloc crashes with LLVM 13 #204

Closed
zboszor opened this issue Sep 14, 2021 · 22 comments
Closed

ocloc crashes with LLVM 13 #204

zboszor opened this issue Sep 14, 2021 · 22 comments
Assignees

Comments

@zboszor
Copy link
Contributor

zboszor commented Sep 14, 2021

I have a (not really usable) backtrace from running ocloc via a qemu wrapper when building under Yocto 3.4 with LLVM 13 from meta-clang.

$ cd /data/dtd-yocto-3.4/tmp-sicom-glibc/work/corei7-64-oe-linux/intel-compute-runtime/21.36.20889-r0/git/shared/source/built_ins/kernels
$ PATH=/data/dtd-yocto-3.4/tmp-sicom-glibc/work/corei7-64-oe-linux/intel-compute-runtime/21.36.20889-r0/recipe-sysroot-native/bin:/data/dtd-yocto-3.4/tmp-sicom-glibc/work/corei7-64-oe-linux/intel-compute-runtime/21.36.20889-r0/recipe-sysroot-native/sbin:/data/dtd-yocto-3.4/tmp-sicom-glibc/work/corei7-64-oe-linux/intel-compute-runtime/21.36.20889-r0/recipe-sysroot-native/usr/bin:/data/dtd-yocto-3.4/tmp-sicom-glibc/work/corei7-64-oe-linux/intel-compute-runtime/21.36.20889-r0/recipe-sysroot-native/usr/sbin /data/dtd-yocto-3.4/tmp-sicom-glibc/work/corei7-64-oe-linux/intel-compute-runtime/21.36.20889-r0/qemuwrapper /data/dtd-yocto-3.4/tmp-sicom-glibc/work/corei7-64-oe-linux/intel-compute-runtime/21.36.20889-r0/build/bin/ocloc -q -file /data/dtd-yocto-3.4/tmp-sicom-glibc/work/corei7-64-oe-linux/intel-compute-runtime/21.36.20889-r0/build/bin/built_ins/x64/gen12lp/bindful_copy_buffer_to_buffer_stateless_Gen12LPlp.spv -spirv_input -device tgllp -cl-intel-greater-than-4GB-buffer-required -64 -output bindful_copy_buffer_to_buffer_stateless_0 -out_dir /data/dtd-yocto-3.4/tmp-sicom-glibc/work/corei7-64-oe-linux/intel-compute-runtime/21.36.20889-r0/build/bin/built_ins/x64/gen12lp -revision_id 0 -options -cl-kernel-arg-info
[0]: /data/dtd-yocto-3.4/tmp-sicom-glibc/work/corei7-64-oe-linux/intel-compute-runtime/21.36.20889-r0/build/bin/libocloc.so(+0x7f3f0) [0x40018bb3f0]
[1]: /data/dtd-yocto-3.4/tmp-sicom-glibc/work/corei7-64-oe-linux/intel-compute-runtime/21.36.20889-r0/recipe-sysroot/usr/lib/libc.so.6(+0x41930) [0x400193e930]
[2]: /data/dtd-yocto-3.4/tmp-sicom-glibc/work/corei7-64-oe-linux/intel-compute-runtime/21.36.20889-r0/recipe-sysroot/usr/lib/libLLVM-13.so(_ZN4llvm11PointerType3getEPNS_4TypeEj+0x20) [0x40048009a0]
[3]: /data/dtd-yocto-3.4/tmp-sicom-glibc/work/corei7-64-oe-linux/intel-compute-runtime/21.36.20889-r0/recipe-sysroot/usr/lib/libigc.so.1(+0x2b20e5) [0x40020b90e5]
[4]: /data/dtd-yocto-3.4/tmp-sicom-glibc/work/corei7-64-oe-linux/intel-compute-runtime/21.36.20889-r0/recipe-sysroot/usr/lib/libigc.so.1(+0x2cf642) [0x40020d6642]
[5]: /data/dtd-yocto-3.4/tmp-sicom-glibc/work/corei7-64-oe-linux/intel-compute-runtime/21.36.20889-r0/recipe-sysroot/usr/lib/libigc.so.1(+0x2d2b11) [0x40020d9b11]
[6]: /data/dtd-yocto-3.4/tmp-sicom-glibc/work/corei7-64-oe-linux/intel-compute-runtime/21.36.20889-r0/recipe-sysroot/usr/lib/libigc.so.1(+0x2d8588) [0x40020df588]
[7]: /data/dtd-yocto-3.4/tmp-sicom-glibc/work/corei7-64-oe-linux/intel-compute-runtime/21.36.20889-r0/recipe-sysroot/usr/lib/libigc.so.1(+0x2ddf9f) [0x40020e4f9f]
[8]: /data/dtd-yocto-3.4/tmp-sicom-glibc/work/corei7-64-oe-linux/intel-compute-runtime/21.36.20889-r0/recipe-sysroot/usr/lib/libigc.so.1(+0x2dea98) [0x40020e5a98]
[9]: /data/dtd-yocto-3.4/tmp-sicom-glibc/work/corei7-64-oe-linux/intel-compute-runtime/21.36.20889-r0/recipe-sysroot/usr/lib/libigc.so.1(+0x219d78) [0x4002020d78]
[10]: /data/dtd-yocto-3.4/tmp-sicom-glibc/work/corei7-64-oe-linux/intel-compute-runtime/21.36.20889-r0/recipe-sysroot/usr/lib/libigc.so.1(+0x21cada) [0x4002023ada]
[11]: /data/dtd-yocto-3.4/tmp-sicom-glibc/work/corei7-64-oe-linux/intel-compute-runtime/21.36.20889-r0/recipe-sysroot/usr/lib/libigc.so.1(+0x21ddaa) [0x4002024daa]
[12]: /data/dtd-yocto-3.4/tmp-sicom-glibc/work/corei7-64-oe-linux/intel-compute-runtime/21.36.20889-r0/recipe-sysroot/usr/lib/libigc.so.1(+0x2ec6ee) [0x40020f36ee]
[13]: /data/dtd-yocto-3.4/tmp-sicom-glibc/work/corei7-64-oe-linux/intel-compute-runtime/21.36.20889-r0/recipe-sysroot/usr/lib/libigc.so.1(+0x2ed59f) [0x40020f459f]
[14]: /data/dtd-yocto-3.4/tmp-sicom-glibc/work/corei7-64-oe-linux/intel-compute-runtime/21.36.20889-r0/build/bin/libocloc.so(_ZN3NEO15OfflineCompiler15buildSourceCodeEv+0x23b) [0x400188e3db]
[15]: /data/dtd-yocto-3.4/tmp-sicom-glibc/work/corei7-64-oe-linux/intel-compute-runtime/21.36.20889-r0/build/bin/libocloc.so(_ZN3NEO15OfflineCompiler5buildEv+0x45) [0x4001892e15]
[16]: /data/dtd-yocto-3.4/tmp-sicom-glibc/work/corei7-64-oe-linux/intel-compute-runtime/21.36.20889-r0/build/bin/libocloc.so(+0x7f499) [0x40018bb499]
[17]: /data/dtd-yocto-3.4/tmp-sicom-glibc/work/corei7-64-oe-linux/intel-compute-runtime/21.36.20889-r0/build/bin/libocloc.so(_Z20buildWithSafetyGuardPN3NEO15OfflineCompilerE+0xba) [0x40018bb34a]
[18]: /data/dtd-yocto-3.4/tmp-sicom-glibc/work/corei7-64-oe-linux/intel-compute-runtime/21.36.20889-r0/build/bin/libocloc.so(oclocInvoke+0xc3b) [0x400187e5eb]
[19]: /data/dtd-yocto-3.4/tmp-sicom-glibc/work/corei7-64-oe-linux/intel-compute-runtime/21.36.20889-r0/build/bin/ocloc(main+0x23) [0x4000000753]
[20]: /data/dtd-yocto-3.4/tmp-sicom-glibc/work/corei7-64-oe-linux/intel-compute-runtime/21.36.20889-r0/recipe-sysroot/usr/lib/libc.so.6(+0x2d51b) [0x400192a51b]
[21]: /data/dtd-yocto-3.4/tmp-sicom-glibc/work/corei7-64-oe-linux/intel-compute-runtime/21.36.20889-r0/recipe-sysroot/usr/lib/libc.so.6(__libc_start_main+0x7c) [0x400192a5cc]
[22]: /data/dtd-yocto-3.4/tmp-sicom-glibc/work/corei7-64-oe-linux/intel-compute-runtime/21.36.20889-r0/build/bin/ocloc(_start+0x25) [0x4000000785]
qemu: uncaught target signal 6 (Aborted) - core dumped
/data/dtd-yocto-3.4/tmp-sicom-glibc/work/corei7-64-oe-linux/intel-compute-runtime/21.36.20889-r0/qemuwrapper: line 2: 3885868 Aborted                 (core dumped) PSEUDO_UNLOAD=1 qemu-x86_64 -r 3.2.0 -cpu Nehalem,check=false -L /data/dtd-yocto-3.4/tmp-sicom-glibc/work/corei7-64-oe-linux/intel-compute-runtime/21.36.20889-r0/recipe-sysroot -E LD_LIBRARY_PATH=/data/dtd-yocto-3.4/tmp-sicom-glibc/work/corei7-64-oe-linux/intel-compute-runtime/21.36.20889-r0/build/bin:/data/dtd-yocto-3.4/tmp-sicom-glibc/work/corei7-64-oe-linux/intel-compute-runtime/21.36.20889-r0/recipe-sysroot/usr/lib:/data/dtd-yocto-3.4/tmp-sicom-glibc/work/corei7-64-oe-linux/intel-compute-runtime/21.36.20889-r0/recipe-sysroot/usr/lib "$@"

Currently I can only build the latest IGC+compute-runtime via a forked meta-intel Yocto layer if I use -DNEO_DISABLE_BUILTINS_COMPILATION=1 with LLVM 13.

@JacekDanecki
Copy link

This looks like an issue on IGC side, which according to build_ubuntu.md currently supports llvm 11 at production quality and llvm 12 as experimental. As I can see in IGC commit history support for llvm 13 is under development.
Transferring issue to IGC project.

@JacekDanecki JacekDanecki transferred this issue from intel/compute-runtime Sep 14, 2021
@pszymich
Copy link
Contributor

Hi @zboszor,
I've put your issue on hold in the LLVM 13 support project. When we unclog VectorCompiler build I will look into this.

Please note build_ubuntu.md doc is slightly out-of-date with refactor coming; for current up-to-date LLVM version support information please visit our projects page: https://github.com/intel/intel-graphics-compiler/projects.

@pszymich pszymich self-assigned this Sep 16, 2021
kraj pushed a commit to YoeDistro/meta-intel that referenced this issue Oct 25, 2021
Builtins throw compilation failure. So disable for now, until
fixed.

intel/intel-graphics-compiler#204

Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
@eero-t
Copy link

eero-t commented Nov 11, 2021

What are the versions of the dependencies other than LLVM?

Why the build is done under (x86_64) Qemu, and what additional limitations (e.g. RAM) it sets on the build environment?

Can you reproduce ocloc crash without Qemu (e.g. in a docker container, if you want build to be isolated)?

@foutrelis
Copy link

foutrelis commented Nov 12, 2021

Traced it to llvm/llvm-project@b00cff5 and verified that reverting that commit on top of LLVM 13.0.0 avoids the ocloc crash.

It seems that IGC should not pass nullptr to "GetElementPtrInst::Create() (and IRBuilder methods based on it)" in order to work with LLVM 13.

Edit: The above allowed me to remove NEO_DISABLE_BUILTINS_COMPILATION=ON but when dropping SKIP_UNIT_TESTS=1 as well, I get a different ocloc crash:

Edit 2: Digging further into the second crash, it appears to crash here because T is null. The TargetRegistry::lookupTarget call sets Err to No available targets are compatible with triple "vISA_64".

[root@build test_modules]# LD_LIBRARY_PATH=/build/intel-compute-runtime/src/build/bin /build/intel-compute-runtime/src/build/bin/ocloc -q -file test_kernel.cl -device glk -out_dir /build/intel-compute-runtime/src/build/bin/level_zero/Gen9lp/test_files/x64/ -options -g
[0]: /build/intel-compute-runtime/src/build/bin/libocloc.so(_ZN16SafetyGuardLinux9sigActionEiP9siginfo_tPv+0x39) [0x7f85fe336259]
[1]: /usr/lib/libc.so.6(+0x3cda0) [0x7f85fe0eada0]
[2]: /usr/lib/libigc.so.1(+0x850d46) [0x7f85efc13d46]
[3]: /usr/lib/libigc.so.1(+0x8488f5) [0x7f85efc0b8f5]
[4]: /usr/lib/libigc.so.1(+0x571ba3) [0x7f85ef934ba3]
[5]: /usr/lib/libLLVM-13.so(_ZN4llvm13FPPassManager13runOnFunctionERNS_8FunctionE+0x430) [0x7f85f804c8d0]
[6]: /usr/lib/libLLVM-13.so(_ZN4llvm13FPPassManager11runOnModuleERNS_6ModuleE+0x2c) [0x7f85f804ca3c]
[7]: /usr/lib/libLLVM-13.so(_ZN4llvm6legacy15PassManagerImpl3runERNS_6ModuleE+0x3fa) [0x7f85f804e25a]
[8]: /usr/lib/libigc.so.1(+0x3a5e6f) [0x7f85ef768e6f]
[9]: /usr/lib/libigc.so.1(+0x3781da) [0x7f85ef73b1da]
[10]: /usr/lib/libigc.so.1(+0x22ad37) [0x7f85ef5edd37]
[11]: /usr/lib/libigc.so.1(+0x2fe887) [0x7f85ef6c1887]
[12]: /usr/lib/libigc.so.1(+0x2ff75f) [0x7f85ef6c275f]
[13]: /build/intel-compute-runtime/src/build/bin/libocloc.so(_ZN3NEO15OfflineCompiler15buildSourceCodeEv+0x678) [0x7f85fe2f7b78]
[14]: /build/intel-compute-runtime/src/build/bin/libocloc.so(_ZN3NEO15OfflineCompiler5buildEv+0x5c) [0x7f85fe2fcd7c]
[15]: /build/intel-compute-runtime/src/build/bin/libocloc.so(_ZN16SafetyGuardLinux4callIiN3NEO15OfflineCompilerEMS2_FivEEET_PT0_T1_S5_+0x50) [0x7f85fe336320]
[16]: /build/intel-compute-runtime/src/build/bin/libocloc.so(_Z20buildWithSafetyGuardPN3NEO15OfflineCompilerE+0xc9) [0x7f85fe3361a9]
[17]: /build/intel-compute-runtime/src/build/bin/libocloc.so(oclocInvoke+0x642) [0x7f85fe2dfc02]
[18]: /build/intel-compute-runtime/src/build/bin/ocloc(main+0x2a) [0x557a3fb0475a]
[19]: /usr/lib/libc.so.6(__libc_start_main+0xd5) [0x7f85fe0d5b25]
[20]: /build/intel-compute-runtime/src/build/bin/ocloc(_start+0x2e) [0x557a3fb0479e]
Aborted (core dumped)

The three top-most symbols from libigc.so.1 appear to be:

(gdb) info symbol 0x850d46
IGC::StreamEmitter::StreamEmitter(llvm::raw_pwrite_stream&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, IGC::DebugEmitterOpts const&) + 646 in section .text
(gdb) info symbol 0x8488f5
IGC::DebugEmitter::Initialize(std::unique_ptr<IGC::VISAModule, std::default_delete<IGC::VISAModule> >, IGC::DebugEmitterOpts const&) + 229 in section .text
(gdb) info symbol 0x571ba3
IGC::EmitPass::runOnFunction(llvm::Function&) + 7891 in section .text

archlinux-github pushed a commit to archlinux/svntogit-packages that referenced this issue Nov 12, 2021
This is a temporary workaround until intel-graphics-compiler is fixed.

intel/intel-graphics-compiler#204


git-svn-id: file:///srv/repos/svn-packages/svn@427924 eb2447ed-0c53-47e4-bac8-5bc4a241df78
archlinux-github pushed a commit to archlinux/svntogit-packages that referenced this issue Nov 12, 2021
This is a temporary workaround until intel-graphics-compiler is fixed.

intel/intel-graphics-compiler#204

git-svn-id: file:///srv/repos/svn-packages/svn@427924 eb2447ed-0c53-47e4-bac8-5bc4a241df78
archlinux-github pushed a commit to archlinux/svntogit-community that referenced this issue Nov 12, 2021
In relation to intel/intel-graphics-compiler#204

git-svn-id: file:///srv/repos/svn-community/svn@1044810 9fca08f4-af9d-4005-b8df-a31f2cc04f65
archlinux-github pushed a commit to archlinux/svntogit-community that referenced this issue Nov 12, 2021
In relation to intel/intel-graphics-compiler#204


git-svn-id: file:///srv/repos/svn-community/svn@1044810 9fca08f4-af9d-4005-b8df-a31f2cc04f65
@zboszor
Copy link
Contributor Author

zboszor commented Nov 13, 2021

What are the versions of the dependencies other than LLVM?

The versions are in the honister and current master branches of Yocto's openembedded-core, meta-openembedded, meta-clang and meta-intel.

Why the build is done under (x86_64) Qemu, and what additional limitations (e.g. RAM) it sets on the build environment?

Because in a cross-compiling environment (e.g. Yocto) you have two ways to deal with executables built and run during the build: either use a host-native build variant and use the executables from that (which does not work if the executable relies on type sizes and the host and target are different), or use a Qemu wrapper (e.g. with -DCMAKE_CROSSCOMPILING_EMULATOR=... and just do the complete build for the target architecture.

As far as I know, the qemu-native build Yocto uses for this purpose doesn't limit RAM, it simply allocates from the host system as needed. The target binaries are run just like any regular user-space binary only via the CPU emulator.

Can you reproduce ocloc crash without Qemu (e.g. in a docker container, if you want build to be isolated)?

According to the above Arch Linux commits, the answer is yes.

@zboszor
Copy link
Contributor Author

zboszor commented Jan 8, 2022

Traced it to llvm/llvm-project@b00cff5 and verified that reverting that commit on top of LLVM 13.0.0 avoids the ocloc crash.

It seems that IGC should not pass nullptr to "GetElementPtrInst::Create() (and IRBuilder methods based on it)" in order to work with LLVM 13.

And here's the reasoning from LLVM devs: https://reviews.llvm.org/D105653?id=357321
There are 11 locations currently in IGC that use GetElementPtrInst::Create(nullptr, ...)

Edit: The above allowed me to remove NEO_DISABLE_BUILTINS_COMPILATION=ON but when dropping SKIP_UNIT_TESTS=1 as well, I get a different ocloc crash:

Edit 2: Digging further into the second crash, it appears to crash here because T is null. The TargetRegistry::lookupTarget call sets Err to No available targets are compatible with triple "vISA_64".

@zboszor
Copy link
Contributor Author

zboszor commented Jan 9, 2022

Edit 2: Digging further into the second crash, it appears to crash here because T is null. The TargetRegistry::lookupTarget call sets Err to No available targets are compatible with triple "vISA_64".

IGC calls TargetRegistry::RegisterTarget() twice in IGC/VectorCompiler/lib/GenXCodeGen/TargetInfo/GenXTargetInfo.cpp with target/backend names "genx32" and "genx64", respectively, but doesn't provide the function for the 5th argument Target::ArchMatchFnTy ArchMatchFn so VISAModule::m_triple == "vISA_64" can't be matched as a compatible machine triple.

Alternatively, the "machine triple" setting:

./IGC/DebugInfo/VISAModule.hpp:356:        std::string m_triple = "vISA_64";

should be std::string m_triple = "genx64"; instead.

@zboszor
Copy link
Contributor Author

zboszor commented Mar 28, 2022

LLVM 14 was also released.

@frantisekz
Copy link
Contributor

@pszymich sorry for plainly asking, is this planned to be worked on? Do you have any rough estimates? Unfortunately, reverting the offending LLVM 13 change is a no go for Fedora, so compute-runtime support in Fedora depends on this issue.

@jike212
Copy link

jike212 commented Apr 5, 2022

Just wanted to echo @frantisekz to see if there might be a timeline for resolution on this. It would be great to see this in time for Fedora 36 particularly given that large hardware vendors like Lenovo offer Fedora as a supported OS installed out of the box.

@janhenke
Copy link

Gentoo also removed LLVM 11 from the distribution this week and LLVM 13 is the current default version. This bug has hit multiple users (including myself). It would be rather important to get this one fixed, as even a plain clinfo call leads to a segfault now. Downstream bug: https://bugs.gentoo.org/837872

@eero-t
Copy link

eero-t commented Apr 28, 2022

@janhenke Is there a problem also with LLVM 12, or does it work as intermediate solution?

It's marked as working, but not tested by compute-runtime project as well as LLVM 11: https://github.com/intel/intel-graphics-compiler/projects/2

In my own light testing of my own LLVM 12 build, it worked OK too.

@janhenke
Copy link

janhenke commented Apr 28, 2022

We jumped directly from 11 to 13, so I do not have any test results from 12. As well as some parts of the stack based on LLVM also got removed already. Anyway getting it to work on 13 is rather urgent, as some distributions are following LLVM releases rather closely and keep at most 2-3 releases in their repos (Gentoo is already working towards removing LLVM 12 as said above).
That being said, supporting LLVM 14 is already an open issue as it is the most recent release.

@rathann
Copy link

rathann commented Apr 28, 2022

FWIW, LLVM 14 is already in the soon-to-be-released Fedora 36.

@eero-t
Copy link

eero-t commented Apr 29, 2022

We jumped directly from 11 to 13
...
some distributions are following LLVM releases rather closely and keep at most 2-3 releases in their repos

I wonder whether it makes sense for compute-runtime to skip every other LLVM release, and concentrate support only e.g. to odd numbered LLVM releases (11, 13, 15...). Any comments on this from the distro perspective, and from compute-runtime developers?

@rathann
Copy link

rathann commented Apr 29, 2022

From Fedora perspective, we are tracking the latest LLVM releases. While it's possible to maintain a compatibility package with the previous version, having the compute-runtime link against older version might cause trouble if the application using it is linked against the latest LLVM libraries (i.e. you get two different LLVM runtimes loaded in the same process).

ConiKost added a commit to ConiKost/gentoo that referenced this issue Apr 29, 2022
Compiling with LLVM13 causes currently segfaults.
See intel/intel-graphics-compiler#204

Closes: https://bugs.gentoo.org/837872
Signed-off-by: Conrad Kostecki <conikost@gentoo.org>
ConiKost added a commit to ConiKost/gentoo that referenced this issue Apr 29, 2022
Compiling with LLVM13 causes currently segfaults.
See intel/intel-graphics-compiler#204

Closes: https://bugs.gentoo.org/837872
Signed-off-by: Conrad Kostecki <conikost@gentoo.org>
@ConiKost
Copy link
Contributor

In Gentoo, we have an approch of slotted versions, which means, someone can install independently multiple major versions of LLVM and Clang, which all can co-exist. But maintainers will drop older version. We currently have LLVM12 as lowest version, but in future, this one will be dropped.. LLVM11 just got dropped two weeks ago. So LLVM13 support would be very appreciated.

ConiKost added a commit to ConiKost/gentoo that referenced this issue Apr 30, 2022
Compiling with LLVM13 causes currently segfaults.
See intel/intel-graphics-compiler#204

Closes: https://bugs.gentoo.org/837872
Signed-off-by: Conrad Kostecki <conikost@gentoo.org>
gentoo-bot pushed a commit to gentoo/gentoo that referenced this issue May 1, 2022
Compiling with LLVM13 causes currently segfaults.
See intel/intel-graphics-compiler#204

Closes: https://bugs.gentoo.org/837872
Signed-off-by: Conrad Kostecki <conikost@gentoo.org>
Signed-off-by: Sam James <sam@gentoo.org>
@anujm1
Copy link
Contributor

anujm1 commented May 19, 2022

I don't see this with the latest commits on master. Perhaps fixed by 73a32f0 and 84e9ea6 ?

@zboszor
Copy link
Contributor Author

zboszor commented May 19, 2022

I don't see this with the latest commits on master. Perhaps fixed by 73a32f0 and 84e9ea6 ?

It certainly seems so. There is no tagged release yet containing those commits, though.
Hopefully it will work with LLVM 14.0.x and 15, too.

@ConiKost
Copy link
Contributor

I don't see this with the latest commits on master. Perhaps fixed by 73a32f0 and 84e9ea6 ?

It looks like, that this is the case. I tried latest git master and it works for me with LLVM13 now. No segfaults with clinfo.

Hopefully it will work with LLVM 14.0.x and 15, too.

As there is a PR for LLVM 14, I wouldn't expect this.

kraj pushed a commit to YoeDistro/meta-intel that referenced this issue May 19, 2022
Backport LLVM 13 fixes from upstream. This fixes the crashes when
invoking ocloc after enabling built-ins in compute-runtime.

Also see:
intel/intel-graphics-compiler#204

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
@eero-t
Copy link

eero-t commented May 24, 2022

I don't see this with the latest commits on master. Perhaps fixed by 73a32f0 and 84e9ea6 ?

It certainly seems so. There is no tagged release yet containing those commits, though.

Today's IGC release CommitDate is from 11th, and those commits are from 17th (of May). So I assume they will be in next release after that.

@pszymich
Copy link
Contributor

Fixed in latest commits, closing.

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