Page 1 of 1

Problem to compile with GotoBlas

PostPosted: Wed Nov 30, 2011 4:14 pm
by bencteux
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 :
./ --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 and in
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

Is it a real bug in the installer or I just do not use it in the right way ?
Than you for comment.

Re: Problem to compile with GotoBlas

PostPosted: Thu Dec 01, 2011 9:57 pm
by admin
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