Skip to content

Commit c95b440

Browse files
vasilytricbb-sycl
authored andcommitted
[SYCL][ESIMD] Fix test for simd broadcast constructor (intel#966)
* [SYCL][ESIMD] Fix test for simd broadcast constructor Assign expected value to the first element * [SYCL][ESIMD] Enable test for simd broadcast constructor
1 parent 0a7770e commit c95b440

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

SYCL/ESIMD/api/functional/ctors/ctor_broadcast.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ class run_test {
156156
const std::string &dst_data_type) {
157157
shared_vector<DstT> result(NumElems, shared_allocator<DstT>(queue));
158158
shared_vector<SrcT> shared_ref_data(1, shared_allocator<SrcT>(queue));
159-
shared_ref_data.push_back(ref_value);
159+
shared_ref_data[0] = ref_value;
160160

161161
queue.submit([&](sycl::handler &cgh) {
162162
const SrcT *const ref = shared_ref_data.data();

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

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,6 @@
1313
// UNSUPPORTED: cuda, hip
1414
// XRUN: %clangxx -fsycl %s -fsycl-device-code-split=per_kernel -o %t.out
1515
// XRUN: %GPU_RUN_PLACEHOLDER %t.out
16-
// RUN: false
17-
// XFAIL: *
18-
// TODO The simd filled with unexpected values.
1916
//
2017
// Test for simd broadcast constructor.
2118
// This test uses different data types, sizes and different simd constructor

0 commit comments

Comments
 (0)