Skip to content

Commit

Permalink
fix build errors when tracing mode = 1 (iree-org#16884)
Browse files Browse the repository at this point in the history
  • Loading branch information
okkwon authored Mar 22, 2024
1 parent aa72368 commit 2cdf145
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions runtime/src/iree/hal/drivers/hip/tracing.c
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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
4 changes: 2 additions & 2 deletions runtime/src/iree/hal/drivers/hip/tracing.h
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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"
Expand Down

0 comments on commit 2cdf145

Please sign in to comment.