<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#ffffff" text="#000000">
    On 05.04.2012 14:42, Matthew Knepley wrote:
    <blockquote
cite="mid:CAMYG4GkxDoTn34Vg+qkRUkjjY891Luw=7=6acGZ8hCu_e6Vz-A@mail.gmail.com"
      type="cite">On Thu, Apr 5, 2012 at 7:22 AM, Alexander Grayver <span
        dir="ltr">&lt;<a moz-do-not-send="true"
          href="mailto:agrayver@gfz-potsdam.de">agrayver@gfz-potsdam.de</a>&gt;</span>
      wrote:<br>
      <div class="gmail_quote">
        <blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt
          0.8ex; border-left: 1px solid rgb(204, 204, 204);
          padding-left: 1ex;">
          <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">&lt;<a
                      moz-do-not-send="true"
                      href="mailto:agrayver@gfz-potsdam.de"
                      target="_blank">agrayver@gfz-potsdam.de</a>&gt;</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: &nbsp; &nbsp;*z =
                      PetscRealPart(BLASdot_(&amp;bn,xx,&amp;one,xx,&amp;one));<br>
                      240: &nbsp; &nbsp;*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
            moz-do-not-send="true" 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>
    </blockquote>
    <br>
    Sorry, next time I will.<br>
    <br>
    <blockquote
cite="mid:CAMYG4GkxDoTn34Vg+qkRUkjjY891Luw=7=6acGZ8hCu_e6Vz-A@mail.gmail.com"
      type="cite">
      <div class="gmail_quote">
        <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>
    </blockquote>
    <br>
    It does have zdotc. Old petsc-dev works with it fine (after I
    patched vec implementaton myself to get around this issue).<br>
    <br>
    home&gt; nm
    /opt/intel/Compiler/11.1/072/mkl/lib/em64t/libmkl_intel_lp64.a |
    grep zdotc<br>
    cblas_zdotci_lp64.o:<br>
    0000000000000000 T cblas_zdotci_sub<br>
    cblas_zdotc_lp64.o:<br>
    0000000000000000 T cblas_zdotc_sub<br>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; U zdotc<br>
    _zdotci_lp64.o:<br>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; U mkl_blas_zdotci<br>
    0000000000000000 T zdotci<br>
    0000000000000000 T zdotci_<br>
    _zdotc_lp64.o:<br>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; U mkl_blas_zdotc<br>
    0000000000000000 T zdotc<br>
    0000000000000000 T zdotc_<br>
    home&gt;<br>
    <br>
    <blockquote
cite="mid:CAMYG4GkxDoTn34Vg+qkRUkjjY891Luw=7=6acGZ8hCu_e6Vz-A@mail.gmail.com"
      type="cite">
      <div class="gmail_quote">
        <div><br>
        </div>
        <div>
          <div>sh: /opt/mpi/intel/openmpi-1.4.2/bin/mpicc &nbsp;-o
            /tmp/petsc-8AEO1f/config.packages.BlasLapack/conftest &nbsp;
            &nbsp;-wd1572 -Qoption,cpp,--extended_float_type -g
            /tmp/petsc-8AEO1f/config.packages.BlasLapack/conftest.o
            &nbsp;-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&nbsp;</div>
          <div>Executing: /opt/mpi/intel/openmpi-1.4.2/bin/mpicc &nbsp;-o
            /tmp/petsc-8AEO1f/config.packages.BlasLapack/conftest &nbsp;
            &nbsp;-wd1572 -Qoption,cpp,--extended_float_type -g
            /tmp/petsc-8AEO1f/config.packages.BlasLapack/conftest.o
            &nbsp;-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&nbsp;</div>
          <div>sh:&nbsp;</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>&nbsp;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>&nbsp; &nbsp; Matt</div>
        <div>&nbsp;</div>
        <blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt
          0.8ex; border-left: 1px solid rgb(204, 204, 204);
          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>&nbsp; PetscScalar tmpz;</div>
                  <div>&nbsp; zdotc_(&amp;tmpz,n,x,sx,y,sy);</div>
                  <div>&nbsp; return tmpz;</div>
                  <div>}</div>
                  <div>EXTERN_C_END</div>
                  <div>#else</div>
                  <div># &nbsp;define BLASdot_ &nbsp; &nbsp; 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>
    </blockquote>
    <br>
    <br>
    <pre class="moz-signature" cols="72">-- 
Regards,
Alexander</pre>
  </body>
</html>