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

[ESIMD] Add bfloat16 test cases. #1193

Merged
merged 6 commits into from
Sep 4, 2022
Merged

Conversation

kbobrovs
Copy link

@kbobrovs kbobrovs commented Sep 1, 2022

Complementary compiler patch: intel/llvm#6664

Signed-off-by: Konstantin S Bobrovsky [email protected]

@kbobrovs kbobrovs changed the title [ESIMD] Add bfloat16 test cases - binary ops and unary plus. [ESIMD] Add bfloat16 test cases. Sep 1, 2022
@kbobrovs
Copy link
Author

kbobrovs commented Sep 1, 2022

/verify with intel/llvm#6664

passed &= test<float, 16>(signed_ops, q);
passed &= test<double, 16>(signed_ops, q);

#ifdef USE_BF16

Choose a reason for hiding this comment

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

The obvious downside of this approach is the duplication of checks/tests.
I.e. on PVC the lines 178-184 started twice: 1st time as part of unary_ops_heavy.cpp test, and then (the same code + line 189) as part of unary_ops_heavy_pvc.cpp

Copy link
Author

Choose a reason for hiding this comment

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

Right, good catch! I will add proper test selection.

@kbobrovs kbobrovs requested a review from v-klochkov September 2, 2022 04:48
@kbobrovs
Copy link
Author

kbobrovs commented Sep 4, 2022

Linux all passed (Jenkins/pre-ci-linux did not refresh icon for some reason), Windows - usual fp64 related failures unrelated to this patch. Merging.

@kbobrovs kbobrovs merged commit d89605a into intel:intel Sep 4, 2022
myler pushed a commit to myler/llvm-test-suite that referenced this pull request Mar 22, 2023
* [ESIMD] Add bfloat16 test cases - binary ops, unary plus, memory access, taking a view.
aelovikov-intel pushed a commit to aelovikov-intel/llvm that referenced this pull request Mar 27, 2023
* [ESIMD] Add bfloat16 test cases - binary ops, unary plus, memory access, taking a view.
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.

2 participants