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

[SYCL][ESIMD] Add tests on simd load from accessors #921

Merged
merged 11 commits into from
Apr 1, 2022

Conversation

yuriykoch
Copy link

@yuriykoch yuriykoch commented Mar 15, 2022

Based on idea that offset should be a multiplier of alignment flag, and
alignment flag should be less strict than simd element alignment itself
for simd load constructor to work as expected.

Signed-off-by: Kochetkov, Yuriy [email protected]

To distinguish from the simd load constructors from accessor

Signed-off-by: Kochetkov, Yuriy <[email protected]>
To use generic code for both USM and accessor-based tests

Signed-off-by: Kochetkov, Yuriy <[email protected]>
To clarify exact value used for the load constructor tests

Signed-off-by: Kochetkov, Yuriy <[email protected]>
Makes possible:
 - power-of-two smoke tests with overaligned<1>
 - byte order smoke tests

Signed-off-by: Kochetkov, Yuriy <[email protected]>
Based on idea that offset should be a multiplier of alignment for
simd load constructor to work as expected

Signed-off-by: Kochetkov, Yuriy <[email protected]>
@yuriykoch
Copy link
Author

Rebased over the latest intel branch to have all changes from #917

@vasilytric Would you mind to take a look? I've tried to split changes in ctor_load_usm tests on per-commit basis to make review easier.

@yuriykoch
Copy link
Author

@sndmitriev Would you mind to take a look?

@yuriykoch
Copy link
Author

As there is a restriction on possible offset values based on alignof(DataT) I would need to fix code a bit after merging #926
Converted to the draft till then.

@yuriykoch
Copy link
Author

@kbobrovs Would you mind to take a look?

const auto single_type =
named_type_pack<signed char>::generate("signed char");

passed &= for_all_combinations<ctors::run_test>(
Copy link

Choose a reason for hiding this comment

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

This is really cool - the robustness of the infra to create new test combinations!

@kbobrovs
Copy link

kbobrovs commented Apr 1, 2022

@vladimirlaz, the failure is unrelated - this is a clang++ crash on test compilation. Recently internal tickets were submitted on similar cases - e.g. by @dongkyunahn-intel. Please merge.

Failed Tests (1):
SYCL :: ESIMD/fp_args_size/fp_args_char_int_size_512.cpp

@vladimirlaz vladimirlaz merged commit 034142e into intel:intel Apr 1, 2022
myler pushed a commit to myler/llvm-test-suite that referenced this pull request Jun 17, 2022
Based on idea that offset should be a multiplier of alignment flag, and
alignment flag should be less strict than simd element alignment itself
for simd load constructor to work as expected.

Signed-off-by: Kochetkov, Yuriy [email protected]
myler pushed a commit to myler/llvm-test-suite that referenced this pull request Jun 17, 2022
Auto pulldown and update tc files for xmain branch on 20220512
aelovikov-intel pushed a commit to aelovikov-intel/llvm that referenced this pull request Mar 27, 2023
…suite#921)

Based on idea that offset should be a multiplier of alignment flag, and
alignment flag should be less strict than simd element alignment itself
for simd load constructor to work as expected.

Signed-off-by: Kochetkov, Yuriy [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