Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Fix dynamic tracing support with static loader #313

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

Merged
merged 3 commits into from
Apr 8, 2025

Conversation

nrspruit
Copy link
Contributor

@nrspruit nrspruit commented Apr 5, 2025

  • To allow for dynamic init of tracing, the static loader cannot optimize out the call to the ze_loader's ze_lib.
  • Therefore, during init, the function pointer is instead assigned to the dynamic loaded loader's apis to enable tracing.

nrspruit added 2 commits April 5, 2025 10:29
- To allow for dynamic init of tracing, the static loader cannot
  optimize out the call to the ze_loader's ze_lib.
- Therefore, during init, the function pointer is instead assigned to
  the dynamic loaded loader's apis to enable tracing.

Signed-off-by: Neil R. Spruit <[email protected]>
@nrspruit nrspruit force-pushed the fix_dynamic_tracing_static branch from 174f19d to 362cc15 Compare April 7, 2025 15:54
@nrspruit nrspruit marked this pull request as ready for review April 7, 2025 20:20
@nrspruit nrspruit requested a review from Copilot April 7, 2025 21:19
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Copilot reviewed 3 out of 10 changed files in this pull request and generated no comments.

Files not reviewed (7)
  • .github/docker/windows.Dockerfile: Language not supported
  • scripts/templates/libapi.cpp.mako: Language not supported
  • scripts/templates/libddi.cpp.mako: Language not supported
  • source/lib/ze_lib.cpp: Language not supported
  • source/lib/ze_libddi.cpp: Language not supported
  • source/lib/zes_libddi.cpp: Language not supported
  • source/lib/zet_libddi.cpp: Language not supported

@nrspruit nrspruit requested a review from rwmcguir April 7, 2025 23:04
@nrspruit nrspruit merged commit 01c9bad into oneapi-src:master Apr 8, 2025
50 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants