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

Commit 3a6b647

Browse files
committed
[SYCL][ESIMD] Enable tests result verification and add one more macros
1 parent 841c16b commit 3a6b647

File tree

1 file changed

+21
-5
lines changed

1 file changed

+21
-5
lines changed

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

Lines changed: 21 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,15 @@
1212
// "XREQUIRES".
1313
// UNSUPPORTED: cuda, hip
1414
// RUN: %clangxx -fsycl %s -fsycl-device-code-split=per_kernel -o %t.out
15-
// XRUN: %GPU_RUN_PLACEHOLDER %t.out
16-
// RUN: false
17-
// XFAIL: *
18-
// TODO The tests freezed during runtime when using simd<char, 32>. The test
19-
// must be enabled when it is resolved.
15+
// RUN: %GPU_RUN_PLACEHOLDER %t.out
16+
//
17+
// TODO The tests freezed during runtime when using simd<char, 32>. The
18+
// SIMD_RUN_TEST_WITH_CHAR_TYPES macros must be enabled when it is resolved.
19+
//
20+
// TODO This test disabled due to simd<short, 32> vector filled with unexpected
21+
// values from 16th element. The issue was created
22+
// https://github.com/intel/llvm/issues/5245 and and the
23+
// SIMD_RUN_TEST_WITH_VECTOR_LEN_32 macros must be enabled when it is resolved.
2024
//
2125
// Test for simd constructor from vector.
2226
// This test uses different data types, dimensionality and different simd
@@ -159,8 +163,20 @@ int main(int, char **) {
159163

160164
bool passed = true;
161165

166+
#ifdef SIMD_RUN_TEST_WITH_CHAR_TYPES
162167
const auto types = get_tested_types<tested_types::all>();
168+
#else
169+
const auto types = named_type_pack<short, unsigned short, int, unsigned int,
170+
long, unsigned long, float, double,
171+
long long, unsigned long long>(
172+
{"short", "unsigned short", "int", "unsigned int", "long",
173+
"unsigned long", "float", "double", "long long", "unsigned long long"});
174+
#endif
175+
#ifdef SIMD_RUN_TEST_WITH_VECTOR_LEN_32
163176
const auto dims = get_all_dimensions();
177+
#else
178+
const auto dims = values_pack<1, 8, 16>();
179+
#endif
164180

165181
// Run for specific combinations of types, vector length and invocation
166182
// contexts.

0 commit comments

Comments
 (0)