1.0 RC 4 - linker error

Open discussion for MAGMA

1.0 RC 4 - linker error

Postby mutu » Tue Mar 08, 2011 6:50 am

hi,
when compiling the testing folder with gcc, I got linker errors for the
Code: Select all
sgeev.cpp
dgeev.cpp
cgeev.cpp
zgeev.cpp
files. it reports undefined references to a bunch of cblas_* functions.

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


thanks for provding this library!
michael
mutu
 
Posts: 1
Joined: Tue Mar 08, 2011 5:32 am

Re: 1.0 RC 4 - linker error

Postby mateo70 » Tue Mar 08, 2011 12:52 pm

Hi,

yes sorry, I forgot to mention that we introduced the cblas interface for some routines to avoid some complications with complex for example. You can also install it through the plasma installer than you can find at this url: http://icl.cs.utk.edu/projectsfiles/plasma/pubs/plasma-installer_2.3.1.tar.gz or directly by installing cblas from this address: http://www.netlib.org/blas/blast-forum/cblas.tgz

Regards,
Mathieu
mateo70
 
Posts: 41
Joined: Tue Mar 08, 2011 12:38 pm


Return to User discussion

Who is online

Users browsing this forum: Bing [Bot], Linuxboy and 2 guests