Lapack/blas and Gotoblas

2007-01-27 Thread Ben Tay
Hi,

The result I get for lapack is

/usr/lib/liblapack.a  /usr/lib/liblapack.so  /usr/lib/liblapack.so.3
/usr/lib/liblapack.so.3.0  /usr/lib/liblapack.so.3.0.3

but for blas, there's no match. However, my school's tutorial said lapack
and blas can be used with the option -llapack -lblas.

Is there some other directory where they are usually install?

I'm wondering if I can use lapack + gotoblas together? I tried to specify
the libraries but ./configure failed.

Thank you.


On 1/27/07, Satish Balay balay at mcs.anl.gov wrote:


 On Sat, 27 Jan 2007, Ben Tay wrote:

  My school's server has lapack and blas installed. However, I can't
  get it to be automatically detected by using ./configure. what is
  the filename that I should used?

 what do you have for:

 ls /usr/lib/libblas* /usr/lib/liblapack*

  Btw, can I use GotoBlas? I tried to specify libgoto.a or
  libgoto_northwoodp- r1.10.so and I managed to compile. However,
  during testing, the error msg are

 yeah - you can use gotoblas - but you'll still need lapack.

  /nas/lsftmp/g0306332/petsc-2.3.2-p8/lib/linux-nompi-goto/libpetscksp.so:
  undefined reference to `pthread_join'

 Lools like goto requires -lpthread

 Satish


-- next part --
An HTML attachment was scrubbed...
URL: 
http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20070127/1a0b2bce/attachment.htm


Lapack/blas and Gotoblas

2007-01-26 Thread Matthew Knepley
This mail belongs on petsc-maint.

On 1/26/07, Ben Tay zonexo at gmail.com wrote:

 Hi,

 My school's server has lapack and blas installed. However, I can't get it
 to be automatically detected by using ./configure. what is the filename that
 I should used? Is it liblapack.a and libblas.a? I can't find libblas.a in
 the /usr/lib directory though. Is there another filename for it? I found
 that if I specify just the dir (/usr/lib) or liblapack.a for both the
 lapack and blas lib, it won't work


It looks like you do not have BLAS installed.

Btw, can I use GotoBlas? I tried to specify libgoto.a or libgoto_northwoodp-
 r1.10.so and I managed to compile. However, during testing, the error msg
 are

 for libgoto.a :

 /nas/lsftmp/g0306332/petsc-2.3.2-p8/lib/linux-nompi-goto/libpetscksp.so:
 undefined reference to `pthread_create'
 /nas/lsftmp/g0306332/petsc-2.3.2-p8/lib/linux-nompi-goto/libpetscksp.so:
 undefined reference to `dpotrs_'
 /nas/lsftmp/g0306332/petsc-2.3.2-p8/lib/linux-nompi-goto/libpetscksp.so:
 undefined reference to `pthread_join'


This library depends on pthreads (at least), so you have to  specify it as
well:

  --with-blas-lib=[libgoto.a,libpthread.a]

for libgoto_northwoodp-r1.10.so :

 /nas/lsftmp/g0306332/petsc-2.3.2-p8/lib/linux-nompi-goto/libpetscksp.so:
 undefined reference to `dpotrs_'


This is not a full BLAS.

That was linked for shared library. If it is for static library, the error
 is:

 /nas/lsftmp/g0306332/petsc-2.3.2-p8/lib/linux-nompi-goto/libpetscksp.a(
 bcgsl.o)(.text+0x103a): In function `KSPSolve_BCGSL':
 : undefined reference to `dpotrs_'
 /nas/lsftmp/g0306332/petsc-2.3.2-p8/lib/linux-nompi-goto/libpetscksp.a(
 bcgsl.o)(.text+0x10f3): In function `KSPSolve_BCGSL':
 : undefined reference to `dpotrs_'
 /nas/lsftmp/g0306332/petsc-2.3.2-p8/lib/linux-nompi-goto/libpetscksp.a(
 bcgsl.o)(.text+0x116f): In function `KSPSolve_BCGSL':
 : undefined reference to `dpotrs_'
 /lsftmp/g0306332/GotoBLAS/libgoto.a(blas_server.o)(.text+0x370): In
 function `blas_thread_init':
 : undefined reference to `pthread_create'
 /lsftmp/g0306332/GotoBLAS/libgoto.a(blas_server.o)(.text+0x709): In
 function `blas_thread_shutdown_':

 So can gotoblas be used?

 Thank you very much




-- 
One trouble is that despite this system, anyone who reads journals widely
and critically is forced to realize that there are scarcely any bars to
eventual
publication. There seems to be no study too fragmented, no hypothesis too
trivial, no literature citation too biased or too egotistical, no design too
warped, no methodology too bungled, no presentation of results too
inaccurate, too obscure, and too contradictory, no analysis too
self-serving,
no argument too circular, no conclusions too trifling or too unjustified,
and
no grammar and syntax too offensive for a paper to end up in print. --
Drummond Rennie
-- next part --
An HTML attachment was scrubbed...
URL: 
http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20070126/2ed68803/attachment.htm