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

Commit 62e420f

Browse files
authored
[SYCL][Matrix] Correct a test case that redefines a class name (#757)
1 parent 6c7a8e6 commit 62e420f

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

SYCL/Matrix/element_wise_all_ops_half.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ void matrix_verify_add(queue q, big_matrix<T, M, N> &A, nd_range<2> &r,
5959
q.submit([&](handler &cgh) {
6060
auto accA = bufA.get_access<access::mode::read_write>(cgh);
6161

62-
cgh.parallel_for<class imatrix>(r, [accA](nd_item<2> spmd_item) {
62+
cgh.parallel_for<class add_matrix>(r, [accA](nd_item<2> spmd_item) {
6363
const auto global_idx = spmd_item.get_global_id(0);
6464
const auto global_idy = spmd_item.get_global_id(1);
6565
const auto sg_startx = global_idx - spmd_item.get_local_id(0);
@@ -91,7 +91,7 @@ void matrix_verify_sub(queue q, big_matrix<T, M, N> &A, nd_range<2> &r,
9191
q.submit([&](handler &cgh) {
9292
auto accA = bufA.get_access<access::mode::read_write>(cgh);
9393

94-
cgh.parallel_for<class imatrix>(r, [accA](nd_item<2> spmd_item) {
94+
cgh.parallel_for<class sub_matrix>(r, [accA](nd_item<2> spmd_item) {
9595
const auto global_idx = spmd_item.get_global_id(0);
9696
const auto global_idy = spmd_item.get_global_id(1);
9797
const auto sg_startx = global_idx - spmd_item.get_local_id(0);
@@ -123,7 +123,7 @@ void matrix_verify_mul(queue q, big_matrix<T, M, N> &A, nd_range<2> &r,
123123
q.submit([&](handler &cgh) {
124124
auto accA = bufA.get_access<access::mode::read_write>(cgh);
125125

126-
cgh.parallel_for<class imatrix>(r, [accA](nd_item<2> spmd_item) {
126+
cgh.parallel_for<class mul_matrix>(r, [accA](nd_item<2> spmd_item) {
127127
const auto global_idx = spmd_item.get_global_id(0);
128128
const auto global_idy = spmd_item.get_global_id(1);
129129
const auto sg_startx = global_idx - spmd_item.get_local_id(0);
@@ -155,7 +155,7 @@ void matrix_verify_div(queue q, big_matrix<T, M, N> &A, nd_range<2> &r,
155155
q.submit([&](handler &cgh) {
156156
auto accA = bufA.get_access<access::mode::read_write>(cgh);
157157

158-
cgh.parallel_for<class imatrix>(r, [accA](nd_item<2> spmd_item) {
158+
cgh.parallel_for<class div_matrix>(r, [accA](nd_item<2> spmd_item) {
159159
const auto global_idx = spmd_item.get_global_id(0);
160160
const auto global_idy = spmd_item.get_global_id(1);
161161
const auto sg_startx = global_idx - spmd_item.get_local_id(0);
@@ -187,7 +187,7 @@ void matrix_verify_logic(queue q, big_matrix<T, M, N> &A, nd_range<2> &r,
187187
q.submit([&](handler &cgh) {
188188
auto accA = bufA.get_access<access::mode::read_write>(cgh);
189189

190-
cgh.parallel_for<class imatrix>(r, [accA](nd_item<2> spmd_item) {
190+
cgh.parallel_for<class logic_matrix>(r, [accA](nd_item<2> spmd_item) {
191191
const auto global_idx = spmd_item.get_global_id(0);
192192
const auto global_idy = spmd_item.get_global_id(1);
193193
const auto sg_startx = global_idx - spmd_item.get_local_id(0);

0 commit comments

Comments
 (0)