From e16f430ecc92c51646d9dcfc74a0d46e575ae5be Mon Sep 17 00:00:00 2001 From: Jaroslaw Chodor Date: Thu, 27 Aug 2020 15:01:32 +0200 Subject: [PATCH] Pass flag to IGC to allow zebin in L0 Change-Id: I8793c4e58966a5527b1d1f37bf0b54f03bf1f976 --- level_zero/core/source/module/module_imp.cpp | 2 +- .../compiler_interface/compiler_options/compiler_options_base.h | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/level_zero/core/source/module/module_imp.cpp b/level_zero/core/source/module/module_imp.cpp index c8b47087b4..c7681f6713 100644 --- a/level_zero/core/source/module/module_imp.cpp +++ b/level_zero/core/source/module/module_imp.cpp @@ -67,7 +67,7 @@ bool ModuleTranslationUnit::buildFromSpirV(const char *input, uint32_t inputSize UNRECOVERABLE_IF((nullptr == device) || (nullptr == device->getNEODevice())); std::string options = buildOptions; - std::string internalOptions = NEO::CompilerOptions::concatenate(internalBuildOptions, NEO::CompilerOptions::hasBufferOffsetArg); + std::string internalOptions = NEO::CompilerOptions::concatenate(internalBuildOptions, NEO::CompilerOptions::hasBufferOffsetArg, NEO::CompilerOptions::allowZebin); if (device->getNEODevice()->getDeviceInfo().debuggerActive) { if (device->getSourceLevelDebugger()->isOptimizationDisabled()) { diff --git a/shared/source/compiler_interface/compiler_options/compiler_options_base.h b/shared/source/compiler_interface/compiler_options/compiler_options_base.h index 15e1c4efa3..68089a3619 100644 --- a/shared/source/compiler_interface/compiler_options/compiler_options_base.h +++ b/shared/source/compiler_interface/compiler_options/compiler_options_base.h @@ -31,6 +31,7 @@ static constexpr ConstStringRef bindlessImages = "-cl-intel-use-bindless-images" static constexpr ConstStringRef uniformWorkgroupSize = "-cl-uniform-work-group-size"; static constexpr ConstStringRef forceEmuInt32DivRem = "-cl-intel-force-emu-int32divrem"; static constexpr ConstStringRef forceEmuInt32DivRemSP = "-cl-intel-force-emu-sp-int32divrem"; +static constexpr ConstStringRef allowZebin = "-allow-zebin"; constexpr size_t nullterminateSize = 1U; constexpr size_t spaceSeparatorSize = 1U;