Problem to compile with GotoBlas

Post here if you have some questions about the ScaLAPACK installer

Problem to compile with GotoBlas

Postby bencteux » Wed Nov 30, 2011 4:14 pm

High,
I have compiled scalapack with a link to the GotoBlas library. I encountered some difficulties and I would like to know if the solution I found sounds good.

I used the installer with the following command :
./setup.py --prefix=../Build --blaslib=$HOME/Outils/GotoBLAS/GotoBLAS2/libgoto2.a --ccflags=-pthread --fcflags=-pthread
(I need to precise "pthread", otherwise some functions in libgoto2 have undefined references)
but the BLAS and LAPACK check-tests do not pass : the "fcflags" variable is not transfered in blas.py and in lapack.py.
At line 122 in blas .py, I change the following line :
fcomm = self.config.fc+' -o tmpf '+'tmpf.f '+self.config.blaslib+' '+self.config.ldflags_fc+' -lm'
with :
fcomm = self.config.fc+' -o tmpf '+'tmpf.f '+self.config.blaslib+' '+self.config.fcflags+' -lm'
The same modification at line 109 in lapack.py.

Is it a real bug in the installer or I just do not use it in the right way ?
Than you for comment.
Guy
bencteux
 
Posts: 13
Joined: Wed Apr 16, 2008 11:52 am

Re: Problem to compile with GotoBlas

Postby admin » Thu Dec 01, 2011 9:57 pm

Hi Guy,
on this one I believe you are using the wrong flag.
pthread is used for linking so you want to do a --ldflags_c=-pthread --ldflags_fc=-pthread
Julie
admin
Site Admin
 
Posts: 486
Joined: Wed Dec 08, 2004 7:07 pm


Return to ScaLAPACK installer

Who is online

Users browsing this forum: No registered users and 1 guest