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

Commit 30ab516

Browse files
committed
Replace conventional C++ mem operation with ESIMD
Signed-off-by: Vyacheslav N Klochkov <[email protected]>
1 parent ab27103 commit 30ab516

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

SYCL/ESIMD/unused_spec_const.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,9 @@ int main() {
3333
// eliminated by DAE optimization OR nullptr is passed for that argument.
3434

3535
// KH.get_specialization_constant<Spec>();
36-
*A += 2;
36+
sycl::ext::intel::esimd::simd<int, 1> V(A);
37+
V += 2;
38+
V.copy_to(A);
3739
});
3840
}).wait();
3941

0 commit comments

Comments
 (0)