-
Notifications
You must be signed in to change notification settings - Fork 769
[SYCL][ESIMD] Add driver option to enable SYCL Explicit SIMD extension. #1743
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
Options name: -fsycl-explicit-simd. This option is temporary until ESIMD and normal SYCL kernels can co-exist in the same source. Signed-off-by: Konstantin S Bobrovsky <konstantin.s.bobrovsky@intel.com>
Is it explained somewhere what is ESIMD? |
This patch needs to come with a LanguageExtensions.rst entry that explains what this is/does. Please add that first. |
Yes. #1731 |
This is the spec of the extension, same documentation style as all other extensions |
How this option helps "ESIMD and normal SYCL kernels to co-exist in the same source"? |
It does not help co-existence. What it does is |
See more details in #1731 |
Sorry, but I have a few more questions: (1) Why this macro should be enabled by the compiler rather than developer or in some library header? Why this macro name does not start with the underscore, which is reserved by the C++ spec for the compiler needs? Where can I find the information about the behavior it's supposed to change?
I can't find anything related to new driver option, macro or FE changed behavior in this document. Should it be updated? Is it related somehow to implementation restrictions? |
This is similar to SYCL_EXTERNAL - I think there was earlier discussion that it is safer to enable in the compiler. But I think it can be defined in library header - should not be a problem. But in this case user would have to be very careful about header inclusion order, and make sure defining header is always included even if it is not needed otherwise. Do you think it is better? Why?
This is github swallowing the
Do you mean
LLVM opts:
FE:
But, as I said in #1731, eventually we'd like to remove that option. So can we go a slightly different way here - start with
I was actually referring to the PR description, not to the doc. The doc is a spec. I think we should have a different doc describing ESIMD compiler usage and temporary restrictions.
Indirectly - via the |
@bader, please comment |
Signed-off-by: Konstantin S Bobrovsky <konstantin.s.bobrovsky@intel.com>
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 good for the CFE, @mdtoguchi needs to approve the driver parts.
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.
Driver changes LGTM.
Options name: -fsycl-explicit-simd.
This option is temporary until ESIMD and normal SYCL kernels can
co-exist in the same source.
Signed-off-by: Konstantin S Bobrovsky konstantin.s.bobrovsky@intel.com