On Thu, Apr 5, 2012 at 7:22 AM, Alexander Grayver <span dir="ltr"><<a href="mailto:agrayver@gfz-potsdam.de">agrayver@gfz-potsdam.de</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<u></u>
<div bgcolor="#ffffff" text="#000000"><div class="im">
On 05.04.2012 14:13, Jed Brown wrote:
<blockquote type="cite">
<div class="gmail_quote">On Thu, Apr 5, 2012 at 04:54, Alexander
Grayver <span dir="ltr"><<a href="mailto:agrayver@gfz-potsdam.de" target="_blank">agrayver@gfz-potsdam.de</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div>The inconsistency is still there. I pulled
petsc-dev today and came across with the same problem:<br>
<br>
src/vec/vec/impls/seq/bvec2.c<br>
239: *z = PetscRealPart(BLASdot_(&bn,xx,&one,xx,&one));<br>
240: *z = PetscSqrtReal(*z);<br>
<br>
This doesn't work with Intel MKL. However in one of the
mailing list discussions it was said there is now check for
that.<br>
This check didn't work for me apparently. Any ideas why?</div>
</blockquote>
</div>
<br>
<div>As always, we need configure.log.</div>
<div><br>
</div>
</blockquote></div>
Please find it attached.</div></blockquote><div><br></div><div>Please ALWAYS ALWAYS ALWAYS send configure.log to <a href="mailto:petsc-maint@mcs.anl.gov">petsc-maint@mcs.anl.gov</a>. They are too</div><div>big for the public list.</div>
<div><br></div><div>Second, your problem is that we get a link error tying to test this so it looks like</div><div>your BLAS have no complex implementations:</div><div><br></div><div><div>sh: /opt/mpi/intel/openmpi-1.4.2/bin/mpicc -o /tmp/petsc-8AEO1f/config.packages.BlasLapack/conftest -wd1572 -Qoption,cpp,--extended_float_type -g /tmp/petsc-8AEO1f/config.packages.BlasLapack/conftest.o -ldl -L/opt/mpi/intel/openmpi-1.4.2/lib -lmpi -lopen-rte -lopen-pal -lnsl -lutil -L/opt/mpi/intel/openmpi-1.4.2/lib -L/opt/intel/Compiler/11.1/072/ipp/em64t/lib -L/opt/intel/Compiler/11.1/072/mkl/interfaces/fftw3xf -L//opt/intel/Compiler/11.1/072/lib/intel64 -L/usr/lib64/gcc/x86_64-suse-linux/4.3 -L/opt/intel/Compiler/11.1/072/ipp/em64t/lib -L/opt/intel/Compiler/11.1/072/mkl/interfaces/fftw3xf -L/usr/x86_64-suse-linux/lib -limf -lsvml -lipgo -ldecimal -lgcc_s -lirc -lpthread -lirc_s -L/opt/mpi/intel/openmpi-1.4.2/lib -L/opt/intel/Compiler/11.1/072/ipp/em64t/lib -L/opt/intel/Compiler/11.1/072/mkl/interfaces/fftw3xf -L//opt/intel/Compiler/11.1/072/lib/intel64 -L/usr/lib64/gcc/x86_64-suse-linux/4.3 -L/opt/intel/Compiler/11.1/072/ipp/em64t/lib -L/opt/intel/Compiler/11.1/072/mkl/interfaces/fftw3xf -L/usr/x86_64-suse-linux/lib -ldl </div>
<div>Executing: /opt/mpi/intel/openmpi-1.4.2/bin/mpicc -o /tmp/petsc-8AEO1f/config.packages.BlasLapack/conftest -wd1572 -Qoption,cpp,--extended_float_type -g /tmp/petsc-8AEO1f/config.packages.BlasLapack/conftest.o -ldl -L/opt/mpi/intel/openmpi-1.4.2/lib -lmpi -lopen-rte -lopen-pal -lnsl -lutil -L/opt/mpi/intel/openmpi-1.4.2/lib -L/opt/intel/Compiler/11.1/072/ipp/em64t/lib -L/opt/intel/Compiler/11.1/072/mkl/interfaces/fftw3xf -L//opt/intel/Compiler/11.1/072/lib/intel64 -L/usr/lib64/gcc/x86_64-suse-linux/4.3 -L/opt/intel/Compiler/11.1/072/ipp/em64t/lib -L/opt/intel/Compiler/11.1/072/mkl/interfaces/fftw3xf -L/usr/x86_64-suse-linux/lib -limf -lsvml -lipgo -ldecimal -lgcc_s -lirc -lpthread -lirc_s -L/opt/mpi/intel/openmpi-1.4.2/lib -L/opt/intel/Compiler/11.1/072/ipp/em64t/lib -L/opt/intel/Compiler/11.1/072/mkl/interfaces/fftw3xf -L//opt/intel/Compiler/11.1/072/lib/intel64 -L/usr/lib64/gcc/x86_64-suse-linux/4.3 -L/opt/intel/Compiler/11.1/072/ipp/em64t/lib -L/opt/intel/Compiler/11.1/072/mkl/interfaces/fftw3xf -L/usr/x86_64-suse-linux/lib -ldl </div>
<div>sh: </div><div>Possible ERROR while running linker: /tmp/petsc-8AEO1f/config.packages.BlasLapack/conftest.o: In function `main':</div><div>/tmp/petsc-8AEO1f/config.packages.BlasLapack/conftest.c:14: undefined reference to `zdotc_'</div>
<div> output: ret = 256</div><div>error message = {/tmp/petsc-8AEO1f/config.packages.BlasLapack/conftest.o: In function `main':</div><div>/tmp/petsc-8AEO1f/config.packages.BlasLapack/conftest.c:14: undefined reference to `zdotc_'</div>
<div>}</div></div><div><br></div><div><br></div><div> Matt</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div bgcolor="#ffffff" text="#000000"><div class="im">
In include/petscblaslapack_uscore.h (and other places), you
will find the following. So we need to know why
PETSC_COMPLEX_DOT_RESULT_ARGUMENT was not found by configure.<br>
<br></div>
This I can see...<div class="im"><br>
<br>
<blockquote type="cite">
<div><br>
</div>
<div>
<div>#ifdef PETSC_COMPLEX_DOT_RESULT_ARGUMENT</div>
<div>EXTERN_C_BEGIN</div>
<div>extern void zdotc_(PetscScalar *,const PetscBLASInt*,const
PetscScalar*,const PetscBLASInt*,const PetscScalar*,const
PetscBLASInt*);</div>
<div>PETSC_STATIC_INLINE PetscScalar BLASdot_(const PetscBLASInt
*n,const PetscScalar *x,const PetscBLASInt *sx,const
PetscScalar *y,const PetscBLASInt *sy) {</div>
<div> PetscScalar tmpz;</div>
<div> zdotc_(&tmpz,n,x,sx,y,sy);</div>
<div> return tmpz;</div>
<div>}</div>
<div>EXTERN_C_END</div>
<div>#else</div>
<div># define BLASdot_ zdotc_</div>
<div>#endif</div>
</div>
</blockquote>
<br>
<br>
</div><span class="HOEnZb"><font color="#888888"><pre cols="72">--
Regards,
Alexander</pre>
</font></span></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br>What most experimenters take for granted before they begin their experiments is infinitely more interesting than any results to which their experiments lead.<br>
-- Norbert Wiener<br>