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

Commit e56b622

Browse files
authored
[SYCL][ESIMD] Fix test for simd broadcast constructor (#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 7c83c66 commit e56b622

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
@@ -148,7 +148,7 @@ class run_test {
148148
const std::string &dst_data_type) {
149149
shared_vector<DstT> result(NumElems, shared_allocator<DstT>(queue));
150150
shared_vector<SrcT> shared_ref_data(1, shared_allocator<SrcT>(queue));
151-
shared_ref_data.push_back(ref_value);
151+
shared_ref_data[0] = ref_value;
152152

153153
queue.submit([&](sycl::handler &cgh) {
154154
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)