-
Notifications
You must be signed in to change notification settings - Fork 130
[ESIMD] Allow constructing simd_view from simd #454
Conversation
@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; |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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]>
The only failed test in CI is invalid_event.cpp, which has been disabled for opencl+acc here: #652 |
va_view_copy = vb_view_copy; | ||
}); | ||
passed &= tests(q, "copy constructor", | ||
[](auto &va_view, auto &vb_view) SYCL_ESIMD_FUNCTION { |
There was a problem hiding this comment.
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?
@vladimirlaz - would you please merge this PR. |
…#454) Signed-off-by: Vyacheslav N Klochkov <[email protected]> Co-authored-by: Vyacheslav N Klochkov <[email protected]>
No description provided.