Fix coverity issues in OpenCL, cuda and hip adapters.#1185
Fix coverity issues in OpenCL, cuda and hip adapters.#1185kbenzie merged 2 commits intooneapi-src:mainfrom
Conversation
source/adapters/hip/enqueue.cpp
Outdated
| return UR_RESULT_ERROR_UNKNOWN; | ||
| } | ||
| return UR_RESULT_SUCCESS; | ||
| return Result; |
There was a problem hiding this comment.
I think the wrong return has been removed here, this is a behaviour change.
There was a problem hiding this comment.
This pattern is used in a lot of places here, Result is what gets returned. On closer inspection though I don't like it, I've updated these two entry points and I'm working on a refactor for this whole file because I think the pattern potentially drops error codes.
There was a problem hiding this comment.
Yeah, I can see how that might happen. I think returning at the point where an error occurs is much less error prone than reusing a Result variable.
source/adapters/hip/enqueue.cpp
Outdated
|
|
||
| return UR_RESULT_SUCCESS; | ||
|
|
||
| return Result; |
There was a problem hiding this comment.
I think the wrong return has been removed here, this is a behaviour change.
isaacault
left a comment
There was a problem hiding this comment.
Bindless images changes LGTM
18eff60 to
609db0d
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 #1185 +/- ##
=======================================
Coverage 15.73% 15.73%
=======================================
Files 223 223
Lines 31465 31465
Branches 3556 3556
=======================================
Hits 4951 4951
Misses 26463 26463
Partials 51 51 ☔ View full report in Codecov by Sentry. |
EwanC
left a comment
There was a problem hiding this comment.
command-buffer changes LGTM
2612199 to
6a83d3e
Compare
…udaCL Fix coverity issues in OpenCL, cuda and hip adapters.
…udaCL Fix coverity issues in OpenCL, cuda and hip adapters.
…udaCL Fix coverity issues in OpenCL, cuda and hip adapters.
LLVM PR intel/llvm#12176