Skip to content

[SYCL] Report an error when SYCL_DEVICE_TYPE is set incorrectly. #1134

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 1 commit into from
Feb 26, 2020

Conversation

glyons-intel
Copy link
Contributor

Signed-off-by: Gail Lyons [email protected]

Copy link
Contributor

@AGindinson AGindinson left a comment

Choose a reason for hiding this comment

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

Minor comments:

@glyons-intel
Copy link
Contributor Author

glyons-intel commented Feb 20, 2020

@AGindinson & @bader
I did combine both the positive and negative tests into one file, as requested.
Gail

@AlexeySachkov
Copy link
Contributor

Interesting... I don't expect clang-format to indent namespace here.
I thought that it's fixed by intel#1121.
@AlexeySachkov, any ideas what could be the problem? Old clang-format version?

Most likely. Corresponding feature was added to clang-format just ~8 month ago: https://reviews.llvm.org/D37813

@glyons-intel
Copy link
Contributor Author

This is the version of clang-format that I am using:

% clang-format --version
clang-format version 11.0.0 (https://github.com/glyons-intel/llvm 41b73bec8453bc22e03dccb27be9472072770290)

I invoked it like this:
clang-format --style=llvm force_device.cpp > new_force_device.cpp

@bader
Copy link
Contributor

bader commented Feb 25, 2020

This is the version of clang-format that I am using:

% clang-format --version
clang-format version 11.0.0 (https://github.com/glyons-intel/llvm 41b73bec8453bc22e03dccb27be9472072770290)

I invoked it like this:
clang-format --style=llvm force_device.cpp > new_force_device.cpp

Could you remove --style=llvm, please?
I think it's the problem. It disables the configuration we did for the project here: https://github.com/intel/llvm/blob/sycl/sycl/.clang-format.

@glyons-intel
Copy link
Contributor Author

Yes, that made a difference.
I think I read about using --style=llvm in the standard clang-format documentation.
I will update my patch.

@bader bader self-requested a review February 25, 2020 16:20
Copy link
Contributor

@bader bader left a comment

Choose a reason for hiding this comment

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

LGTM. Thanks!

@bader bader requested a review from romanovvlad February 26, 2020 10:09
@bader bader merged commit 0125496 into intel:sycl Feb 26, 2020
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