We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 791ac60 commit 55e6f3dCopy full SHA for 55e6f3d
sycl/test/matrix/matrix-bfloat16-test.cpp
@@ -141,13 +141,13 @@ int main() {
141
for (int j = 0; j < MATRIX_K; j++) {
142
// Ee create bfloat16 from unsigned short since float-to-bfloat's
143
// conversion is not allowed.
144
- A[i][j] = make_bf16(1.0f * (i + j));
+ A[i][j] = bfloat16(1.0f * (i + j));
145
Aref[i][j] = make_bf16(1.0f * (i + j));
146
}
147
148
for (int i = 0; i < MATRIX_K / 2; i++) {
149
for (int j = 0; j < MATRIX_N * 2; j++) {
150
- B[i][j] = make_bf16(2.0f * i + 3.0f * j);
+ B[i][j] = bfloat16(2.0f * i + 3.0f * j);
151
Bref[i][j] = make_bf16(2.0f * i + 3.0f * j);
152
153
0 commit comments