Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ability to log from the tracing layer directly rather than use XPTI #1648

Merged
merged 3 commits into from
May 24, 2024

Conversation

callumfare
Copy link
Contributor

This adds the ability to use the tracing layer with a logger rather than relying on XPTI. The motivation for this is to provide an equivalent to SYCL_PI_TRACE when we remove PI from the SYCL runtime. urtrace and sycl-trace will still be supported.

@callumfare callumfare requested a review from a team as a code owner May 22, 2024 13:03
@pbalcer pbalcer self-requested a review May 22, 2024 13:25
scripts/templates/trcddi.cpp.mako Outdated Show resolved Hide resolved
scripts/templates/trcddi.cpp.mako Outdated Show resolved Hide resolved
@github-actions github-actions bot added loader Loader related feature/bug common Changes or additions to common utilities labels May 22, 2024
Copy link
Contributor

@pbalcer pbalcer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm, but please add a simple test. Something like the existing hello world tracing test: https://github.com/oneapi-src/unified-runtime/blob/main/test/layers/tracing/CMakeLists.txt#L35

Copy link
Contributor

@kbenzie kbenzie left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we test this?

@kbenzie kbenzie added ready to merge Added to PR's which are ready to merge and removed ready to merge Added to PR's which are ready to merge labels May 23, 2024
@pbalcer
Copy link
Contributor

pbalcer commented May 23, 2024

Also, we might want to document this, right now the tracing layer documentation only lists the xpti entry points.

@github-actions github-actions bot added the specification Changes or additions to the specification label May 23, 2024
@callumfare callumfare merged commit d5166d5 into oneapi-src:main May 24, 2024
51 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
common Changes or additions to common utilities loader Loader related feature/bug specification Changes or additions to the specification
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants