From a42022ca981a0eb49837bf487aca20b0442e033c Mon Sep 17 00:00:00 2001 From: Julio Machado Silva Date: Tue, 25 Jun 2024 09:50:28 -0600 Subject: [PATCH] Update getrf_large test --- clients/common/lapack/testing_getrf_large.hpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/clients/common/lapack/testing_getrf_large.hpp b/clients/common/lapack/testing_getrf_large.hpp index c0a381f3a..f3bf356a7 100644 --- a/clients/common/lapack/testing_getrf_large.hpp +++ b/clients/common/lapack/testing_getrf_large.hpp @@ -467,9 +467,11 @@ void testing_getrf_large(Arguments& argus) } // validate results for rocsolver-test - // using min(m,n) * machine_precision as tolerance + // using 4 * kappa * min(m,n) * machine_precision as tolerance, + // where kappa stands for the condition number of the input matrix + double kappa = 1.; // approximation to matrix condition number if(argus.unit_check) - ROCSOLVER_TEST_CHECK(T, max_error, min(n, n)); + ROCSOLVER_TEST_CHECK(T, max_error, 4 * kappa * n); // output results for rocsolver-bench if(argus.timing) {