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

Commit 3d03969

Browse files
committed
write -> read (superficial change in context of test).
Signed-off-by: JackAKirk <[email protected]>
1 parent 86176da commit 3d03969

File tree

3 files changed

+12
-12
lines changed

3 files changed

+12
-12
lines changed

SYCL/DeviceLib/half_precision_math_test_marray_vec.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ template <typename T, size_t N> bool checkEqual(marray<T, N> A, size_t B) {
3939
deviceQueue.submit([&](handler &cgh) { \
4040
accessor<T, 1, access::mode::write, target::device> res_access( \
4141
buffer1, cgh); \
42-
accessor<T, 1, access::mode::write, target::device> input_access( \
42+
accessor<T, 1, access::mode::read, target::device> input_access( \
4343
buffer2, cgh); \
4444
cgh.single_task<TypeHelper<class half_precision##NAME, T>>([=]() { \
4545
res_access[0] = sycl::half_precision::NAME(input_access[0]); \
@@ -75,9 +75,9 @@ HALF_PRECISION_OPERATOR(recip)
7575
deviceQueue.submit([&](handler &cgh) { \
7676
accessor<T, 1, access::mode::write, target::device> res_access( \
7777
buffer1, cgh); \
78-
accessor<T, 1, access::mode::write, target::device> input1_access( \
78+
accessor<T, 1, access::mode::read, target::device> input1_access( \
7979
buffer2, cgh); \
80-
accessor<T, 1, access::mode::write, target::device> input2_access( \
80+
accessor<T, 1, access::mode::read, target::device> input2_access( \
8181
buffer3, cgh); \
8282
cgh.single_task<TypeHelper<class half_precision2##NAME, T>>([=]() { \
8383
res_access[0] = \

SYCL/DeviceLib/math_test_marray_vec_common.hpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ template <typename T, size_t N> bool checkEqual(marray<T, N> A, size_t B) {
3232
deviceQueue.submit([&](handler &cgh) { \
3333
accessor<T, 1, access::mode::write, target::device> res_access( \
3434
buffer1, cgh); \
35-
accessor<T, 1, access::mode::write, target::device> input_access( \
35+
accessor<T, 1, access::mode::read, target::device> input_access( \
3636
buffer2, cgh); \
3737
cgh.single_task<TypeHelper<class a##NAME, T>>( \
3838
[=]() { res_access[0] = NAME(input_access[0]); }); \
@@ -93,9 +93,9 @@ OPERATOR(trunc)
9393
deviceQueue.submit([&](handler &cgh) { \
9494
accessor<T, 1, access::mode::write, target::device> res_access( \
9595
buffer1, cgh); \
96-
accessor<T, 1, access::mode::write, target::device> input1_access( \
96+
accessor<T, 1, access::mode::read, target::device> input1_access( \
9797
buffer2, cgh); \
98-
accessor<T, 1, access::mode::write, target::device> input2_access( \
98+
accessor<T, 1, access::mode::read, target::device> input2_access( \
9999
buffer3, cgh); \
100100
cgh.single_task<TypeHelper<class a##NAME, T>>([=]() { \
101101
res_access[0] = NAME(input1_access[0], input2_access[0]); \
@@ -134,11 +134,11 @@ OPERATOR_2(remainder)
134134
deviceQueue.submit([&](handler &cgh) { \
135135
accessor<T, 1, access::mode::write, target::device> res_access( \
136136
buffer1, cgh); \
137-
accessor<T, 1, access::mode::write, target::device> input1_access( \
137+
accessor<T, 1, access::mode::read, target::device> input1_access( \
138138
buffer2, cgh); \
139-
accessor<T, 1, access::mode::write, target::device> input2_access( \
139+
accessor<T, 1, access::mode::read, target::device> input2_access( \
140140
buffer3, cgh); \
141-
accessor<T, 1, access::mode::write, target::device> input3_access( \
141+
accessor<T, 1, access::mode::read, target::device> input3_access( \
142142
buffer4, cgh); \
143143
cgh.single_task<TypeHelper<class a##NAME, T>>([=]() { \
144144
res_access[0] = \

SYCL/DeviceLib/native_math_test_marray_vec.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ template <typename T, size_t N> bool checkEqual(marray<T, N> A, size_t B) {
3939
deviceQueue.submit([&](handler &cgh) { \
4040
accessor<T, 1, access::mode::write, target::device> res_access( \
4141
buffer1, cgh); \
42-
accessor<T, 1, access::mode::write, target::device> input_access( \
42+
accessor<T, 1, access::mode::read, target::device> input_access( \
4343
buffer2, cgh); \
4444
cgh.single_task<TypeHelper<class native##NAME, T>>( \
4545
[=]() { res_access[0] = sycl::native::NAME(input_access[0]); }); \
@@ -74,9 +74,9 @@ NATIVE_OPERATOR(recip)
7474
deviceQueue.submit([&](handler &cgh) { \
7575
accessor<T, 1, access::mode::write, target::device> res_access( \
7676
buffer1, cgh); \
77-
accessor<T, 1, access::mode::write, target::device> input1_access( \
77+
accessor<T, 1, access::mode::read, target::device> input1_access( \
7878
buffer2, cgh); \
79-
accessor<T, 1, access::mode::write, target::device> input2_access( \
79+
accessor<T, 1, access::mode::read, target::device> input2_access( \
8080
buffer3, cgh); \
8181
cgh.single_task<TypeHelper<class native2##NAME, T>>([=]() { \
8282
res_access[0] = \

0 commit comments

Comments
 (0)