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>