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

Commit 636b587

Browse files
authored
[SYCL][ESIMD] Change comparison method for for double arguments (#1181)
Make epsilon comparison for double type
1 parent 3830247 commit 636b587

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

SYCL/ESIMD/api/bin_and_cmp_ops_heavy.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ int main(void) {
260260
auto arith_ops = esimd_test::ArithBinaryOps;
261261
passed &= test<unsigned char, int, 1, BinOp, VSf, IDf>(arith_ops, q);
262262
passed &= test<char, float, 7, BinOp, VEf, IDf>(arith_ops, q, 0.000001f);
263-
passed &= test<short, double, 7, BinOp, VSf, IDf>(arith_ops, q);
263+
passed &= test<short, double, 7, BinOp, VEf, IDf>(arith_ops, q, 1e-15);
264264
passed &= test<float, float, 32, BinOp, VEf, IDf>(arith_ops, q, 0.000001f);
265265
passed &= test<half, char, 1, BinOp, verify_n, IDf>(arith_ops, q, 1);
266266
passed &= test<half, unsigned int, 32, BinOp, VSf, IDf>(arith_ops, q, 1);

0 commit comments

Comments
 (0)