Skip to content

[SYCL][ESIMD] Move ESIMD APIs to sycl::ext::intel::experimental::esimd. #3695

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 3 commits into from
May 6, 2021

Conversation

kbobrovs
Copy link
Contributor

@kbobrovs kbobrovs commented May 5, 2021

This makes the ESIMD extension namespace conforming to the SYCL2020 spec.
Necessary file renames will be done as a separate commit.

Changes to the llvm-test-suite are underway

Signed-off-by: kbobrovs [email protected]

@kbobrovs kbobrovs requested review from DenisBakhvalov and a team as code owners May 5, 2021 05:21
Copy link
Contributor

@DenisBakhvalov DenisBakhvalov left a comment

Choose a reason for hiding this comment

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

The change LGTM, however, please address CI failures. Looks like a few more changes are needed.

kbobrovs added 3 commits May 5, 2021 15:47
This makes the ESIMD extension namespace conforming to the SYCL2020 spec.
Necessary file renames will be done as a separate commit.

Signed-off-by: kbobrovs <[email protected]>
Signed-off-by: kbobrovs <[email protected]>
@kbobrovs kbobrovs force-pushed the change_esimd_namespace branch from 3b1ff3a to 5218483 Compare May 5, 2021 23:14
@kbobrovs
Copy link
Contributor Author

kbobrovs commented May 5, 2021

Fixed test failures, rebased.

@kbobrovs kbobrovs requested a review from DenisBakhvalov May 5, 2021 23:15
@kbobrovs
Copy link
Contributor Author

kbobrovs commented May 5, 2021

@romanovvlad - please review few lines of changes in sycl/include/CL/sycl

@kbobrovs
Copy link
Contributor Author

kbobrovs commented May 6, 2021

Jenkins failures are all SYCL/ESIMD tests from llvm-test-suite. This is fixed by intel/llvm-test-suite#270

@kbobrovs
Copy link
Contributor Author

kbobrovs commented May 6, 2021

@DenisBakhvalov, ping

@@ -18,7 +18,8 @@
#include <assert.h>
#include <cstdint>

#define __SIGD sycl::INTEL::gpu::detail
#define __SEIEED sycl::ext::intel::experimental::esimd::detail
Copy link
Contributor

Choose a reason for hiding this comment

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

For a future change, I'd like to see these macro names not be first letter of each of the namespaces. I'd like to have you choose a name like __ESIMD_NS that was at least a bit meaningful. But more importantly when ESIMD would move out of experimental, or otherwise change, I don't think you should have to change every single place these macros are used to designate the namespace. The changes to these added to a huge number of extra changes in this PR.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good point. Maybe it is better to do this change in this PR and retest to avoid disturbance in future. @pvchupin - what do you think?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@kbsmith-intel, how about:
__ESIMD_NS, __ESIMD_DETAIL_NS, __ESIMD_EMU_NS, __ESIMD_EMU_DETAIL_NS
?

Copy link
Contributor

Choose a reason for hiding this comment

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

Those names look good to me.

Copy link
Contributor

Choose a reason for hiding this comment

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

These are internal macro, right? I'd prefer it to go as a follow up change. Since we already committed tests we should commit the change asap.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, those are internal. OK, I will make this as a follow-up PR

Copy link
Contributor

Choose a reason for hiding this comment

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

I think followup would be fine also, and agree with Pavel that since tests have changed, getting source changes in ASAP is desired.

@pvchupin pvchupin merged commit 92da579 into intel:sycl May 6, 2021
@kbobrovs kbobrovs deleted the change_esimd_namespace branch May 11, 2021 22:52
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.

5 participants