-
Notifications
You must be signed in to change notification settings - Fork 787
[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
[SYCL][UR][L0] Replace memory type look-up with UMF tracking #10807
Conversation
4bc2fef
to
64de0f8
Compare
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; |
There was a problem hiding this comment.
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 { |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
401b08a
to
52d7266
Compare
There was a problem hiding this 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.
52d7266
to
7fafe41
Compare
Failure in post-commit: @kswiecicki please, fix ASAP and add a link to the PR with the fix here |
@dm-vodopyanov |
Post-commit error fix for: #10807
…0807) This also makes SharedReadOnly allocations tracking obsolete.
Post-commit error fix for: intel#10807
Post-commit error fix for: intel/llvm#10807
This also makes SharedReadOnly allocations tracking obsolete.