-
Notifications
You must be signed in to change notification settings - Fork 113
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 loader API map/def files #1664
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I could've sworn this already existed :)
fc664e8
to
00cb3ae
Compare
00cb3ae
to
d9f99c2
Compare
/e2e-level-zero |
E2E L0 build: |
d9f99c2
to
f883e86
Compare
888337d
to
62f9a7c
Compare
62f9a7c
to
ca23092
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A new entry point was added, the latest main branch changes need pulled in and then run the generate
target.
source/loader/CMakeLists.txt
Outdated
set_target_properties(ur_loader PROPERTIES | ||
LINK_FLAGS "/DEF:${LOADER_VERSION_SCRIPT}" | ||
) | ||
else() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be checking if its Linux:
else() | |
elseif(CMAKE_SYSTEM_NAME STREQUAL Linux) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, done.
Export only the loader API symbols that are needed. This is done by creating a map file for the loader API for Linux and a def file for Windows.
ca23092
to
de6da74
Compare
Updated |
Export only the loader API symbols that are needed. This is done by creating a map file for the loader API for Linux and a def file for Windows.
This is to fix the issue of having the same set of symbols exported both by libur_loader and libigc leading to UndefinedBehavior. This issue occurs for UR binaries built with ASan and
DisableDeepBind=1
compute-runtime env var set while running a binary.