mirror of
https://github.com/amd/blis.git
synced 2026-05-12 01:59:59 +00:00
Merge "Fixed a bug in Level-3 bench files" into amd-staging-milan-3.1
This commit is contained in:
@@ -221,7 +221,7 @@ int main( int argc, char** argv )
|
||||
}
|
||||
#ifndef BLIS // Incase if we are using blis interface we don't have to check for col-storage.
|
||||
#ifndef CBLAS
|
||||
if(bli_obj_row_stride(&c) != 1)
|
||||
if( ( stor_scheme == 'R' ) || ( stor_scheme == 'r' ) )
|
||||
{
|
||||
printf("BLAS APIs doesn't support row-storage: Enable CBLAS\n");
|
||||
continue;
|
||||
@@ -271,7 +271,7 @@ int main( int argc, char** argv )
|
||||
enum CBLAS_TRANSPOSE cblas_transa;
|
||||
enum CBLAS_TRANSPOSE cblas_transb;
|
||||
|
||||
if ( bli_obj_row_stride( &c ) == 1 )
|
||||
if ( ( stor_scheme == 'C' ) || ( stor_scheme == 'c' ) )
|
||||
cblas_order = CblasColMajor;
|
||||
else
|
||||
cblas_order = CblasRowMajor;
|
||||
|
||||
@@ -207,7 +207,7 @@ int main( int argc, char** argv )
|
||||
continue;
|
||||
}
|
||||
#ifndef CBLAS
|
||||
if(bli_obj_row_stride(&c) != 1)
|
||||
if( ( stor_scheme == 'R' ) || ( stor_scheme == 'r' ) )
|
||||
{
|
||||
printf("BLAS APIs doesn't support row-storage\n");
|
||||
continue;
|
||||
@@ -263,7 +263,7 @@ int main( int argc, char** argv )
|
||||
enum CBLAS_TRANSPOSE cblas_transa;
|
||||
enum CBLAS_TRANSPOSE cblas_transb;
|
||||
|
||||
if ( bli_obj_row_stride( &c ) == 1 )
|
||||
if ( ( stor_scheme == 'C' ) || ( stor_scheme == 'c' ) )
|
||||
cblas_order = CblasColMajor;
|
||||
else
|
||||
cblas_order = CblasRowMajor;
|
||||
|
||||
@@ -66,6 +66,7 @@ int main( int argc, char** argv )
|
||||
dim_t p_inc = 0; // to keep track of number of inputs
|
||||
num_t dt;
|
||||
char dt_ch;
|
||||
char stor_scheme;
|
||||
int r, n_repeats;
|
||||
|
||||
double dtime;
|
||||
@@ -107,6 +108,7 @@ int main( int argc, char** argv )
|
||||
inc_t incy;
|
||||
char tmp[256]; // to store function name, line no present in logs.
|
||||
|
||||
stor_scheme = 'C';
|
||||
|
||||
// {S,D,C,Z} {transa m n alpha incx incy lda}
|
||||
|
||||
@@ -185,7 +187,7 @@ int main( int argc, char** argv )
|
||||
#ifdef CBLAS
|
||||
enum CBLAS_ORDER cblas_order;
|
||||
|
||||
if ( bli_obj_row_stride( &a ) == 1 )
|
||||
if ( ( stor_scheme == 'C' ) || ( stor_scheme == 'c' ) )
|
||||
cblas_order = CblasColMajor;
|
||||
else
|
||||
cblas_order = CblasRowMajor;
|
||||
|
||||
@@ -188,7 +188,7 @@ int main( int argc, char** argv )
|
||||
continue;
|
||||
}
|
||||
#ifndef CBLAS
|
||||
if(bli_obj_row_stride(&c) != 1)
|
||||
if( ( stor_scheme == 'R' ) || ( stor_scheme == 'r' ) )
|
||||
{
|
||||
printf("BLAS APIs doesn't support row-storage\n");
|
||||
continue;
|
||||
@@ -239,7 +239,7 @@ int main( int argc, char** argv )
|
||||
enum CBLAS_UPLO cblas_uplo;
|
||||
enum CBLAS_TRANSPOSE cblas_transa;
|
||||
|
||||
if ( bli_obj_row_stride( &c ) == 1 )
|
||||
if ( ( stor_scheme == 'C' ) || ( stor_scheme == 'c' ) )
|
||||
cblas_order = CblasColMajor;
|
||||
else
|
||||
cblas_order = CblasRowMajor;
|
||||
|
||||
@@ -232,7 +232,7 @@ int main( int argc, char** argv )
|
||||
enum CBLAS_SIDE cblas_side;
|
||||
enum CBLAS_DIAG cblas_diag;
|
||||
|
||||
if ( bli_obj_row_stride( &c ) == 1 )
|
||||
if ( ( stor_scheme == 'C' ) || ( stor_scheme == 'c' ) )
|
||||
cblas_order = CblasColMajor;
|
||||
else
|
||||
cblas_order = CblasRowMajor;
|
||||
|
||||
Reference in New Issue
Block a user