-
Notifications
You must be signed in to change notification settings - Fork 772
[SYCL][UR] Link UR PI against UR Loader #8637
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
Conversation
sycl/plugins/unified_runtime/ur/adapters/level_zero/ur_level_zero.hpp
Outdated
Show resolved
Hide resolved
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.
How is this new file used?
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.
The UR loader calls these functions to build the DDI tables.
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.
@bmyates this is the extra level of indirection that we dont want to have when there's only one adapter, right? that optimization could be done in a follow-up patch,.
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.
No the extra level of indirection will be removed in the loader. No change to make to code here.
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.
+1
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.
LGTM
@bader : do you know what could be happening with the CI here? |
Compile UR L0 adapter as a standalone library Signed-off-by: Brandon Yates <brandon.yates@intel.com>
I rebased and fixed that issue, but now failing with another issue that seems unrelated. Any idea @bader |
No idea. |
This was caused by a bug in sycl tests that was fixed yesterday intel/llvm-test-suite#1674 Retriggered CI here, fingers crossed it passes this time. |
@smaslov-intel @bader all checks finally passed, needs reapproval now |
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.
Minor style comments.
sycl/plugins/unified_runtime/ur/adapters/level_zero/ur_level_zero.cpp
Outdated
Show resolved
Hide resolved
sycl/plugins/unified_runtime/ur/adapters/level_zero/ur_loader_interface.cpp
Outdated
Show resolved
Hide resolved
sycl/plugins/unified_runtime/ur/adapters/level_zero/ur_loader_interface.cpp
Outdated
Show resolved
Hide resolved
Signed-off-by: Brandon Yates <brandon.yates@intel.com>
@bmyates : we expect a clean CI run, unless there is something known that @intel/llvm-gatekeepers would be aware of.
|
👍 @intel/llvm-gatekeepers, is this a known issue:
I think @bmyates is right and this is a regression introduced by intel/llvm-test-suite@a92d98e. I see similar failure in #8708 pre-commits. |
@bmyates, could you fix, please?
|
This reverts commit a0d0942.
Reverts #8637 It caused at least 3 known regressions. 1. #8637 (comment) 2. \sycl\plugins\unified_runtime\ur\adapters\level_zero\ur_level_zero_common.hpp(10): fatal error C1083: Cannot open include file: 'sycl/detail/pi.h': No such file or directory 3. ld: error: undefined symbol: pthread_rwlock_wrlock (with GCC 7.5)
Compile UR L0 adapter as a standalone library Signed-off-by: Brandon Yates <brandon.yates@intel.com>
Reverts intel#8637 It caused at least 3 known regressions. 1. intel#8637 (comment) 2. \sycl\plugins\unified_runtime\ur\adapters\level_zero\ur_level_zero_common.hpp(10): fatal error C1083: Cannot open include file: 'sycl/detail/pi.h': No such file or directory 3. ld: error: undefined symbol: pthread_rwlock_wrlock (with GCC 7.5)
Reverts intel/llvm#8637 It caused at least 3 known regressions. 1. intel/llvm#8637 (comment) 2. \sycl\plugins\unified_runtime\ur\adapters\level_zero\ur_level_zero_common.hpp(10): fatal error C1083: Cannot open include file: 'sycl/detail/pi.h': No such file or directory 3. ld: error: undefined symbol: pthread_rwlock_wrlock (with GCC 7.5)
Compile UR L0 adapter as a standalone library
Signed-off-by: Brandon Yates brandon.yates@intel.com