From 2cdf1452bb2f877baf8723ab567363094bea10bd Mon Sep 17 00:00:00 2001 From: Okwan Kwon Date: Fri, 22 Mar 2024 15:00:07 -0700 Subject: [PATCH] fix build errors when tracing mode = 1 (#16884) --- runtime/src/iree/hal/drivers/hip/tracing.c | 4 ++-- runtime/src/iree/hal/drivers/hip/tracing.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/runtime/src/iree/hal/drivers/hip/tracing.c b/runtime/src/iree/hal/drivers/hip/tracing.c index c5ee5ebe4fdf..9bbd5e2cea14 100644 --- a/runtime/src/iree/hal/drivers/hip/tracing.c +++ b/runtime/src/iree/hal/drivers/hip/tracing.c @@ -6,7 +6,7 @@ #include "iree/hal/drivers/hip/tracing.h" -#if IREE_TRACING_FEATURES & IREE_TRACING_FEATURE_INSTRUMENTATION +#if IREE_TRACING_FEATURES & IREE_TRACING_FEATURE_INSTRUMENTATION_DEVICE #include "iree/hal/drivers/hip/dynamic_symbols.h" #include "iree/hal/drivers/hip/status_util.h" @@ -293,4 +293,4 @@ void iree_hal_hip_tracing_context_free( void iree_hal_hip_tracing_context_collect( iree_hal_hip_tracing_context_t* context) {} -#endif // IREE_TRACING_FEATURES & IREE_TRACING_FEATURE_INSTRUMENTATION +#endif // IREE_TRACING_FEATURES & IREE_TRACING_FEATURE_INSTRUMENTATION_DEVICE diff --git a/runtime/src/iree/hal/drivers/hip/tracing.h b/runtime/src/iree/hal/drivers/hip/tracing.h index c1ba65788787..04d7c97ca08f 100644 --- a/runtime/src/iree/hal/drivers/hip/tracing.h +++ b/runtime/src/iree/hal/drivers/hip/tracing.h @@ -62,7 +62,7 @@ void iree_hal_hip_tracing_context_free(iree_hal_hip_tracing_context_t* context); void iree_hal_hip_tracing_context_collect( iree_hal_hip_tracing_context_t* context); -#if IREE_TRACING_FEATURES & IREE_TRACING_FEATURE_INSTRUMENTATION +#if IREE_TRACING_FEATURES & IREE_TRACING_FEATURE_INSTRUMENTATION_DEVICE // Begins a normal zone derived on the calling |src_loc|. // Must be perfectly nested and paired with a corresponding zone end. @@ -111,7 +111,7 @@ void iree_hal_hip_tracing_zone_end_impl(iree_hal_hip_tracing_context_t* context, function_name_length, name, name_length) #define IREE_HIP_TRACE_ZONE_END(context, stream) -#endif // IREE_TRACING_FEATURES & IREE_TRACING_FEATURE_INSTRUMENTATION +#endif // IREE_TRACING_FEATURES & IREE_TRACING_FEATURE_INSTRUMENTATION_DEVICE #ifdef __cplusplus } // extern "C"