Skip to content

Commit 55e6f3d

Browse files
[Matrix] Fix the testcase issue brought by #6524 (#7902)
1 parent 791ac60 commit 55e6f3d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sycl/test/matrix/matrix-bfloat16-test.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,13 +141,13 @@ int main() {
141141
for (int j = 0; j < MATRIX_K; j++) {
142142
// Ee create bfloat16 from unsigned short since float-to-bfloat's
143143
// conversion is not allowed.
144-
A[i][j] = make_bf16(1.0f * (i + j));
144+
A[i][j] = bfloat16(1.0f * (i + j));
145145
Aref[i][j] = make_bf16(1.0f * (i + j));
146146
}
147147
}
148148
for (int i = 0; i < MATRIX_K / 2; i++) {
149149
for (int j = 0; j < MATRIX_N * 2; j++) {
150-
B[i][j] = make_bf16(2.0f * i + 3.0f * j);
150+
B[i][j] = bfloat16(2.0f * i + 3.0f * j);
151151
Bref[i][j] = make_bf16(2.0f * i + 3.0f * j);
152152
}
153153
}

0 commit comments

Comments
 (0)