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

[L0] Manage UMF pools through usm::pool_manager #2495

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

kswiecicki
Copy link
Contributor

No description provided.

@github-actions github-actions bot added common Changes or additions to common utilities level-zero L0 adapter specific issues labels Dec 20, 2024
@kswiecicki kswiecicki force-pushed the l0-pool-manager branch 5 times, most recently from b00072c to 2a62983 Compare January 8, 2025 11:46
@github-actions github-actions bot added the ci/cd Continuous integration/devliery label Jan 8, 2025
@kswiecicki kswiecicki force-pushed the l0-pool-manager branch 2 times, most recently from 281e3e4 to 30d5386 Compare January 13, 2025 11:55
@kswiecicki kswiecicki marked this pull request as ready for review January 13, 2025 15:45
@kswiecicki kswiecicki requested review from a team as code owners January 13, 2025 15:45
@@ -289,6 +289,12 @@ template <typename D> struct pool_manager {

return it->second.get();
}

bool hasPool(umf_memory_pool_handle_t hPool) noexcept {
Copy link
Member

Choose a reason for hiding this comment

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

One UR pulls down this commit oneapi-src/unified-memory-framework@86d2341 hasPool won't be necessary - you will be able to just use umfPoolByPtr

Copy link
Contributor Author

@kswiecicki kswiecicki Feb 13, 2025

Choose a reason for hiding this comment

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

I've decided not to include the umfPool[Set/Get]Tag changes in this PR. After trying to implement it I've encountered some complications in ur_result_t ur_validation_layer::bounds(ur_queue_handle_t, const void*, size_t, size_t) from ur_validation_layer.cpp.

@kswiecicki kswiecicki force-pushed the l0-pool-manager branch 3 times, most recently from 44fcaa0 to 51fec4f Compare January 21, 2025 14:25
@kswiecicki kswiecicki force-pushed the l0-pool-manager branch 2 times, most recently from 8a2b671 to 38752a1 Compare January 27, 2025 10:28
@kswiecicki kswiecicki force-pushed the l0-pool-manager branch 3 times, most recently from b7a42f9 to 9bc686d Compare February 4, 2025 13:35
@kswiecicki kswiecicki force-pushed the l0-pool-manager branch 4 times, most recently from 8023b0a to 5ee6a87 Compare February 10, 2025 17:49
This variable is not initialized in any way and it is set to nullptr by
default.
Level Zero provider internally stores native errors of ur_result_t type.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ci/cd Continuous integration/devliery common Changes or additions to common utilities level-zero L0 adapter specific issues
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants