-
Notifications
You must be signed in to change notification settings - Fork 788
[SYCL][ABI-Break] Re-design the handling of optional code location argument for USM calls and honor memory allocation properties #6474
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
Conversation
This fixes just one function out of eight. The properties are dropped by |
We probably should. I fixed where I saw the immediate problem reported. Do you prefer we do all at once in this PR? |
BTW, my change broke ABI test (due to new argument added).
I guess I should just leave the existing version and add one that accepts properties, right? |
We are allowed. |
Yes. It's better to fix all them at once and don't wait 7 other bug reports from customers to fix. :) |
@bader, sure, it would just cause this customer problem to hang for some more time.
Any idea where are these coming from and which should be removed, if any? |
It looks they are coming from #5391 |
I don't know for sure, but I speculate that it's added to support the tools added with #5389 and |
Thanks! I am specifically worried that we are polluting the "sycl" namespace with something that is not a part of the SYCL spec. |
I remember that this approach was originally added by @tovinkere to enable tools support. #1129 I vaguely recall discussing this concern with him and he convinced me that there should be no impact on users. |
Thanks @bader ! I discussed this with @tovinkere and uploaded a patch that I think does what is wanted. |
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.
Please, update declarations in the header file - sycl/include/sycl/usm.hpp.
Done |
The fails in
|
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.
👍 Thanks!
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.
Moving _CODELOCPARAM and other macros to common.hpp and simplifying the default argument and its use in the implementation will make it more readable and define a template for use in other places in the future.
1a95743
to
5a90988
Compare
The ESIMD and CUDA failures are unrelated. |
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.
Looks like it breaks ABI so the title should reflect that and the ABI version should be incremented.
Also, before it gets merged it may be worth checking the windows dump and making the corresponding changes there as well so we avoid post-commit failures.
@steffenlarsen : I am getting strange errors when trying to configure the build:
Is there a way to trigger Win build in CI/pre-commit? |
Signed-off-by: Sergey V Maslov <[email protected]>
Signed-off-by: Sergey V Maslov <[email protected]>
Signed-off-by: Sergey V Maslov <[email protected]>
…ders Signed-off-by: Sergey V Maslov <[email protected]>
Signed-off-by: Sergey V Maslov <[email protected]>
Signed-off-by: Sergey V Maslov <[email protected]>
Signed-off-by: Sergey V Maslov <[email protected]>
Signed-off-by: Sergey V Maslov <[email protected]>
Signed-off-by: Sergey V Maslov <[email protected]>
Signed-off-by: Sergey V Maslov <[email protected]>
Signed-off-by: Sergey V Maslov <[email protected]>
Signed-off-by: Sergey V Maslov <[email protected]>
Signed-off-by: Sergey V Maslov <[email protected]>
Signed-off-by: Sergey V Maslov <[email protected]>
Signed-off-by: Sergey V Maslov <[email protected]>
d28437c
to
58adc01
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! 😄
Anything prevents this from being merged? |
I don't think so. Merging! |
Do not drop properties specified by user.
Signed-off-by: Sergey V Maslov [email protected]