This content has been marked as final. Show 3 replies
I guess one path to a solution here is to use the reference cblas library that calls the fortran routines from some C stubs.
This still requires modification of the cblas_f77.h file but is hopefully fairly reasonable. It would have been preferable for acml to provide the standard C interface instead of redefining their own. After all we could in theory have called the Fortran directly from our C code if we were worried about the extra layer of overhead.
Actually it seems my solution doesn't work very well. ACML doesn't even have a standard Fortran interface. The return values are returned through the first argument on the stack instead of the last and even worse some prototypes actually have a different number of arguments. For example CGBMV requires 14 arguments in the ACML library whereas the BLAS standard has 13 arguments. I don't know what the extra arguments are for unfortunately. How do people even use the acml BLAS libraries if you can't interchange them with other BLAS libraries, I'm curious.
Please see the reply on the CBLAS/CLAPACK topic.