mirror of
https://github.com/amd/blis.git
synced 2026-04-20 07:38:53 +00:00
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:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user