-
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
[HIP] Check for null arg to urKernelSetArgMemObj #1357
Conversation
5458368
to
cb447b6
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
❗ Your organization needs to install the Codecov GitHub app to enable full functionality. Additional details and impacted files@@ Coverage Diff @@
## main #1357 +/- ##
==========================================
- Coverage 14.82% 12.72% -2.10%
==========================================
Files 250 238 -12
Lines 36220 35346 -874
Branches 4094 4010 -84
==========================================
- Hits 5369 4498 -871
- Misses 30800 30844 +44
+ Partials 51 4 -47 ☔ View full report in Codecov by Sentry. |
b4d1e82
to
40845b3
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.
LGTM
d1e4a86
to
49ba55d
Compare
The Properties parameter to `urKernelSetArgMemObj` is optional, and so may be `nullptr`. However the HIP adapter assumes it is set currently. Updated this to check for nullptr, and if so assume that the buffer is read/write. Updated CTS match file so that the test executable doesn't segfault early (CTS passes nullptr properties) and more tests run but fail.
Bump UR commit to include a bugfix for HIP UR adapter dereferencing a nullptr oneapi-src/unified-runtime#1357
Bump UR commit to include a bugfix for HIP UR adapter dereferencing a nullptr oneapi-src/unified-runtime#1357
The
pProperties
parameter to urKernelSetArgMemObj is optional, and so may benullptr
. However the HIP adapter assumes it is set currently. Updated this to check for nullptr, and if so assume that the buffer is read/write.Updated CTS match file so that the test executable doesn't segfault early (CTS passes nullptr properties) and more tests run but fail. Discovered during testing of #1254 and is required for those CTS tests to pass.
DPC++ PR - intel/llvm#12758