-
Notifications
You must be signed in to change notification settings - Fork 125
[UR][L0] Propagate errors from USMAllocationMakeResident
#906
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
This change ensures that USM allocation APIs don't return `UR_RESULT_SUCCESS` when an error occurs within `USMAllocationMakeResident`. Signed-off-by: Michael Aziz <michael.aziz@intel.com>
This PR was originally created here: intel/llvm#11312. |
Please open draft PR in intel/llvm for pre-merge testing, as indicated here https://github.com/oneapi-src/unified-runtime/pull/902/files |
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 are looking good, we just need to have the pre-merge testing.
I've already opened intel/llvm#11312 and it passed all testing. There are no other changes needed in intel/llvm. What's the motivation to create a 3rd PR? |
From https://github.com/oneapi-src/unified-runtime/pull/902/files:
so basically, we want a draft PR that we can use for pre-merge testing (which is what you prev PR was doing), and then, to pull down the changes (that's the part missing). See example here https://github.com/intel/llvm/pull/11336/files Sorry for that. We are just trying to come up with this new flow to ensure we maintain quality in all UR merges with respect to SYCL. |
Thanks for the explanation, @jandres742! I've made the following changes:
I'm not sure I understand the purpose of the last step in your process. After this PR is merged, won't my changes be added to SYCL during the next UR update? Is your intent with this process to have SYCL always use the latest commit in |
thanks @0x12CC
I would say intent is the latter, as the only way to know that the code we are merging in the adapters branch is stable by having it in intel/llvm as up-to-date as possible. @kbenzie : what do you think? |
There is no automated update process in intel/llvm to use the weekly stable tags. As such, keeping intel/llvm as up-to-date as possible is the goal here. Having a 1:1 UR to intel/llvm relationship for changes made the most sence, at least in the short term. That way we can hopefully avoid "omnibus PRs" that address multiple unrelated UR or intel/llvm changes at once. This is a very new and rushed process. We'll be looking to streamline it moving forwards where possible while seeking to retaining quality/testing standards. |
@jandres742, are there any additional comments/requests about this PR which prevent it from being merged? |
nothing else from my side, approved, thanks @0x12CC ! |
Checks on intel/llvm PR are good intel/llvm#11312 |
This change ensures that USM allocation APIs don't return
UR_RESULT_SUCCESS
when an error occurs withinUSMAllocationMakeResident
.