This mail belongs on petsc-maint.<br><br>On 1/26/07, <b class="gmail_sendername">Ben Tay</b> <<a href="mailto:zonexo@gmail.com">zonexo@gmail.com</a>> wrote:<div><span class="gmail_quote"></span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div>Hi,</div>
<div> </div>
<div>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</div></blockquote><div><br>
It looks like you do not have BLAS installed. <br></div><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div>Btw, can I use GotoBlas? I tried to specify
libgoto.a or libgoto_northwoodp-<a href="http://r1.10.so" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">r1.10.so</a> and I managed to compile. However, during testing, the error msg are</div>
<div> </div>
<div>for libgoto.a : </div>
<div> </div>
<div>/nas/lsftmp/g0306332/petsc-2.3.2-p8/lib/linux-nompi-goto/libpetscksp.so: undefined reference to `pthread_create'<br>/nas/lsftmp/g0306332/petsc-2.3.2-p8/lib/linux-nompi-goto/libpetscksp.so: undefined reference to `dpotrs_'
<br>/nas/lsftmp/g0306332/petsc-2.3.2-p8/lib/linux-nompi-goto/libpetscksp.so: undefined reference to `pthread_join'</div></blockquote><div><br>This library depends on pthreads (at least), so you have to specify it as well:
<br><br> --with-blas-lib=[libgoto.a,libpthread.a]<br></div><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div>for libgoto_northwoodp-
<a href="http://r1.10.so" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">r1.10.so</a> :</div>
<div> </div>
<div>/nas/lsftmp/g0306332/petsc-2.3.2-p8/lib/linux-nompi-goto/libpetscksp.so: undefined reference to `dpotrs_'</div></blockquote><div><br>This is not a full BLAS. <br></div><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div>That was linked for shared library. If it is for static library, the error is:</div>
<div> </div>
<div>/nas/lsftmp/g0306332/petsc-2.3.2-p8/lib/linux-nompi-goto/libpetscksp.a(bcgsl.o)(.text+0x103a): In function `KSPSolve_BCGSL':<br>: undefined reference to `dpotrs_'<br>/nas/lsftmp/g0306332/petsc-2.3.2-p8/lib/linux-nompi-goto/libpetscksp.a(
bcgsl.o)(.text+0x10f3): In function `KSPSolve_BCGSL':<br>: undefined reference to `dpotrs_'<br>/nas/lsftmp/g0306332/petsc-2.3.2-p8/lib/linux-nompi-goto/libpetscksp.a(bcgsl.o)(.text+0x116f): In function `KSPSolve_BCGSL':
<br>: undefined reference to `dpotrs_'<br>/lsftmp/g0306332/GotoBLAS/libgoto.a(blas_server.o)(.text+0x370): In function `blas_thread_init':<br>: undefined reference to `pthread_create'<br>/lsftmp/g0306332/GotoBLAS/libgoto.a(blas_server.o)(.text+0x709): In function `blas_thread_shutdown_':
<br> </div>
<div>So can gotoblas be used?</div>
<div> </div>
<div>Thank you very much</div>
</blockquote></div><br><br clear="all"><br>-- <br>One trouble is that despite this system, anyone who reads journals widely<br>and critically is forced to realize that there are scarcely any bars to eventual<br>publication. There seems to be no study too fragmented, no hypothesis too
<br>trivial, no literature citation too biased or too egotistical, no design too<br>warped, no methodology too bungled, no presentation of results too<br>inaccurate, too obscure, and too contradictory, no analysis too self-serving,
<br>no argument too circular, no conclusions too trifling or too unjustified, and<br>no grammar and syntax too offensive for a paper to end up in print. -- Drummond Rennie