mirror of
https://github.com/amd/blis.git
synced 2026-04-19 23:28:52 +00:00
Updating BLIS C++ interface trsm test.
- Making A diagonally dominant to ensure that the problem at hand is solvable. AMD-Internal: [CPUPL-3575] Change-Id: I27cc76a212d4d10aacce880895e1e0d7532e4eb7
This commit is contained in:
committed by
Eleni Vlachopoulou
parent
9a2a4151ac
commit
46459a958d
2
vendor/testcpp/test.hh
vendored
2
vendor/testcpp/test.hh
vendored
@@ -138,7 +138,7 @@ int computeErrorM(
|
||||
for ( i = 0; i < m; i ++ ) {
|
||||
for ( j = 0; j < n; j ++ ) {
|
||||
if ( (fabs (A( i, j )) - fabs( A_ref( i, j ))) > 0.0000001 ) {
|
||||
cout << A(i,j) << A_ref(i,j);
|
||||
cout << A(i,j) << A_ref(i,j)<< "\n";
|
||||
ret = 1;
|
||||
break;
|
||||
}
|
||||
|
||||
6
vendor/testcpp/test_trsm.cc
vendored
6
vendor/testcpp/test_trsm.cc
vendored
@@ -102,6 +102,12 @@ void test_trsm( )
|
||||
allocate_init_buffer(B , m , n);
|
||||
copy_buffer(B, B_ref , m ,n);
|
||||
|
||||
// Make A diagonally dominant to guarantee that the system has a solution.
|
||||
for(int i=0; i<m; i++)
|
||||
{
|
||||
A[i+i*lda] = T{float(m)}*A[i+i*lda];
|
||||
}
|
||||
|
||||
#ifdef PRINT
|
||||
printmatrix(A, lda ,m,m, (char *)"A");
|
||||
printmatrix(B, ldb ,m,n, (char *)"B");
|
||||
|
||||
Reference in New Issue
Block a user