-
Notifications
You must be signed in to change notification settings - Fork 131
[SYCL] Specified ONEAPI aliases in functions and function objects #300
Conversation
Signed-off-by: mdimakov <maxim.dimakov@intel.com>
Signed-off-by: mdimakov <maxim.dimakov@intel.com>
Not all the places with functions are here. If the changes will be allowed I'll add another |
@maximdimakov could you please add motivation for the change? Is there any problem resolved? |
I changed the description of PR |
As soon as sub_group interface has been moved to sycl:: isn't it reasonable to update tests accordingly |
@vladimirlaz sub_group class will be moved to sycl:: but I will add aliases in ONEAPI:: so ONEAPI::sub_group will remain available. |
Are you saying that If so, I don't think that's a good idea. If I understand correctly, that would allow a developer to write something like this: sycl::sub_group sg = it.get_sub_group(); // create a standard SYCL 2020 sub-group
auto x = sg.load(ptr); // use a member function from sycl::ONEAPI::sub_group Would it prevent overloading a function on both The extension mechanism was designed to make it obvious when a user calls something that is not part of the standard -- in this case, they should create a different I think my preferred solution would be to have Tagging @gmlueck for his opinion, since this pertains to the extension mechanism. |
If the
Even if they are exactly the same, it seems like we may not want an alias because we will want to deprecate the |
It looks like the requested change should be applied to RT headers. |
Providing ONEAPI aliases for function objects is needed for intel/llvm#3868 |
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.
I'm not opposed to rewriting the existing tests to be more explicit in their use of namespaces.
…tel#300) * [SYCL] Added test for constexpr half operations Signed-off-by: mdimakov <maxim.dimakov@intel.com>
…tel/llvm-test-suite#300) * [SYCL] Added test for constexpr half operations Signed-off-by: mdimakov <maxim.dimakov@intel.com>
Specified ONEAPI:: aliases in functions and function objects from ONEAPI namespace.
Providing the aliases for function objects is needed for intel/llvm#3868