Skip to content

[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

Merged
merged 1 commit into from
Oct 10, 2023

Conversation

0x12CC
Copy link
Contributor

@0x12CC 0x12CC commented Sep 28, 2023

This change ensures that USM allocation APIs don't return UR_RESULT_SUCCESS when an error occurs within USMAllocationMakeResident.

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>
@0x12CC
Copy link
Contributor Author

0x12CC commented Sep 28, 2023

This PR was originally created here: intel/llvm#11312.

@jandres742
Copy link

Please open draft PR in intel/llvm for pre-merge testing, as indicated here https://github.com/oneapi-src/unified-runtime/pull/902/files

Copy link

@jandres742 jandres742 left a 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.

@0x12CC
Copy link
Contributor Author

0x12CC commented Sep 28, 2023

Please open draft PR in intel/llvm for pre-merge testing, as indicated here https://github.com/oneapi-src/unified-runtime/pull/902/files

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?

@jandres742
Copy link

Please open draft PR in intel/llvm for pre-merge testing, as indicated here https://github.com/oneapi-src/unified-runtime/pull/902/files

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:

  1. Once the oneapi-src/unified-runtime pull request is accepted:
  • Reverse the change to UNIFIED_RUNTIME_REPO_ made in step 2.
  • Update the UNIFIED_RUNTIME_TAG_ to point at the
    oneapi-src/unified-runtime commit/tag containing the merged adapter
    changes.
  • Mark the intel/llvm pull request as ready for review and follow their
    review process.

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.

@0x12CC
Copy link
Contributor Author

0x12CC commented Sep 28, 2023

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 adapters rather than the latest stable release?

@jandres742
Copy link

thanks @0x12CC

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 adapters rather than the latest stable release?

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?

@kbenzie
Copy link
Contributor

kbenzie commented Sep 29, 2023

thanks @0x12CC

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 adapters rather than the latest stable release?

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.

@0x12CC 0x12CC requested a review from jandres742 October 2, 2023 14:23
@AlexeySachkov
Copy link
Contributor

@jandres742, are there any additional comments/requests about this PR which prevent it from being merged?

@jandres742
Copy link

jandres742 commented Oct 10, 2023

@jandres742, are there any additional comments/requests about this PR which prevent it from being merged?

nothing else from my side, approved, thanks @0x12CC !

@jandres742
Copy link

Checks on intel/llvm PR are good intel/llvm#11312

@kbenzie kbenzie merged commit 4954850 into oneapi-src:adapters Oct 10, 2023
@0x12CC 0x12CC deleted the l0_usm_error_checking branch October 10, 2023 13:23
@0x12CC 0x12CC restored the l0_usm_error_checking branch November 2, 2023 15:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants