codeplaysoftware / portBLAS

An implementation of BLAS using the SYCL open standard.
Apache License 2.0
250 stars 48 forks source link

Fixed parameter mismatch in complex gemm benchmarks #489

Closed OuadiElfarouki closed 8 months ago

OuadiElfarouki commented 8 months ago

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 :