Skip to content
This repository was archived by the owner on Mar 28, 2023. It is now read-only.

[ESIMD] Allow constructing simd_view from simd #454

Merged
merged 9 commits into from
Dec 22, 2021

Conversation

DenisBakhvalov
Copy link

No description provided.

@kbobrovs
Copy link

kbobrovs commented Nov 2, 2021

@v-klochkov, could you please finish this PR as well.

// construct complete view of a vector.
passed &= test(q, "constructor from simd",
[](auto &va_view, auto &vb_view) SYCL_ESIMD_FUNCTION {
simd<int, 4> vb = vb_view;
Copy link

Choose a reason for hiding this comment

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

Please add a test case with VL=1

Copy link

@v-klochkov v-klochkov Nov 4, 2021

Choose a reason for hiding this comment

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

I added the test case for VL=1 to all tests in this LIT: 0d2eb25.

During adding that I discovered that 'simd v = other_simd.select<4,1>(0)' does not work and that may be pretty inconvenient. That is also added here: intel/llvm#4892

Signed-off-by: Vyacheslav N Klochkov <[email protected]>
@v-klochkov v-klochkov marked this pull request as ready for review December 17, 2021 00:05
@v-klochkov
Copy link

The only failed test in CI is invalid_event.cpp, which has been disabled for opencl+acc here: #652

kbobrovs
kbobrovs previously approved these changes Dec 22, 2021
va_view_copy = vb_view_copy;
});
passed &= tests(q, "copy constructor",
[](auto &va_view, auto &vb_view) SYCL_ESIMD_FUNCTION {
Copy link

Choose a reason for hiding this comment

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

it is really hard to guess what this 'auto' means. Can concrete simd_view type be specified?

@v-klochkov
Copy link

@vladimirlaz - would you please merge this PR.

@vladimirlaz vladimirlaz merged commit ce0b087 into intel:intel Dec 22, 2021
aelovikov-intel pushed a commit to aelovikov-intel/llvm that referenced this pull request Mar 27, 2023
…#454)

Signed-off-by: Vyacheslav N Klochkov <[email protected]>
Co-authored-by: Vyacheslav N Klochkov <[email protected]>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants