mirror of
https://github.com/amd/blis.git
synced 2026-04-20 15:48:50 +00:00
Merge "Test driver fix for her, her2, herk and her2k" into amd-staging-milan-3.0
This commit is contained in:
@@ -5,6 +5,7 @@
|
||||
libraries.
|
||||
|
||||
Copyright (C) 2014, The University of Texas at Austin
|
||||
Copyright (C) 2020, Advanced Micro Devices, Inc. All rights reserved.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without
|
||||
modification, are permitted provided that the following conditions are
|
||||
@@ -81,11 +82,8 @@ int main( int argc, char** argv )
|
||||
m_input = 6;
|
||||
#endif
|
||||
|
||||
#if 1
|
||||
dt_alpha = dt_x = dt_a = BLIS_DOUBLE;
|
||||
#else
|
||||
// her supports complex and double complex
|
||||
dt_alpha = dt_x = dt_a = BLIS_DCOMPLEX;
|
||||
#endif
|
||||
|
||||
uplo = BLIS_LOWER;
|
||||
|
||||
@@ -157,15 +155,10 @@ int main( int argc, char** argv )
|
||||
f77_int incx = bli_obj_vector_inc( &x );
|
||||
f77_int lda = bli_obj_col_stride( &a );
|
||||
double* alphap = bli_obj_buffer( &alpha );
|
||||
double* xp = bli_obj_buffer( &x );
|
||||
double* ap = bli_obj_buffer( &a );
|
||||
/*
|
||||
dcomplex* xp = bli_obj_buffer( x );
|
||||
dcomplex* xp = bli_obj_buffer( &x );
|
||||
dcomplex* ap = bli_obj_buffer( &a );
|
||||
*/
|
||||
|
||||
dsyr_( &uplo,
|
||||
//zher_( &uplo,
|
||||
zher_( &uplo,
|
||||
&mm,
|
||||
alphap,
|
||||
xp, &incx,
|
||||
|
||||
@@ -5,6 +5,7 @@
|
||||
libraries.
|
||||
|
||||
Copyright (C) 2014, The University of Texas at Austin
|
||||
Copyright (C) 2020, Advanced Micro Devices, Inc. All rights reserved.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without
|
||||
modification, are permitted provided that the following conditions are
|
||||
@@ -80,11 +81,8 @@ int main( int argc, char** argv )
|
||||
m_input = 6;
|
||||
#endif
|
||||
|
||||
#if 1
|
||||
dt_alpha = dt_x = dt_y = dt_a = BLIS_DOUBLE;
|
||||
#else
|
||||
dt_alpha = dt_x = dt_y = dt_a = BLIS_DCOMPLEX;
|
||||
#endif
|
||||
// her2 supports complex and double complex
|
||||
dt_alpha = dt_x = dt_y = dt_a = BLIS_SCOMPLEX;
|
||||
|
||||
uplo = BLIS_LOWER;
|
||||
|
||||
@@ -162,17 +160,18 @@ int main( int argc, char** argv )
|
||||
f77_int incx = bli_obj_vector_inc( &x );
|
||||
f77_int incy = bli_obj_vector_inc( &y );
|
||||
f77_int lda = bli_obj_col_stride( &a );
|
||||
double* alphap = bli_obj_buffer( &alpha );
|
||||
double* xp = bli_obj_buffer( &x );
|
||||
double* yp = bli_obj_buffer( &y );
|
||||
double* ap = bli_obj_buffer( &a );
|
||||
scomplex* alphap = bli_obj_buffer( &alpha );
|
||||
scomplex* xp = bli_obj_buffer( &x );
|
||||
scomplex* yp = bli_obj_buffer( &y );
|
||||
scomplex* ap = bli_obj_buffer( &a );
|
||||
|
||||
dsyr2_( &uplo,
|
||||
cher2_( &uplo,
|
||||
&mm,
|
||||
alphap,
|
||||
xp, &incx,
|
||||
yp, &incy,
|
||||
ap, &lda );
|
||||
|
||||
#endif
|
||||
|
||||
#ifdef PRINT
|
||||
|
||||
@@ -5,6 +5,7 @@
|
||||
libraries.
|
||||
|
||||
Copyright (C) 2014, The University of Texas at Austin
|
||||
Copyright (C) 2020, Advanced Micro Devices, Inc. All rights reserved.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without
|
||||
modification, are permitted provided that the following conditions are
|
||||
@@ -84,13 +85,10 @@ int main( int argc, char** argv )
|
||||
k_input = 1;
|
||||
#endif
|
||||
|
||||
#if 1
|
||||
//dt = BLIS_FLOAT;
|
||||
dt = BLIS_DOUBLE;
|
||||
#else
|
||||
// her2k supports complex and double complex
|
||||
//dt = BLIS_SCOMPLEX;
|
||||
dt = BLIS_DCOMPLEX;
|
||||
#endif
|
||||
|
||||
|
||||
uploc = BLIS_LOWER;
|
||||
//uploc = BLIS_UPPER;
|
||||
@@ -179,53 +177,7 @@ int main( int argc, char** argv )
|
||||
&c );
|
||||
|
||||
#else
|
||||
if ( bli_is_float( dt ) )
|
||||
{
|
||||
f77_int mm = bli_obj_length( &c );
|
||||
f77_int kk = bli_obj_width_after_trans( &a );
|
||||
f77_int lda = bli_obj_col_stride( &a );
|
||||
f77_int ldb = bli_obj_col_stride( &b );
|
||||
f77_int ldc = bli_obj_col_stride( &c );
|
||||
float* alphap = bli_obj_buffer( &alpha );
|
||||
float* ap = bli_obj_buffer( &a );
|
||||
float* bp = bli_obj_buffer( &b );
|
||||
float* betap = bli_obj_buffer( &beta );
|
||||
float* cp = bli_obj_buffer( &c );
|
||||
|
||||
ssyr2k_( &f77_uploc,
|
||||
&f77_transa,
|
||||
&mm,
|
||||
&kk,
|
||||
alphap,
|
||||
ap, &lda,
|
||||
bp, &ldb,
|
||||
betap,
|
||||
cp, &ldc );
|
||||
}
|
||||
else if ( bli_is_double( dt ) )
|
||||
{
|
||||
f77_int mm = bli_obj_length( &c );
|
||||
f77_int kk = bli_obj_width_after_trans( &a );
|
||||
f77_int lda = bli_obj_col_stride( &a );
|
||||
f77_int ldb = bli_obj_col_stride( &b );
|
||||
f77_int ldc = bli_obj_col_stride( &c );
|
||||
double* alphap = bli_obj_buffer( &alpha );
|
||||
double* ap = bli_obj_buffer( &a );
|
||||
double* bp = bli_obj_buffer( &b );
|
||||
double* betap = bli_obj_buffer( &beta );
|
||||
double* cp = bli_obj_buffer( &c );
|
||||
|
||||
dsyr2k_( &f77_uploc,
|
||||
&f77_transa,
|
||||
&mm,
|
||||
&kk,
|
||||
alphap,
|
||||
ap, &lda,
|
||||
bp, &ldb,
|
||||
betap,
|
||||
cp, &ldc );
|
||||
}
|
||||
else if ( bli_is_scomplex( dt ) )
|
||||
if ( bli_is_scomplex( dt ) )
|
||||
{
|
||||
f77_int mm = bli_obj_length( &c );
|
||||
f77_int kk = bli_obj_width_after_trans( &a );
|
||||
|
||||
@@ -5,6 +5,7 @@
|
||||
libraries.
|
||||
|
||||
Copyright (C) 2014, The University of Texas at Austin
|
||||
Copyright (C) 2020, Advanced Micro Devices, Inc. All rights reserved.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without
|
||||
modification, are permitted provided that the following conditions are
|
||||
@@ -83,14 +84,10 @@ int main( int argc, char** argv )
|
||||
m_input = 3;
|
||||
k_input = 1;
|
||||
#endif
|
||||
|
||||
#if 1
|
||||
//dt = BLIS_FLOAT;
|
||||
dt = BLIS_DOUBLE;
|
||||
#else
|
||||
|
||||
// herk supports complex and double complex
|
||||
//dt = BLIS_SCOMPLEX;
|
||||
dt = BLIS_DCOMPLEX;
|
||||
#endif
|
||||
|
||||
uploc = BLIS_LOWER;
|
||||
//uploc = BLIS_UPPER;
|
||||
@@ -169,47 +166,7 @@ int main( int argc, char** argv )
|
||||
&c );
|
||||
|
||||
#else
|
||||
if ( bli_is_float( dt ) )
|
||||
{
|
||||
f77_int mm = bli_obj_length( &c );
|
||||
f77_int kk = bli_obj_width_after_trans( &a );
|
||||
f77_int lda = bli_obj_col_stride( &a );
|
||||
f77_int ldc = bli_obj_col_stride( &c );
|
||||
float* alphap = bli_obj_buffer( &alpha );
|
||||
float* ap = bli_obj_buffer( &a );
|
||||
float* betap = bli_obj_buffer( &beta );
|
||||
float* cp = bli_obj_buffer( &c );
|
||||
|
||||
ssyrk_( &f77_uploc,
|
||||
&f77_transa,
|
||||
&mm,
|
||||
&kk,
|
||||
alphap,
|
||||
ap, &lda,
|
||||
betap,
|
||||
cp, &ldc );
|
||||
}
|
||||
else if ( bli_is_double( dt ) )
|
||||
{
|
||||
f77_int mm = bli_obj_length( &c );
|
||||
f77_int kk = bli_obj_width_after_trans( &a );
|
||||
f77_int lda = bli_obj_col_stride( &a );
|
||||
f77_int ldc = bli_obj_col_stride( &c );
|
||||
double* alphap = bli_obj_buffer( &alpha );
|
||||
double* ap = bli_obj_buffer( &a );
|
||||
double* betap = bli_obj_buffer( &beta );
|
||||
double* cp = bli_obj_buffer( &c );
|
||||
|
||||
dsyrk_( &f77_uploc,
|
||||
&f77_transa,
|
||||
&mm,
|
||||
&kk,
|
||||
alphap,
|
||||
ap, &lda,
|
||||
betap,
|
||||
cp, &ldc );
|
||||
}
|
||||
else if ( bli_is_scomplex( dt ) )
|
||||
if ( bli_is_scomplex( dt ) )
|
||||
{
|
||||
f77_int mm = bli_obj_length( &c );
|
||||
f77_int kk = bli_obj_width_after_trans( &a );
|
||||
|
||||
Reference in New Issue
Block a user