mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-01 12:33:12 +08:00
feat(zebin): add support for build options section
This change: * Adds support for build options section in zebinary - using build options in binary when rebuilding. * Appends "-cl-intel-allow-zebin" flag to build options when zebin is used. Resolves: NEO-6916 Signed-off-by: Krystian Chmielewski <krystian.chmielewski@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
0d82216f43
commit
e007ba499f
@@ -260,6 +260,9 @@ bool ModuleTranslationUnit::createFromNativeBinary(const char *input, size_t inp
|
||||
this->irBinary = makeCopy(reinterpret_cast<const char *>(singleDeviceBinary.intermediateRepresentation.begin()), singleDeviceBinary.intermediateRepresentation.size());
|
||||
this->irBinarySize = singleDeviceBinary.intermediateRepresentation.size();
|
||||
this->options = singleDeviceBinary.buildOptions.str();
|
||||
if (singleDeviceBinary.format == NEO::DeviceBinaryFormat::Zebin) {
|
||||
this->options += " " + NEO::CompilerOptions::allowZebin.str();
|
||||
}
|
||||
|
||||
if (false == singleDeviceBinary.debugData.empty()) {
|
||||
this->debugData = makeCopy(reinterpret_cast<const char *>(singleDeviceBinary.debugData.begin()), singleDeviceBinary.debugData.size());
|
||||
|
||||
Reference in New Issue
Block a user