Error!

Open forum for general discussions relating to PLASMA.

Error!

Postby ashishpaliwal » Thu May 17, 2012 2:43 am

Hi,
I am running example_dgesv.c (given by author in build/example) giving command:
Code: Select all
gcc -o out example_dgesv.c -I/home/ashish/Desktop/plasma-installer_2.4.5/install/include -L/home/ashish/Desktop/plasma-installer_2.4.5/install/lib -lplasma -lquark -lcoreblas -llapacke -ltmg -L/usr/lib -lpthread


I have included all the libraries but I am getting this error.

Code: Select all
home/ashish/Desktop/plasma-installer_2.4.5/install/lib/libcoreblas.a(core_dtstrf.o): In function `CORE_dtstrf':
core_dtstrf.c:(.text+0x34d): undefined reference to `cblas_dscal'
core_dtstrf.c:(.text+0x373): undefined reference to `cblas_dcopy'
core_dtstrf.c:(.text+0x3c2): undefined reference to `cblas_dger'
core_dtstrf.c:(.text+0x40b): undefined reference to `cblas_idamax'
core_dtstrf.c:(.text+0x472): undefined reference to `cblas_dswap'
core_dtstrf.c:(.text+0x49e): undefined reference to `cblas_dswap'


Please Help!
ashishpaliwal
 
Posts: 8
Joined: Wed Nov 16, 2011 2:38 pm

Re: Error!

Postby ashishpaliwal » Thu May 17, 2012 6:29 am

When I installed PLASMA in install/lib I got libcoreblas.a, libplasma.a, libtmg.a, libquark.a and liblapacke.a. I can't see libcblas.a and liblapack.a. I think this is causing the error to happen. What should I do?
ashishpaliwal
 
Posts: 8
Joined: Wed Nov 16, 2011 2:38 pm

Re: Error!

Postby ashishpaliwal » Thu May 17, 2012 6:36 am

PROBLEM SOLVED! I wrote
Code: Select all
-L/home/ashish/Desktop/plasma-installer_2.4.5/install/lib -lplasma -lcoreblas -lquark  -L/home/ashish/Desktop/plasma-installer_2.4.5/install/lib -llapacke -L/home/ashish/Desktop/plasma-installer_2.4.5/install/lib -ltmg  /home/ashish/Desktop/GotoBLAS2/libgoto2_penryn-r1.13.a -lpthread -lm



and it worked :) ! Seemingly the order in which you write libraries matters. You can get right order in configuration file.
ashishpaliwal
 
Posts: 8
Joined: Wed Nov 16, 2011 2:38 pm

Re: Error!

Postby admin » Fri Jun 08, 2012 8:42 am

Yes, absolutely, the order of linking libraries matters.
Glad to hear that you figured it out.
Jakub
admin
Site Admin
 
Posts: 79
Joined: Wed May 13, 2009 1:27 pm


Return to User discussion

Who is online

Users browsing this forum: Bing [Bot] and 1 guest

cron