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

Commit 37e5e50

Browse files
committed
[SYCL][ESIMD] Enable test run
XFAIL remains so if there is PR with move constructors added the CI will fail effectively specifying the need to change the tests The feature flag was hard-coded into the source to disable test freeze for any use case, with or without parsing the RUN directives Signed-off-by: Kochetkov, Yuriy <[email protected]>
1 parent 5a4f3ec commit 37e5e50

File tree

1 file changed

+13
-4
lines changed

1 file changed

+13
-4
lines changed

SYCL/ESIMD/api/functional/ctors/ctor_move.cpp

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,18 +10,23 @@
1010
// TODO Remove the level_zero restriction once the test is supported on other
1111
// platforms
1212
// UNSUPPORTED: cuda, hip
13-
// XRUN: %clangxx -fsycl %s -fsycl-device-code-split=per_kernel -o %t.out
14-
// XRUN: %GPU_RUN_PLACEHOLDER %t.out
15-
// RUN: false
13+
// RUN: %clangxx -fsycl %s -fsycl-device-code-split=per_kernel -o %t.out
14+
// RUN: %GPU_RUN_PLACEHOLDER %t.out
1615
// XFAIL: *
17-
// TODO Remove once the simd vector provides move constructor
16+
// TODO Remove XFAIL once the simd vector provides move constructor
1817
//
1918
// Test for esimd move constructor
2019
// The test creates source simd instance with reference data and invokes move
2120
// constructor in different C++ contexts to create a new simd instance from the
2221
// source simd instance. It is expected for a new simd instance to store
2322
// bitwise same data as the one passed as the source simd constructor.
2423

24+
// The following issues for simd<T,32> observed:
25+
// - freeze with T in {char, unsigned char, singned char};
26+
// - runtime failure with T in {short, unsigned short}.
27+
// TODO Remove once the freeze is fixed
28+
#define SKIP_VECTOR_LEN_32
29+
2530
// The test proxy is used to verify the move constructor was called actually.
2631
#define __ESIMD_ENABLE_TEST_PROXY
2732

@@ -217,7 +222,11 @@ template <typename DataT, int NumElems, typename TestCaseT> class run_test {
217222
int main(int, char **) {
218223
bool passed = true;
219224
const auto types = get_tested_types<tested_types::all>();
225+
#ifdef SKIP_VECTOR_LEN_32
226+
const auto dims = values_pack<1, 8, 16>();
227+
#else
220228
const auto dims = get_all_dimensions();
229+
#endif
221230

222231
sycl::queue queue(esimd_test::ESIMDSelector{},
223232
esimd_test::createExceptionHandler());

0 commit comments

Comments
 (0)