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

[ESIMD] Allow small epsilon in FP division result comparison. #1359

Merged
merged 2 commits into from
Nov 14, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions SYCL/ESIMD/api/bin_and_cmp_ops_heavy.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ int main(void) {
passed &= test<char, float, 7, BinOp, VEf, IDf>(div_op, q, 0.000001f);
#ifndef WA_BUG
if (SupportsDouble)
passed &= test<short, double, 7, BinOp, VSf, IDf>(div_op, q);
passed &= test<short, double, 7, BinOp, VEf, IDf>(div_op, q, 0.000001f);
#endif // WA_BUG
passed &= test<float, float, 32, BinOp, VEf, IDf>(div_op, q, 0.000001f);
if (SupportsHalf)
Expand All @@ -312,7 +312,7 @@ int main(void) {
passed &= test<half, unsigned int, 32, BinOp, VSf, IDf>(div_op, q, 1);
#ifndef WA_BUG
if (SupportsDouble && SupportsHalf)
passed &= test<double, half, 7, BinOp, VSf, IDf>(div_op, q);
passed &= test<double, half, 7, BinOp, VEf, IDf>(div_op, q, 0.000001f);
#endif // WA_BUG
passed &= test<short, uint64_t, 7, BinOp, VSf, IDf>(div_op, q);
#ifdef USE_BF16
Expand Down