Skip to content

Commit

Permalink
Re-add the change from #18997
Browse files Browse the repository at this point in the history
Signed-off-by: Andrew Woloszyn <[email protected]>
  • Loading branch information
AWoloszyn committed Nov 4, 2024
1 parent 12b6985 commit 5c137b2
Showing 1 changed file with 9 additions and 11 deletions.
20 changes: 9 additions & 11 deletions runtime/src/iree/hal/drivers/hip/native_executable.c
Original file line number Diff line number Diff line change
Expand Up @@ -316,10 +316,8 @@ iree_status_t iree_hal_hip_native_executable_create(
(export_count * sizeof(ned->exports[0])));
ned->export_count = export_count;
IREE_TRACE(
iree_hal_debug_export_info_t* export_infos =
(iree_hal_debug_export_info_t*)((uint8_t*)ned->modules +
module_count *
sizeof(ned->modules[0])));
uint8_t* export_info_ptr =
((uint8_t*)ned->modules + module_count * sizeof(ned->modules[0])));

// Publish any embedded source files to the tracing infrastructure.
iree_hal_debug_publish_source_files(
Expand Down Expand Up @@ -424,14 +422,14 @@ iree_status_t iree_hal_hip_native_executable_create(
iree_hal_hip_BindingBits_vec_len(binding_flags_vec);

IREE_TRACE({
iree_hal_debug_copy_export_info(
iree_hal_hip_ExportDef_debug_info_get(export_def),
&export_infos[i]);
kernel_info->debug_info.function_name =
export_infos[i].function_name;
iree_hal_debug_export_info_t* export_info =
(iree_hal_debug_export_info_t*)export_info_ptr;
export_info_ptr += iree_hal_debug_copy_export_info(
iree_hal_hip_ExportDef_debug_info_get(export_def), export_info);
kernel_info->debug_info.function_name = export_info->function_name;
kernel_info->debug_info.source_filename =
export_infos[i].source_filename;
kernel_info->debug_info.source_line = export_infos[i].source_line;
export_info->source_filename;
kernel_info->debug_info.source_line = export_info->source_line;
});
}
}
Expand Down

0 comments on commit 5c137b2

Please sign in to comment.