Fix test_dotv.c when complex-return=intel

When BLIS is built with --complex-return=intel, the zdotu_ and cdotu_ function prototype changes.
Now "return parameter" will become the first argument of these functions and these functions return void.
This fix addresses the change in the function declarations when --complex-return=intel is enabled.
Missing Trace and Log statements for this configuration are now  added.
[CPUPL-1376]

Change-Id: Ib420989da71839211c16088bf431a2ad775a3978
This commit is contained in:
Kiran Varaganti
2021-04-01 22:49:29 +05:30
parent 5562a27823
commit 657f58b82b
2 changed files with 56 additions and 32 deletions

View File

@@ -5,7 +5,7 @@
libraries.
Copyright (C) 2014, The University of Texas at Austin
Copyright (C) 2018 - 2019, Advanced Micro Devices, Inc.
Copyright (C) 2018 - 2021, Advanced Micro Devices, Inc.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are
@@ -193,9 +193,20 @@ int main( int argc, char** argv )
xp, incx,
yp, incy, resp );
#else
#ifdef BLIS_DISABLE_COMPLEX_RETURN_INTEL
*resp = cdotu_(&nn,
xp, &incx,
yp, &incy );
#else
cdotu_(resp, &nn,
xp, &incx,
yp, &incy );
#endif // BLIS_DISABLE_COMPLEX_RETURN_INTEL ...
#endif
}
else if ( bli_is_dcomplex( dt ) )
@@ -213,9 +224,20 @@ int main( int argc, char** argv )
xp, incx,
yp, incy, resp );
#else
#ifdef BLIS_DISABLE_COMPLEX_RETURN_INTEL
*resp = zdotu_( &nn,
xp, &incx,
yp, &incy );
#else
zdotu_( resp, &nn,
xp, &incx,
yp, &incy );
#endif // BLIS_DISABLE_COMPLEX_RETURN_INTEL
#endif
}