From b1655051bda06613adf63929fb0e77a82821ceb4 Mon Sep 17 00:00:00 2001 From: nscipione Date: Tue, 31 Oct 2023 17:45:54 +0000 Subject: [PATCH] Update test for copy operators Update test to properly check floating points values for alpha and beta. --- test/unittest/extension/omatadd_batched_test.cpp | 4 ++-- test/unittest/extension/omatcopy_batched_test.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/test/unittest/extension/omatadd_batched_test.cpp b/test/unittest/extension/omatadd_batched_test.cpp index e13b822e5..d0ce57751 100644 --- a/test/unittest/extension/omatadd_batched_test.cpp +++ b/test/unittest/extension/omatadd_batched_test.cpp @@ -160,8 +160,8 @@ const auto combi = ::testing::Values('n', 't'), // trans_b ::testing::Values(64, 129, 255), // m ::testing::Values(64, 129, 255), // n - ::testing::Values(2), // alpha - ::testing::Values(2), // beta + ::testing::Values(2.5), // alpha + ::testing::Values(3.5), // beta ::testing::Values(1, 2), // lda_mul ::testing::Values(1, 2), // ldb_mul ::testing::Values(1, 2, 3), // ldc_mul diff --git a/test/unittest/extension/omatcopy_batched_test.cpp b/test/unittest/extension/omatcopy_batched_test.cpp index 94fb91d53..e15b8405e 100644 --- a/test/unittest/extension/omatcopy_batched_test.cpp +++ b/test/unittest/extension/omatcopy_batched_test.cpp @@ -134,7 +134,7 @@ const auto combi = ::testing::Values('n', 't'), // trans ::testing::Values(64, 129, 255), // m ::testing::Values(64, 129, 255), // n - ::testing::Values(0, 2), // alpha + ::testing::Values(0, 2.5), // alpha ::testing::Values(1, 2, 3), // ld_in_m ::testing::Values(1, 2, 3), // ld_out_m ::testing::Values(1, 3), // stride_in_m