From 36dbaacfcb226cc1ef38bfbf03d0fb4c8a549f3c Mon Sep 17 00:00:00 2001 From: Anuj Mittal Date: Fri, 22 Oct 2021 15:12:41 +0800 Subject: intel-graphics-compiler: enable VectorCompiler Use the option to use Khronos translator instead of the pre-built SPIRVDLL with VC. Also have the native recipe install a binary needed for the target builds. Signed-off-by: Anuj Mittal Signed-off-by: Naveen Saini Signed-off-by: Anuj Mittal --- .../recipes-opencl/igc/intel-graphics-compiler_1.0.8744.bb | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'dynamic-layers/clang-layer/recipes-opencl/igc/intel-graphics-compiler_1.0.8744.bb') diff --git a/dynamic-layers/clang-layer/recipes-opencl/igc/intel-graphics-compiler_1.0.8744.bb b/dynamic-layers/clang-layer/recipes-opencl/igc/intel-graphics-compiler_1.0.8744.bb index 1469bc14..9ed828bc 100644 --- a/dynamic-layers/clang-layer/recipes-opencl/igc/intel-graphics-compiler_1.0.8744.bb +++ b/dynamic-layers/clang-layer/recipes-opencl/igc/intel-graphics-compiler_1.0.8744.bb @@ -13,6 +13,7 @@ SRC_URI = "git://github.com/intel/intel-graphics-compiler.git;protocol=https;nam file://0001-llvm_deps.cmake-don-t-copy-header-file-when-building.patch \ file://0003-Improve-Reproducibility-for-src-package.patch \ file://0004-find-external-llvm-tblgen.patch \ + file://0001-BiF-CMakeLists.txt-remove-opt-from-DEPENDS.patch \ " SRCREV_igc = "3ba8dde8c414a0e47df58b1bba12a64f8ba2089e" @@ -40,12 +41,16 @@ EXTRA_OECMAKE = " \ -DPYTHON_EXECUTABLE=${HOSTTOOLS_DIR}/python3 \ -DVC_INTRINSICS_SRC="${S}/vc-intrinsics" \ -DIGC_OPTION__LLVM_MODE=Prebuilds \ - -DIGC_BUILD__VC_ENABLED=OFF \ + -DIGC_BUILD__VC_ENABLED=ON \ + -DIGC_OPTION__LINK_KHRONOS_SPIRV_TRANSLATOR=ON \ + -DIGC_OPTION__USE_KHRONOS_SPIRV_TRANSLATOR_IN_VC=ON \ + -DIGC_OPTION__SPIRV_TRANSLATOR_MODE=Prebuilds \ " do_install:append:class-native () { install -d ${D}${bindir} install ${B}/IGC/Release/elf_packager ${D}${bindir}/ + install ${B}/IGC/Release/CMCLTranslatorTool ${D}${bindir}/ } BBCLASSEXTEND = "native nativesdk" -- cgit v1.2.3-54-g00ecf