This mail belongs on petsc-maint.<br><br>On 1/26/07, <b class="gmail_sendername">Ben Tay</b> &lt;<a href="mailto:zonexo@gmail.com">zonexo@gmail.com</a>&gt; 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>&nbsp;</div>

<div>My school&#39;s server has lapack and blas installed. However, I can&#39;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&#39;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&#39;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>&nbsp;</div>
<div>for libgoto.a : </div>
<div>&nbsp;</div>
<div>/nas/lsftmp/g0306332/petsc-2.3.2-p8/lib/linux-nompi-goto/libpetscksp.so: undefined reference to `pthread_create&#39;<br>/nas/lsftmp/g0306332/petsc-2.3.2-p8/lib/linux-nompi-goto/libpetscksp.so: undefined reference to `dpotrs_&#39;
<br>/nas/lsftmp/g0306332/petsc-2.3.2-p8/lib/linux-nompi-goto/libpetscksp.so: undefined reference to `pthread_join&#39;</div></blockquote><div><br>This library depends on pthreads (at least), so you have to&nbsp; specify it as well:
<br><br>&nbsp; --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>&nbsp;</div>
<div>/nas/lsftmp/g0306332/petsc-2.3.2-p8/lib/linux-nompi-goto/libpetscksp.so: undefined reference to `dpotrs_&#39;</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>&nbsp;</div>
<div>/nas/lsftmp/g0306332/petsc-2.3.2-p8/lib/linux-nompi-goto/libpetscksp.a(bcgsl.o)(.text+0x103a): In function `KSPSolve_BCGSL&#39;:<br>: undefined reference to `dpotrs_&#39;<br>/nas/lsftmp/g0306332/petsc-2.3.2-p8/lib/linux-nompi-goto/libpetscksp.a(
bcgsl.o)(.text+0x10f3): In function `KSPSolve_BCGSL&#39;:<br>: undefined reference to `dpotrs_&#39;<br>/nas/lsftmp/g0306332/petsc-2.3.2-p8/lib/linux-nompi-goto/libpetscksp.a(bcgsl.o)(.text+0x116f): In function `KSPSolve_BCGSL&#39;:
<br>: undefined reference to `dpotrs_&#39;<br>/lsftmp/g0306332/GotoBLAS/libgoto.a(blas_server.o)(.text+0x370): In function `blas_thread_init&#39;:<br>: undefined reference to `pthread_create&#39;<br>/lsftmp/g0306332/GotoBLAS/libgoto.a(blas_server.o)(.text+0x709): In function `blas_thread_shutdown_&#39;:
<br>&nbsp;</div>
<div>So can gotoblas be used?</div>
<div>&nbsp;</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