Skip to content

Commit

Permalink
intel-opencl-clang: Enable shared libraries
Browse files Browse the repository at this point in the history
It hapens that later-on IGC builds-up a compile-time tool called
CMCLTranslatorTool which isn't built for 'NATIVE' and rather
requires enforcing loading libLLVMGenXIntrinsics.so from
intel-vc-intrinsincs.  In turn, when built "static" (default mode),
libLLVMGenXIntrinsics.so ends-up containing llvm libraries as well,
which in turns CMCLTranslatorTool also contain, leading to a duplicate
existance of similar calls, thus segfaulting core-dump.

Note that loading build resulting libraries for this CMCLTranslatorTool
really is an ugly hack that can only work for x86_64 built on x86_64
with compatible C libraries.
  • Loading branch information
th0ma7 committed Jul 30, 2024
1 parent e3eec1b commit 35b4ccd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cross/intel-opencl-clang-140/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,8 @@ CMAKE_ARGS += -DLLVM_ENABLE_ASSERTIONS=OFF
# as a shared library, you should use the
# LLVM_BUILD_LLVM_DYLIB option
CMAKE_ARGS += -DBUILD_SHARED_LIBS=OFF
CMAKE_ARGS += -DLLVM_BUILD_LLVM_DYLIB=ON
CMAKE_ARGS += -DLLVM_LINK_LLVM_DYLIB=ON

# Disable third-party benchmarks and unittest
# as not-included in build and fails
Expand Down

0 comments on commit 35b4ccd

Please sign in to comment.