[GPU] Minor debug improvements: add suffix to shape agnostic kernels names and show batch_hash for impl_types::any (#20275)

This commit is contained in:
Sergey Shlyapnikov
2023-10-16 13:47:57 +04:00
committed by GitHub
parent 00618a429b
commit 146ca36f8f
2 changed files with 6 additions and 1 deletions

View File

@@ -208,7 +208,8 @@ std::unique_ptr<json_composite> program_node::desc_to_json() const {
#endif
impls.push_back(selected_impl->get_kernel_name());
if (get_preferred_impl_type() == impl_types::ocl) {
auto preferred_impl_type = get_preferred_impl_type();
if (preferred_impl_type != impl_types::onednn && preferred_impl_type != impl_types::cpu) {
json_composite cl_dump_info;
cl_dump_info.add("batch_hash", selected_impl->get_kernels_dump_info().first);
cl_dump_info.add("kernel_entry", selected_impl->get_kernels_dump_info().second);

View File

@@ -80,6 +80,10 @@ std::string KernelBaseOpenCL::GetEntryPoint(const std::string& templateName,
// UniqueID = program_id + processing_index + additional weight/reorder tag
kernelID += "_" + params.uniqueID + "_" + std::to_string(partID);
// Add "__sa" suffix for shape agnostic kernels
if (params.is_shape_agnostic)
kernelID += "__sa";
return kernelID;
}