Skip to content

Commit

Permalink
Merge pull request #2028 from yingcong-wu/yc-0829-move-tracing-before…
Browse files Browse the repository at this point in the history
…-sanitizer

[DeviceSanitizer] Init tracing layer after sanitizer layer to achieve proper tracing
  • Loading branch information
aarongreig authored Oct 11, 2024
2 parents e3910da + 77432c2 commit 2c4bf63
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions source/loader/ur_lib.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -74,13 +74,15 @@ class __urdlllocal context_t : public AtomicSingleton<context_t> {
const std::vector<LayerData> layers = {
{ur_validation_layer::getContext(),
ur_validation_layer::context_t::forceDelete},
#if UR_ENABLE_TRACING
{ur_tracing_layer::getContext(),
ur_tracing_layer::context_t::forceDelete},
#endif
// Initialize tracing layer after sanitizer layer to make sure tracing
// layer will properly print all API calls.
#if UR_ENABLE_SANITIZER
{ur_sanitizer_layer::getContext(),
ur_sanitizer_layer::context_t::forceDelete},
#endif
#if UR_ENABLE_TRACING
{ur_tracing_layer::getContext(),
ur_tracing_layer::context_t::forceDelete},
#endif
};

Expand Down

0 comments on commit 2c4bf63

Please sign in to comment.