-
Notifications
You must be signed in to change notification settings - Fork 769
[UR][CUDA][HIP] Cleanup adapter code #18370
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
9774f55
to
954e22e
Compare
if (Ret != hipSuccess && Ret != hipErrorNotFound) | ||
UR_CHECK_ERROR(Ret); | ||
return mapErrorUR(Ret); | ||
|
||
if (Ret == hipErrorNotFound) { |
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 is a nit, but if we check for hipErrorNotFound
first, we wouldn't need to re-check for it in the second if
. Maybe tying them into if
/else if
would be nicer?
s/that that/that In the commit message :) |
- Inline createProgram function in CUDA adapter, and catch ur result exceptions in both adapters. - Fix pattern of unnecessarily storing error code in a variable instead of just returning it. - Fix incorrect setErrorMessage uses, the adapter specific code signals that that there is a specific error code and message in get last error, it doesn't make sense to use it as the code in the last error. - Remove now unrelated comment on now removed primary context extension. - Don't use `unique_ptr` when `delete` is enough.
954e22e
to
475ac44
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.
Bindless Images LGTM.
@intel/llvm-gatekeepers this is ready to merge, failure unrelated and tracked here: #18416 |
unique_ptr
whendelete
is enough.