1.0 RC 4 - linker error

Open discussion for MAGMA library (Matrix Algebra on GPU and Multicore Architectures)

1.0 RC 4 - linker error

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

when compiling the testing folder with gcc, I got linker errors for the
Code: Select all
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!
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


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

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

Return to User discussion

Who is online

Users browsing this forum: No registered users and 1 guest