Skip to content

Commit

Permalink
Fix compilation post-merge.
Browse files Browse the repository at this point in the history
Signed-off-by: Andrew Woloszyn <[email protected]>
  • Loading branch information
AWoloszyn committed Aug 15, 2024
1 parent 6df5803 commit f7e860c
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 24 deletions.
11 changes: 6 additions & 5 deletions runtime/src/iree/hal/drivers/cuda/graph_command_buffer.c
Original file line number Diff line number Diff line change
Expand Up @@ -913,10 +913,10 @@ static iree_status_t iree_hal_cuda_graph_command_buffer_dispatch2(
executable, entry_point, &kernel_info));

IREE_CUDA_GRAPH_COMMAND_BUFFER_TRACE_ZONE_BEGIN_EXTERNAL(
command_buffer, kernel_info.source_filename.data,
kernel_info.source_filename.size, kernel_info.source_line,
kernel_info.function_name.data, kernel_info.function_name.size,
/*name=*/NULL, 0);
command_buffer, IREE_HAL_CUDA_TRACING_VERBOSITY_FINE,
kernel_info.source_filename.data, kernel_info.source_filename.size,
kernel_info.source_line, kernel_info.function_name.data,
kernel_info.function_name.size, /*name=*/NULL, 0);

IREE_RETURN_AND_END_ZONE_IF_ERROR(
z0, iree_hal_resource_set_insert(command_buffer->resource_set, 1,
Expand Down Expand Up @@ -1005,7 +1005,8 @@ static iree_status_t iree_hal_cuda_graph_command_buffer_dispatch2(
dependency_count, &params),
"cuGraphAddKernelNode");

IREE_CUDA_GRAPH_COMMAND_BUFFER_TRACE_ZONE_END(command_buffer);
IREE_CUDA_GRAPH_COMMAND_BUFFER_TRACE_ZONE_END(
command_buffer, IREE_HAL_CUDA_TRACING_VERBOSITY_FINE);
IREE_TRACE_ZONE_END(z0);
return iree_ok_status();
}
Expand Down
14 changes: 7 additions & 7 deletions runtime/src/iree/hal/drivers/cuda/stream_command_buffer.c
Original file line number Diff line number Diff line change
Expand Up @@ -674,10 +674,10 @@ static iree_status_t iree_hal_cuda_stream_command_buffer_dispatch2(

IREE_CUDA_STREAM_TRACE_ZONE_BEGIN_EXTERNAL(
command_buffer->tracing_context, &command_buffer->tracing_event_list,
command_buffer->cu_stream, kernel_info.source_filename.data,
kernel_info.source_filename.size, kernel_info.source_line,
kernel_info.function_name.data, kernel_info.function_name.size,
/*name=*/NULL, 0);
command_buffer->cu_stream, IREE_HAL_CUDA_TRACING_VERBOSITY_FINE,
kernel_info.source_filename.data, kernel_info.source_filename.size,
kernel_info.source_line, kernel_info.function_name.data,
kernel_info.function_name.size, /*name=*/NULL, 0);

IREE_RETURN_AND_END_ZONE_IF_ERROR(
z0, iree_hal_resource_set_insert(command_buffer->resource_set, 1,
Expand Down Expand Up @@ -749,9 +749,9 @@ static iree_status_t iree_hal_cuda_stream_command_buffer_dispatch2(
command_buffer->cu_stream, params_ptr, NULL),
"cuLaunchKernel");

IREE_CUDA_STREAM_TRACE_ZONE_END(command_buffer->tracing_context,
&command_buffer->tracing_event_list,
command_buffer->cu_stream);
IREE_CUDA_STREAM_TRACE_ZONE_END(
command_buffer->tracing_context, &command_buffer->tracing_event_list,
command_buffer->cu_stream, IREE_HAL_CUDA_TRACING_VERBOSITY_FINE);

IREE_TRACE_ZONE_END(z0);
return iree_ok_status();
Expand Down
11 changes: 6 additions & 5 deletions runtime/src/iree/hal/drivers/hip/graph_command_buffer.c
Original file line number Diff line number Diff line change
Expand Up @@ -923,10 +923,10 @@ static iree_status_t iree_hal_hip_graph_command_buffer_dispatch2(
executable, entry_point, &kernel_info));

IREE_HIP_GRAPH_COMMAND_BUFFER_TRACE_ZONE_BEGIN_EXTERNAL(
command_buffer, kernel_info.source_filename.data,
kernel_info.source_filename.size, kernel_info.source_line,
kernel_info.function_name.data, kernel_info.function_name.size,
/*name=*/NULL, 0);
command_buffer, IREE_HAL_HIP_TRACING_VERBOSITY_FINE,
kernel_info.source_filename.data, kernel_info.source_filename.size,
kernel_info.source_line, kernel_info.function_name.data,
kernel_info.function_name.size, /*name=*/NULL, 0);

IREE_RETURN_AND_END_ZONE_IF_ERROR(
z0, iree_hal_resource_set_insert(command_buffer->resource_set, 1,
Expand Down Expand Up @@ -1006,7 +1006,8 @@ static iree_status_t iree_hal_hip_graph_command_buffer_dispatch2(
dependency_count, &params),
"hipGraphAddKernelNode");

IREE_HIP_GRAPH_COMMAND_BUFFER_TRACE_ZONE_END(command_buffer);
IREE_HIP_GRAPH_COMMAND_BUFFER_TRACE_ZONE_END(
command_buffer, IREE_HAL_HIP_TRACING_VERBOSITY_FINE);
IREE_TRACE_ZONE_END(z0);
return iree_ok_status();
}
Expand Down
14 changes: 7 additions & 7 deletions runtime/src/iree/hal/drivers/hip/stream_command_buffer.c
Original file line number Diff line number Diff line change
Expand Up @@ -654,10 +654,10 @@ static iree_status_t iree_hal_hip_stream_command_buffer_dispatch2(

IREE_HIP_STREAM_TRACE_ZONE_BEGIN_EXTERNAL(
command_buffer->tracing_context, &command_buffer->tracing_event_list,
command_buffer->hip_stream, kernel_info.source_filename.data,
kernel_info.source_filename.size, kernel_info.source_line,
kernel_info.function_name.data, kernel_info.function_name.size,
/*name=*/NULL, 0);
command_buffer->hip_stream, IREE_HAL_HIP_TRACING_VERBOSITY_FINE,
kernel_info.source_filename.data, kernel_info.source_filename.size,
kernel_info.source_line, kernel_info.function_name.data,
kernel_info.function_name.size, /*name=*/NULL, 0);

IREE_RETURN_AND_END_ZONE_IF_ERROR(
z0, iree_hal_resource_set_insert(command_buffer->resource_set, 1,
Expand Down Expand Up @@ -720,9 +720,9 @@ static iree_status_t iree_hal_hip_stream_command_buffer_dispatch2(
params_ptr, NULL),
"hipModuleLaunchKernel");

IREE_HIP_STREAM_TRACE_ZONE_END(command_buffer->tracing_context,
&command_buffer->tracing_event_list,
command_buffer->hip_stream);
IREE_HIP_STREAM_TRACE_ZONE_END(
command_buffer->tracing_context, &command_buffer->tracing_event_list,
command_buffer->hip_stream, IREE_HAL_HIP_TRACING_VERBOSITY_FINE);

IREE_TRACE_ZONE_END(z0);
return status;
Expand Down

0 comments on commit f7e860c

Please sign in to comment.