Skip to content

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
@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