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

Commit 41727c2

Browse files
authored
[SYCL] Disable reduction tests due to sporadic SegFaults in level_zero:gpu (#457)
This patch also eliminates compilation warnings caused by usage of deprecated type ::half (replaced by sycl::half), and enables some tests for ACC. Signed-off-by: Vyacheslav N Klochkov <[email protected]>
1 parent 9497780 commit 41727c2

19 files changed

+55
-12
lines changed

SYCL/Reduction/reduction_nd_range_scalar.hpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,13 @@ int test(queue &Q, T Identity, T Init, BinaryOperation BOp,
3030
return 0;
3131
}
3232

33+
// TODO: Perhaps, this is a _temporary_ fix for CI. The test may run
34+
// for too long when the range is big. That is especially bad on ACC.
35+
if (GlobalRange.size() > 65536 && Q.get_device().is_accelerator()) {
36+
std::cout << " SKIPPED due to risk of timeout in CI" << std::endl;
37+
return 0;
38+
}
39+
3340
buffer<T, Dims> InBuf(GlobalRange);
3441
buffer<T, 1> OutBuf(1);
3542

SYCL/Reduction/reduction_nd_s0_dw.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33
// RUN: %GPU_RUN_PLACEHOLDER %t.out
44
// RUN: %ACC_RUN_PLACEHOLDER %t.out
55

6+
// TODO: test disabled due to sporadic fails in level_zero:gpu RT.
7+
// UNSUPPORTED: linux && level_zero
8+
69
// This test performs basic checks of parallel_for(nd_range, reduction, func)
710
// with reductions initialized with 0-dimensional discard_write accessor.
811

SYCL/Reduction/reduction_nd_s0_rw.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33
// RUN: %GPU_RUN_PLACEHOLDER %t.out
44
// RUN: %ACC_RUN_PLACEHOLDER %t.out
55

6+
// TODO: test disabled due to sporadic fails in level_zero:gpu RT.
7+
// UNSUPPORTED: linux && level_zero
8+
69
// This test performs basic checks of parallel_for(nd_range, reduction, func)
710
// with reductions initialized with 0-dimensional read_write accessor.
811

SYCL/Reduction/reduction_nd_s1_dw.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44
// RUN: %GPU_RUN_PLACEHOLDER %t.out
55
// RUN: %ACC_RUN_PLACEHOLDER %t.out
66

7+
// TODO: test disabled due to sporadic fails in level_zero:gpu RT.
8+
// UNSUPPORTED: linux && level_zero
9+
710
// This test performs basic checks of parallel_for(nd_range, reduction, func)
811
// with reductions initialized with 1-dimensional discard_write accessor
912
// accessing 1 element buffer.

SYCL/Reduction/reduction_nd_s1_rw.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33
// RUN: %GPU_RUN_PLACEHOLDER %t.out
44
// RUN: %ACC_RUN_PLACEHOLDER %t.out
55

6+
// TODO: test disabled due to sporadic fails in level_zero:gpu RT.
7+
// UNSUPPORTED: linux && level_zero
8+
69
// This test performs basic checks of parallel_for(nd_range, reduction, func)
710
// with reductions initialized with 1-dimensional read_write accessor
811
// accessing 1 element buffer.

SYCL/Reduction/reduction_range_1d_s0_dw.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@
66
// implementation. Enable testing when implementation is fixed.
77
// RUNx: %ACC_RUN_PLACEHOLDER %t.out
88

9+
// TODO: test disabled due to sporadic fails in level_zero:gpu RT.
10+
// UNSUPPORTED: linux && level_zero
11+
912
// This test performs basic checks of parallel_for(range<1>, reduction, func)
1013
// with reductions initialized with 0-dimensional discard_write accessor
1114
// accessing 1 element buffer.

SYCL/Reduction/reduction_range_1d_s0_rw.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@
66
// implementation. Enable testing when implementation is fixed.
77
// RUNx: %ACC_RUN_PLACEHOLDER %t.out
88

9+
// TODO: test disabled due to sporadic fails in level_zero:gpu RT.
10+
// UNSUPPORTED: linux && level_zero
11+
912
// This test performs basic checks of parallel_for(range<1>, reduction, func)
1013
// with reductions initialized with 0-dimensional read_write accessor
1114
// accessing 1 element buffer.

SYCL/Reduction/reduction_range_1d_s1_dw.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33
// RUN: %GPU_RUN_PLACEHOLDER %t.out
44
// RUN: %ACC_RUN_PLACEHOLDER %t.out
55

6+
// TODO: test disabled due to sporadic fails in level_zero:gpu RT.
7+
// UNSUPPORTED: linux && level_zero
8+
69
#include "reduction_range_scalar.hpp"
710

811
// This test performs basic checks of parallel_for(range<1>, reduction, func)

SYCL/Reduction/reduction_range_1d_s1_rw.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33
// RUN: %GPU_RUN_PLACEHOLDER %t.out
44
// RUN: %ACC_RUN_PLACEHOLDER %t.out
55

6+
// TODO: test disabled due to sporadic fails in level_zero:gpu RT.
7+
// UNSUPPORTED: linux && level_zero
8+
69
// This test performs basic checks of parallel_for(range<1>, reduction, func)
710
// with reductions initialized with 1-dimensional read_write accessor
811
// accessing 1 element buffer.

SYCL/Reduction/reduction_range_2d_s1_dw.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@
66
// implementation. Enable testing when implementation is fixed.
77
// RUNx: %ACC_RUN_PLACEHOLDER %t.out
88

9+
// TODO: test disabled due to sporadic fails in level_zero:gpu RT.
10+
// UNSUPPORTED: linux && level_zero
11+
912
// This test performs basic checks of parallel_for(range<2>, reduction, func)
1013
// with reductions initialized with 1-dimensional discard_write accessor
1114
// accessing 1 element buffer.

0 commit comments

Comments
 (0)