when compiling the testing folder with gcc, I got linker errors for the
Code: Select all
sgeev.cpp
dgeev.cpp
cgeev.cpp
zgeev.cpp
the reason is that I use ACML for BLAS, which does not use the cblas_ prefix for the C interface to the BLAS routines.
as a workaround I had to include some #define directives in the cblas.h. after that, it worked like a charme!
Code: Select all
// these defines are required as the ACML BLAS C interface does not use the cblas_ prefix
#define cblas_zdscal zdscal
#define cblas_zscal zscal
#define cblas_csscal csscal
#define cblas_cscal cscal
#define cblas_idamax idamax
#define cblas_dnrm2 dnrm2
#define cblas_dscal dscal
#define cblas_drot drot
#define cblas_dznrm2 dznrm2
#define cblas_isamax isamax
#define cblas_scnrm2 scnrm2
#define cblas_snrm2 snrm2
#define cblas_sscal sscal
#define cblas_srot srot
michael