[GPU] Force ov::enable_profiling if OV_GPU_DumpProfilingData debug option is used (#18687)
This commit is contained in:
parent
18505b99b7
commit
7f917446c2
|
|
@ -53,10 +53,6 @@ struct typed_primitive_onednn_impl : public typed_primitive_impl<PType> {
|
|||
_attrs(attrs),
|
||||
_pd(pd) {
|
||||
_enable_profiling = config.get_property(ov::enable_profiling);
|
||||
GPU_DEBUG_GET_INSTANCE(debug_config);
|
||||
GPU_DEBUG_IF(!debug_config->dump_profiling_data.empty()) {
|
||||
_enable_profiling = true;
|
||||
}
|
||||
build_primitive(config);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -180,6 +180,11 @@ void ExecutionConfig::apply_debug_options(const cldnn::device_info& info) {
|
|||
set_property(ov::compilation_num_threads(1));
|
||||
}
|
||||
|
||||
GPU_DEBUG_IF(!debug_config->dump_profiling_data.empty()) {
|
||||
GPU_DEBUG_COUT << "[WARNING] ov::enable_profiling property was forced because of enabled OV_GPU_DumpProfilingData debug option\n";
|
||||
set_property(ov::enable_profiling(true));
|
||||
}
|
||||
|
||||
GPU_DEBUG_IF(debug_config->disable_dynamic_impl == 1) {
|
||||
set_property(ov::intel_gpu::use_only_static_kernels_for_dynamic_shape(true));
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue