Lapack/blas and Gotoblas

Ben Tay zonexo at gmail.com
Fri Jan 26 21:11:26 CST 2007


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

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'

for libgoto_northwoodp-r1.10.so :

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

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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20070127/e319dae5/attachment.htm>


More information about the petsc-users mailing list