-
Notifications
You must be signed in to change notification settings - Fork 116
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
[SPEC] Add urProgramGetGlobalVariablePointer entrypoint #1255
[SPEC] Add urProgramGetGlobalVariablePointer entrypoint #1255
Conversation
bb3aea9
to
716f0bc
Compare
Codecov ReportAttention: Patch coverage is
❗ Your organization needs to install the Codecov GitHub app to enable full functionality. Additional details and impacted files@@ Coverage Diff @@
## main #1255 +/- ##
==========================================
- Coverage 14.82% 12.47% -2.36%
==========================================
Files 250 240 -10
Lines 36220 36126 -94
Branches 4094 4097 +3
==========================================
- Hits 5369 4506 -863
- Misses 30800 31616 +816
+ Partials 51 4 -47 ☔ View full report in Codecov by Sentry. |
f5e3493
to
0fc432c
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.
Thanks for changes. CUDA/HIP adapters LGTM
15bc0e9
to
7d5ad11
Compare
Gentle ping for reviews from @oneapi-src/unified-runtime-maintain / @oneapi-src/unified-runtime-opencl-write / @oneapi-src/unified-runtime-level-zero-write |
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 for level-zero
source/adapters/opencl/program.cpp
Outdated
CLContext, cl_ext::ExtFuncPtrCache->clGetDeviceGlobalVariablePointerCache, | ||
cl_ext::GetDeviceGlobalVariablePointerName, &FuncT)); | ||
|
||
if (!FuncT) { |
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 already gets checked in getExtFuncFromContext
TEST_P(urProgramGetGlobalVariablePointerTest, Success) { | ||
|
||
size_t global_variable_size = 0; |
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.
TEST_P(urProgramGetGlobalVariablePointerTest, Success) { | |
size_t global_variable_size = 0; | |
TEST_P(urProgramGetGlobalVariablePointerTest, Success) { | |
size_t global_variable_size = 0; |
be161f2
to
f7bf99b
Compare
Hi, when can this PR be merged? We're implementing device sanitizer related features, and this new API can simplify our design. |
@fabiomestre could you pull in the latest changes from main and resolve the conflicts? |
2f52e17
to
27ce154
Compare
I have rebased and re-run the end to end tests. There is some failures there but it seems that's because the upstream branch is broken at the moment. |
To actually use this in the SYCL RT there should also be a |
Yes, I forgot about the SYCL RT side. I will update the intel-llvm PR with the new pi entrypoint |
It's updated now in intel/llvm#12496 |
@zhaomaosu its waiting for approvals on intel/llvm#12496 and a couple of other UR PR's to merge first. |
Please pull in the main branch to have up to date testing, also update the tag in the intel/llvm PR. |
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.
Changes for native cpu lgtm, thank you
1bc658a
to
6297b7f
Compare
6297b7f
to
ca3da5a
Compare
urProgramGetGlobalVariablePointer
.urProgramGetGlobalVariablePointer
urEnqueueDeviceGetGlobalVariableRead
by adding the required metadata and sycl properties to the kernel.intel/llvm#12496
Closes: #1214