Closed zboszor closed 2 years ago
looks good. I have forwarded it to meta-intel upstream directly. If its not accepted we will apply it to our fork.
looks good. I have forwarded it to meta-intel upstream directly. If its not accepted we will apply it to our fork.
I sent it to the proper mailing list but in the meantime it turned out it's not enough to get everything build with LLVM 13.
opencl-clang
needs a version 13.0.0 recipe from the ocl-open-130
branch, which in turn seems to need https://github.com/intel/opencl-clang/pull/273
I will experiment further on Monday.
The new IGC version seems to need more recipe changes, it fails in do_configure
:(
The new IGC version now compiles but still fails to build intel-compute-runtime with LLVM 13
I am carrying https://github.com/YoeDistro/meta-intel/commit/f36dea1c17b75b3245694582efff96a00b4d6ffd in yoe/mut
do we still need this ?
I am carrying f36dea1 in
yoe/mut
do we still need this ?
It was an experiment on my side, still fails to build. I abandoned this PR and let the Intel guys to solve their stuff. They seem to be progressing.
This seems to compile now with the current latest commits from vc-intrinsics, IGC and compute-runtime. I haven't tested correct operation yet.
ocloc
still crashes when run via qemuwrapper when compiling compute-runtime without -DNEO_DISABLE_BUILTINS_COMPILATION=1
.
Manual run shows this backtrace without source lines:
[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]
Maybe a newer release/13.x is required in meta-clang? I saw two crash fixes there that may or may not fix the crash in compute-runtime. @kraj
Also add CXXFLAGS=-Wno-error=deprecated-declarations, to turn some deprecated LLVM API usage from warnings to errors.
Signed-off-by: Zoltán Böszörményi zboszor@gmail.com
Fixes #3