Skip to content

[SYCL] Fix one more warning coming from SYCL headers #1758

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 5 commits into from
May 27, 2020

Conversation

fadeeval
Copy link
Contributor

Fixed "warning: '&&' within '||' [-Wlogical-op-parentheses]" in types.hpp: it wasn't caught by the originally added test, because it is triggered only if corresponding template is instantiated.

Adjusted clang arguments in existing test for warnings as follow-up on #1583

Signed-off-by: Aleksander Fadeev aleksander.fadeev@intel.com

fadeeval added 3 commits May 25, 2020 14:54
Signed-off-by: Aleksander Fadeev <aleksander.fadeev@intel.com>
Signed-off-by: Aleksander Fadeev <aleksander.fadeev@intel.com>
Signed-off-by: Aleksander Fadeev <aleksander.fadeev@intel.com>
@fadeeval fadeeval requested review from turinevgeny and a team as code owners May 26, 2020 08:25
@fadeeval fadeeval requested a review from s-kanaev May 26, 2020 08:25
@fadeeval fadeeval requested a review from AlexeySachkov May 26, 2020 10:47
Signed-off-by: Aleksander Fadeev <aleksander.fadeev@intel.com>
myQueue.submit([&](handler& cgh) {
auto writeResult = resultBuf.get_access<access::mode::write>(cgh);
cgh.single_task<class kernel_name>([=]() {
writeResult[0] = (vec<int, 4>{1, 2, 3, 4}).template convert<long>();
});
});
Copy link
Contributor

Choose a reason for hiding this comment

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

Are there any cases that were covered with old test and not covered by the new test?

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 think no, there was just a simple program that launches the check of warnings.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

But maybe we should ask the code owner.

Signed-off-by: Aleksander Fadeev <aleksander.fadeev@intel.com>
@fadeeval
Copy link
Contributor Author

@turinevgeny, approve, please, if no objections.

Copy link
Contributor

@s-kanaev s-kanaev left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

@turinevgeny turinevgeny left a comment

Choose a reason for hiding this comment

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

LGTM.

@bader bader merged commit a0b0f67 into intel:sycl May 27, 2020
@fadeeval fadeeval deleted the private/fadeeval/MW_fix branch June 1, 2020 14:12
bb-sycl pushed a commit that referenced this pull request Jan 18, 2023
…fo (#1758)

Also allow binary float spec constant input by passing a hex value with
0x prefix.

Original commit:
KhronosGroup/SPIRV-LLVM-Translator@b0c2bb1
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.

4 participants