Skip to content

[SYCL][UR][L0] Replace memory type look-up with UMF tracking #10807

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 6 commits into from
Sep 14, 2023

Conversation

kswiecicki
Copy link
Contributor

This also makes SharedReadOnly allocations tracking obsolete.

@kswiecicki kswiecicki force-pushed the llvm-disjoint-pool-free-usm-tracking branch 3 times, most recently from 4bc2fef to 64de0f8 Compare August 23, 2023 13:19
umf_result_t get_min_page_size(void *, size_t *);
umf_result_t get_recommended_page_size(size_t, size_t *) {
virtual void get_last_native_error(const char **ErrMsg, int32_t *ErrCode) {
std::ignore = ErrMsg;
Copy link
Member

Choose a reason for hiding this comment

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

This is unrelated to this PR, but I think it would be good to actually call zeDriverGetLastErrorDescription here.

// capabilities.
class USMProxyPool {
class L0ProxyPool {
Copy link
Member

Choose a reason for hiding this comment

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

Is it somehow specific to L0? I guess we could use it for other adapters as well?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

My bad. I've been using it only in the context of L0.

@kswiecicki kswiecicki force-pushed the llvm-disjoint-pool-free-usm-tracking branch 6 times, most recently from 401b08a to 52d7266 Compare August 31, 2023 09:19
Copy link
Member

@igchor igchor left a comment

Choose a reason for hiding this comment

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

LGTM

This also makes SharedReadOnly allocations tracking obsolete.
To make use of the USM pool tracking capabilities direct memory
allocations are now made through USMProxyPool.
UsmHostFlags was previously passed to the USMSharedAllocImpl as
unnamed parameter. Currently it's not passed directly anywhere
and causes variable set but not used error.
L0 adapter no longer needs to call zeMemGetAllocProperties to match
an allocation with the corresponding pool. UMF now takes care of that.
@kswiecicki kswiecicki marked this pull request as ready for review September 12, 2023 12:50
@kswiecicki kswiecicki requested review from a team as code owners September 12, 2023 12:50
@kswiecicki kswiecicki force-pushed the llvm-disjoint-pool-free-usm-tracking branch from 52d7266 to 7fafe41 Compare September 12, 2023 12:51
@bader bader merged commit a527dd1 into intel:sycl Sep 14, 2023
@dm-vodopyanov
Copy link
Contributor

dm-vodopyanov commented Sep 14, 2023

Failure in post-commit:
https://github.com/intel/llvm/actions/runs/6181402170/job/16779300704

@kswiecicki please, fix ASAP and add a link to the PR with the fix here

@kswiecicki
Copy link
Contributor Author

@dm-vodopyanov
This should fix it: #11178

againull pushed a commit that referenced this pull request Sep 14, 2023
veselypeta pushed a commit to veselypeta/llvm that referenced this pull request Sep 21, 2023
…0807)

This also makes SharedReadOnly allocations tracking obsolete.
veselypeta pushed a commit to veselypeta/llvm that referenced this pull request Sep 21, 2023
omarahmed1111 pushed a commit to omarahmed1111/unified-runtime that referenced this pull request Oct 23, 2023
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.

6 participants