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

[SYCL][ESIMD] Fix an issue causing a build break when building ESIMD on Windows platform #6789

Merged
merged 2 commits into from
Sep 27, 2022

Conversation

fineg74
Copy link
Contributor

@fineg74 fineg74 commented Sep 15, 2022

No description provided.

@fineg74 fineg74 requested a review from a team as a code owner September 15, 2022 05:44
@@ -16,6 +16,8 @@
#include <sycl/ext/intel/esimd/detail/defines_elementary.hpp>
#include <sycl/ext/intel/esimd/detail/memory_intrin.hpp>

using uint = unsigned int;
Copy link
Contributor

Choose a reason for hiding this comment

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

I don't think spoiling global namespace like this is good. Is there a standard header where it is defined?

Copy link
Contributor

Choose a reason for hiding this comment

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

+1. I think this needs to be fixed

Copy link
Contributor

Choose a reason for hiding this comment

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

Oh, this is already fixed.

Copy link
Contributor

@v-klochkov v-klochkov left a comment

Choose a reason for hiding this comment

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

Looks Ok/good to me.
Just a comment: using 'uint32_t' may be more explicit than 'unsigned'.
'uint32_t' is already used in that detail/memory_intrin.hpp now.
@kbobrovs - FYI and maybe additional comments.

{
sycl::queue q;
sycl::device dev = q.get_device();
sycl::context ctx = q.get_context();
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: 'ctx' is unused

@kbobrovs
Copy link
Contributor

Looks Ok/good to me. Just a comment: using 'uint32_t' may be more explicit than 'unsigned'. 'uint32_t' is already used in that detail/memory_intrin.hpp now. @kbobrovs - FYI and maybe additional comments.

I think using unsigned is OK. It is guaranteed to be at least 16 bits, and the max value returned by the loadstoreAlignMask is 0x7.

@kbobrovs kbobrovs merged commit 3aa48db into intel:sycl Sep 27, 2022
@fineg74 fineg74 deleted the WindowsBuild branch September 27, 2022 19:35
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