Skip to content

Commit

Permalink
[cuda][hip] Drop name_literal reference like Vulkan side (iree-org#16742
Browse files Browse the repository at this point in the history
)

Follow changes similar to Vulkan in
iree-org#14665.
  • Loading branch information
antiagainst authored Mar 12, 2024
1 parent 3c296a5 commit e9f7ecd
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
10 changes: 5 additions & 5 deletions experimental/hip/tracing.h
Original file line number Diff line number Diff line change
Expand Up @@ -82,11 +82,11 @@ void iree_hal_hip_tracing_zone_end_impl(iree_hal_hip_tracing_context_t* context,
hipStream_t stream);

// Begins a new zone with the parent function name.
#define IREE_HIP_TRACE_ZONE_BEGIN(context, stream) \
static const iree_tracing_location_t TracyConcat( \
__tracy_source_location, __LINE__) = {name_literal, __FUNCTION__, \
__FILE__, (uint32_t)__LINE__, 0}; \
iree_hal_hip_tracing_zone_begin_impl( \
#define IREE_HIP_TRACE_ZONE_BEGIN(context, stream) \
static const iree_tracing_location_t TracyConcat( \
__tracy_source_location, __LINE__) = {NULL, __FUNCTION__, __FILE__, \
(uint32_t)__LINE__, 0}; \
iree_hal_hip_tracing_zone_begin_impl( \
context, stream, &TracyConcat(__tracy_source_location, __LINE__));

// Begins an externally defined zone with a dynamic source location.
Expand Down
10 changes: 5 additions & 5 deletions runtime/src/iree/hal/drivers/cuda/tracing.h
Original file line number Diff line number Diff line change
Expand Up @@ -83,11 +83,11 @@ void iree_hal_cuda_tracing_zone_end_impl(
iree_hal_cuda_tracing_context_t* context, CUstream stream);

// Begins a new zone with the parent function name.
#define IREE_CUDA_TRACE_ZONE_BEGIN(context, stream) \
static const iree_tracing_location_t TracyConcat( \
__tracy_source_location, __LINE__) = {name_literal, __FUNCTION__, \
__FILE__, (uint32_t)__LINE__, 0}; \
iree_hal_cuda_tracing_zone_begin_impl( \
#define IREE_CUDA_TRACE_ZONE_BEGIN(context, stream) \
static const iree_tracing_location_t TracyConcat( \
__tracy_source_location, __LINE__) = {NULL, __FUNCTION__, __FILE__, \
(uint32_t)__LINE__, 0}; \
iree_hal_cuda_tracing_zone_begin_impl( \
context, stream, &TracyConcat(__tracy_source_location, __LINE__));

// Begins an externally defined zone with a dynamic source location.
Expand Down

0 comments on commit e9f7ecd

Please sign in to comment.