[GPU] disable options in batch compilation (#10311)

This commit is contained in:
Andrei Gorbachev 2022-02-15 11:50:58 +03:00 committed by GitHub
parent 0099755434
commit 64812fd635
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 7 deletions

View File

@ -153,7 +153,7 @@ std::shared_ptr<KernelString> KernelBaseOpenCL::GetKernelString(const std::strin
kernel_string->undefs = jit.second;
kernel_string->options = exe_mode + " -cl-mad-enable";
if (engine_info.bOptHintsSupport)
kernel_string->options += " -DOPT_HINS_SUPPORTED=1";
kernel_string->options += " -DOPT_HINTS_SUPPORTED=1";
if (engine_info.bLocalBlockIOSupport)
kernel_string->options += " -Dcl_intel_subgroup_local_block_io -DLOCAL_BLOCK_IO_SUPPORTED=1";
kernel_string->entry_point = entry_point;

View File

@ -125,10 +125,6 @@ std::string reorder_options(const std::string& org_options) {
return options;
}
inline bool does_options_support_batch_compilation(const std::string& options) {
return options.find("-D") == std::string::npos && options.find("-I") == std::string::npos;
}
} // namespace
namespace cldnn {
@ -167,8 +163,6 @@ void kernels_cache::get_program_source(const kernels_code& kernels_source_code,
bool batch_compilation = code.kernel_strings->batch_compilation;
bool dump_custom_program = code.dump_custom_program;
batch_compilation &= does_options_support_batch_compilation(options);
if (batch_compilation) {
options = reorder_options(options);
}