Skip to content

[SYCL] Support unnamed lambda kernels #387

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Merged
merged 2 commits into from
Jul 30, 2019
Merged

Conversation

bader
Copy link
Contributor

@bader bader commented Jul 25, 2019

Add support for kernels without kernel name. Requires compiling
with -DUNNAMED_LAMBDA_EXT. Uses new __unique_stable_name
compiler built-in.

Add support for kernels without kernel name. Requires compiling
with -DUNNAMED_LAMBDA_EXT. Uses new __unique_stable_name
compiler built-in.

Signed-off-by: Roland Schulz <roland.schulz@intel.com>
Signed-off-by: Alexey Bader <alexey.bader@intel.com>
@bader

This comment has been minimized.

@erichkeane

This comment has been minimized.

User activates the extension with the new flag rather
than previously with -DUNNAMED_LAMBDA_EXT.

Fixes that the err_sycl_kernel_name_class_not_top_level
is an error without the extension and not a warning with it.

Only the version of the integration header needed is generated
(rather than both version with #ifdef).

Defines __SYCL_UNNAMED_LAMBDA__ when extension is active.

Signed-off-by: Roland Schulz <roland.schulz@intel.com>
@bader bader merged commit 422a5fa into intel:sycl Jul 30, 2019
@bader bader deleted the unnamed_lambda branch August 16, 2019 15:45
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants