From 3b3fa8bc74800921b0ff544f3c8f6691858b19c6 Mon Sep 17 00:00:00 2001 From: Bing1 Yu Date: Tue, 3 Jan 2023 14:38:13 +0800 Subject: [PATCH] [Matrix] Fix the testcase issue brought by #6524 --- sycl/test/matrix/matrix-bfloat16-test.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sycl/test/matrix/matrix-bfloat16-test.cpp b/sycl/test/matrix/matrix-bfloat16-test.cpp index 2f8fcd4efc6f..1a0178165971 100644 --- a/sycl/test/matrix/matrix-bfloat16-test.cpp +++ b/sycl/test/matrix/matrix-bfloat16-test.cpp @@ -141,13 +141,13 @@ int main() { for (int j = 0; j < MATRIX_K; j++) { // Ee create bfloat16 from unsigned short since float-to-bfloat's // conversion is not allowed. - A[i][j] = make_bf16(1.0f * (i + j)); + A[i][j] = bfloat16(1.0f * (i + j)); Aref[i][j] = make_bf16(1.0f * (i + j)); } } for (int i = 0; i < MATRIX_K / 2; i++) { for (int j = 0; j < MATRIX_N * 2; j++) { - B[i][j] = make_bf16(2.0f * i + 3.0f * j); + B[i][j] = bfloat16(2.0f * i + 3.0f * j); Bref[i][j] = make_bf16(2.0f * i + 3.0f * j); } }