This patch fixes the mismatching parameters passed to GEMM (and batched derivative) benchmarks when using custom csv file and enabling the BLAS_ENABLE_COMPLEX cmake flag.
This is originally due to the fact that complex data type GEMM expects two values for each scalar alpha and beta(real and imag parts), and thus causes invalid number of parameters (+-2) as both complex and non-complex benchmarks use the same passed csv file.
The patch approach is a workaround that helps :
If complex parameters are passed and the non-complex operator is called, take only real parts of alpha and beta.
If non-complex parameters are passed the complex operator is called, use the same value of the parameter (alpha, beta) to construct the real and imag parts of the complex equivalent parameter (e.g. alpha_cplx = {alpha_real, alpha_real}).
Same behaviour is kept when data type matches parameter passed as before.
This patch fixes the mismatching parameters passed to GEMM (and batched derivative) benchmarks when using custom csv file and enabling the
BLAS_ENABLE_COMPLEX
cmake flag. This is originally due to the fact that complex data type GEMM expects two values for each scalaralpha
andbeta
(real and imag parts), and thus causes invalid number of parameters (+-2) as both complex and non-complex benchmarks use the same passed csv file. The patch approach is a workaround that helps :alpha
andbeta
.