[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:
committed by
GitHub
parent
00618a429b
commit
146ca36f8f
@@ -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);
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user