Skip to content
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

[umf] extend error message for disjoint pool #841

Merged
merged 1 commit into from
Sep 5, 2023

Conversation

igchor
Copy link
Member

@igchor igchor commented Aug 31, 2023

To make debugging easier when memoryProviderFree in ~Slab fails.

We should also implement get_last_native_error` for adapters to set the error message correctly.


umfMemoryProviderGetLastNativeError(
umfGetLastFailedMemoryProvider(), &message, &error);
std::cout << "Native error msg: " << message
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

On second thought, coverity will complain that this can throw.
Can we use our logging framework?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh, right. Yeah, ideally we would use some logger here but I don't want to hardcode our UR logger since we plan to move DisjointPool to another repo anyway. There are other places in this file that use cout so perhaps we can just ignore the issues on coverity for now?

@DamianDuy
Copy link

LGTM

@pbalcer pbalcer merged commit eb061c8 into oneapi-src:main Sep 5, 2023
28 checks passed
@igchor igchor deleted the disjoint_pool_extend_error branch September 5, 2023 14:37
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.

3 participants