mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-03 06:49:52 +08:00
Pass options to compiler during program linking
"-cl-intel-gtpin-rera" and "-cl-intel-greater-than-4GB-buffer-required" passed to compiler as internal options Resolves: NEO-4723 Change-Id: I059027880e9a98aa063f4cd64e84e28311663f46 Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
This commit is contained in:
committed by
sys_ocldev
parent
4324b0178a
commit
22076663e4
@@ -68,6 +68,14 @@ cl_int Program::link(
|
||||
|
||||
options = (buildOptions != nullptr) ? buildOptions : "";
|
||||
|
||||
for (const auto &optionString : {CompilerOptions::gtpinRera, CompilerOptions::greaterThan4gbBuffersRequired}) {
|
||||
size_t pos = options.find(optionString);
|
||||
if (pos != std::string::npos) {
|
||||
options.erase(pos, optionString.length());
|
||||
CompilerOptions::concatenateAppend(internalOptions, optionString);
|
||||
}
|
||||
}
|
||||
|
||||
if (isKernelDebugEnabled()) {
|
||||
appendKernelDebugOptions();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user