Skip to content
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

[SYCLomatic] null_type #528

Merged

Conversation

danhoeflinger
Copy link
Contributor

@danhoeflinger danhoeflinger commented Jan 30, 2023

Implementation for dpct::null_type for to indicate the lack of argument.

Signed-off-by: Dan Hoeflinger <[email protected]>
@danhoeflinger danhoeflinger requested a review from a team as a code owner January 30, 2023 18:13
@@ -22,6 +22,8 @@

namespace dpct {

struct null_type {};
Copy link
Contributor

Choose a reason for hiding this comment

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

this PR doesn't show the use of null_type{}. So not sure how it is used and why it is necessary to add null_type.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I've just added a new PR into SYCLomatic-test which shows the intended usage of dpct::null_type.

oneapi-src/SYCLomatic-test#219

It will also likely be used in future dpct helper header APIs to a similar effect.

@danhoeflinger danhoeflinger changed the title [SYCLomatic] [DPCT] null_type [SYCLomatic] null_type Feb 16, 2023
Copy link
Contributor

@zhimingwang36 zhimingwang36 left a comment

Choose a reason for hiding this comment

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

LGTM

@zhimingwang36 zhimingwang36 merged commit 8247d8e into oneapi-src:SYCLomatic Feb 16, 2023
ShengchenJ pushed a commit to ShengchenJ/SYCLomatic that referenced this pull request Sep 27, 2024
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.

2 participants