<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic IDAMAX question in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/IDAMAX-question/m-p/824398#M5031</link>
    <description>&lt;P&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;There is mismatch of libraries integer types in the linking line, should be-lmkl_gf_lp64, not -lmkl_gf_&lt;SPAN style="color: #ff0000;"&gt;&lt;STRONG&gt;i&lt;/STRONG&gt;&lt;/SPAN&gt;lp64.&lt;BR /&gt;&lt;BR /&gt;W.B.R.,&lt;BR /&gt;Alexander&lt;/P&gt;</description>
    <pubDate>Mon, 17 Jan 2011 07:18:24 GMT</pubDate>
    <dc:creator>Alexander_K_Intel3</dc:creator>
    <dc:date>2011-01-17T07:18:24Z</dc:date>
    <item>
      <title>IDAMAX question</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/IDAMAX-question/m-p/824389#M5022</link>
      <description>I am testing a MPI code MUMPS on 64 bit linux and link it with MKL. However, the code crashes on IDAMAX. Here is my link line:&lt;BR /&gt;gfortran -O -fPIC -I/tmp_mnt/u/seattle01/dev/dev_ccm+/mpi/platform/PMPI/8.0.1.0/linux64_2.6-x86-glibc_2.3.4/include -I. -I../include -c dsimpletest.F&lt;BR /&gt;gfortran -o dsimpletest -O -fPIC dsimpletest.o ../lib/libdmumps.a ../lib/libmumps_common.a -L../PORD/lib/ -lpord -L/u/xeons03/people/xian/intel/composerxe-2011.1.107/mkl/lib/intel64/ -lmkl_scalapack_lp64 -lmkl_gf_ilp64 -lmkl_blacs_intelmpi_lp64 -lmkl_intel_lp64 -lmkl_intel_thread -lmkl_core -L/u/xeons03/people/xian/intel/composerxe-2011.1.107/compiler/lib/intel64/ -liomp5 -lpthread -lm -L/tmp_mnt/u/seattle01/dev/dev_ccm+/mpi/platform/PMPI/8.0.1.0/linux64_2.6-x86-glibc_2.3.4/lib/linux_amd64/ -lmpi -lblas -lpthread&lt;BR /&gt;Is it possible of mismatching between 32 bit vs 64 bit?</description>
      <pubDate>Fri, 14 Jan 2011 00:24:10 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/IDAMAX-question/m-p/824389#M5022</guid>
      <dc:creator>xian-zhong_guous_cd-</dc:creator>
      <dc:date>2011-01-14T00:24:10Z</dc:date>
    </item>
    <item>
      <title>IDAMAX question</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/IDAMAX-question/m-p/824390#M5023</link>
      <description>One more detail: MUMPS written in fortran90.</description>
      <pubDate>Fri, 14 Jan 2011 00:36:52 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/IDAMAX-question/m-p/824390#M5023</guid>
      <dc:creator>xian-zhong_guous_cd-</dc:creator>
      <dc:date>2011-01-14T00:36:52Z</dc:date>
    </item>
    <item>
      <title>IDAMAX question</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/IDAMAX-question/m-p/824391#M5024</link>
      <description>&lt;I&gt;Is it possible of mismatching between 32 bit vs 64 bit?&lt;BR /&gt;&lt;BR /&gt;&lt;/I&gt;The linker will not let you link 32-bit objects with 64-bit objects.&lt;BR /&gt;&lt;BR /&gt;As to your first question: IDAMAX is a simple function, so it should be possible to isolate the problem. What are the values passed to IDAMAX?</description>
      <pubDate>Fri, 14 Jan 2011 04:35:49 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/IDAMAX-question/m-p/824391#M5024</guid>
      <dc:creator>mecej4</dc:creator>
      <dc:date>2011-01-14T04:35:49Z</dc:date>
    </item>
    <item>
      <title>IDAMAX question</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/IDAMAX-question/m-p/824392#M5025</link>
      <description>The values passed to IDAMAX seem correct:&lt;BR /&gt;n= 1 x= 0.255216946324049 incx= 1&lt;BR /&gt;When I replace IDAMAX(n,x,incx) by IDAMAX(x), it does not crash any more. As I mentioned, the code I am testing is writted in FORTRAN90. I am wodnering whether I should use fortran95 interface. As matter of fact, now it complains other BLAS f77 function calls:&lt;BR /&gt;MKL ERROR: Parameter 2 was incorrect on entry to DGER&lt;BR /&gt;MKL ERROR: Parameter 6 was incorrect on entry to DTRSM&lt;BR /&gt;MKL ERROR: Parameter 4 was incorrect on entry to DGEMM&lt;BR /&gt;</description>
      <pubDate>Fri, 14 Jan 2011 17:50:58 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/IDAMAX-question/m-p/824392#M5025</guid>
      <dc:creator>xian-zhong_guous_cd-</dc:creator>
      <dc:date>2011-01-14T17:50:58Z</dc:date>
    </item>
    <item>
      <title>IDAMAX question</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/IDAMAX-question/m-p/824393#M5026</link>
      <description>It looks like you should be including the USE or header files corresponding to the BLAS f77 or 95 usage you have chosen, to enable the compiler to complain about mistaken mixtures of the two.</description>
      <pubDate>Fri, 14 Jan 2011 20:26:07 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/IDAMAX-question/m-p/824393#M5026</guid>
      <dc:creator>TimP</dc:creator>
      <dc:date>2011-01-14T20:26:07Z</dc:date>
    </item>
    <item>
      <title>IDAMAX question</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/IDAMAX-question/m-p/824394#M5027</link>
      <description>Does that mean I need modify the source code? If yes, what happens if switching BLAS and LAPACK?</description>
      <pubDate>Fri, 14 Jan 2011 21:23:11 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/IDAMAX-question/m-p/824394#M5027</guid>
      <dc:creator>xian-zhong_guous_cd-</dc:creator>
      <dc:date>2011-01-14T21:23:11Z</dc:date>
    </item>
    <item>
      <title>IDAMAX question</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/IDAMAX-question/m-p/824395#M5028</link>
      <description>To use the Fortran 9x interface to BLAS/LAPACK, in particular those routines that entail OPTIONAL arguments and ALLOCATABLE arguments, you must provide an explicit interface in the caller. If your code does not do this, that is an error that you are responsible for fixing. &lt;BR /&gt;&lt;BR /&gt;If your code contains proper calls to the Fortran 9x interface names to BLAS/LAPACK, but the returned runtime error messages are in terms of the arguments to the F77 routines which support the Fortran 9X routines, I consider that a defect in the implementation.&lt;BR /&gt;&lt;BR /&gt;&lt;I&gt;If yes, what happens if switching BLAS and LAPACK?&lt;/I&gt;&lt;BR /&gt;&lt;BR /&gt;I have no idea what you meant to ask. Do you mean switch from one implementation to another? If so, and both implementations follow the standard documented API, nothing &lt;SPAN style="text-decoration: underline;"&gt;should&lt;/SPAN&gt; happen except with regard to those portions that are allowed to be vendor-dependent.</description>
      <pubDate>Sun, 16 Jan 2011 04:21:49 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/IDAMAX-question/m-p/824395#M5028</guid>
      <dc:creator>mecej4</dc:creator>
      <dc:date>2011-01-16T04:21:49Z</dc:date>
    </item>
    <item>
      <title>IDAMAX question</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/IDAMAX-question/m-p/824396#M5029</link>
      <description>&lt;DIV id="tiny_quote"&gt;
                &lt;DIV style="margin-left: 2px; margin-right: 2px;"&gt;Quoting &lt;A rel="/en-us/services/profile/quick_profile.php?is_paid=&amp;amp;user_id=9662" class="basic" href="https://community.intel.com/en-us/profile/9662/"&gt;mecej4&lt;/A&gt;&lt;/DIV&gt;
                &lt;DIV style="background-color: #e5e5e5; padding: 5px; border: 1px inset; margin-left: 2px; margin-right: 2px;"&gt;&lt;I&gt;&lt;BR /&gt;If your code contains proper calls to the Fortran 9x interface names to BLAS/LAPACK, but the returned runtime error messages are in terms of the arguments to the F77 routines which support the Fortran 9X routines, I consider that a defect in the implementation.&lt;BR /&gt;&lt;BR /&gt;&lt;I&gt;&lt;BR /&gt;&lt;/I&gt;&lt;/I&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&lt;/P&gt;The core functions don't change, and don't know whether they were called directly by the original f77 interface, or indirectly through f95 interface. If that's a "defect," it's inherent in the public BLAS95/LAPACK95 design, to which MKL is faithful. MKL replicates all behavior of the reference netlib code, even in the few cases where there is an obvious fixable bug.&lt;BR /&gt;</description>
      <pubDate>Sun, 16 Jan 2011 13:55:10 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/IDAMAX-question/m-p/824396#M5029</guid>
      <dc:creator>TimP</dc:creator>
      <dc:date>2011-01-16T13:55:10Z</dc:date>
    </item>
    <item>
      <title>IDAMAX question</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/IDAMAX-question/m-p/824397#M5030</link>
      <description>There was &lt;A href="http://software.intel.com/en-us/forums/showthread.php?t=76567&amp;amp;o=a&amp;amp;s=lr"&gt;this thread&lt;/A&gt; a few weeks ago on the F77-F90 interface question. Another problem underlying the F95 interfaces is that Lapack95 has gone unrevised for many years and some parts, therefore, are dated w.r.t. their F77 counterparts. &lt;BR /&gt;&lt;BR /&gt;Intel has deviated from the reference BLAS and LAPACK specifications in a few instances to allow the programmer to recover from a failed call using the returned INFO argument rather than having the program abort with an error message. In these instances, at least, there should be no obstacle to providing an interpretation of the error value in the INFO returned by the F77 routines into error messages in terms of the F9X arguments.&lt;BR /&gt;&lt;BR /&gt;An extension along the same lines would enable one to shield the user of an F9X routine from the messages given by the F77 routine. The F9X wrapper routine would call the F77 routine with an input value of INFO that tells it not to print any error messages but to return a suitable INFO value. The wrapper routine would then interpret that value in terms of its own arguments. Such re-interpretations already exist in some BLAS95 and LAPACK95 routines, I think.&lt;BR /&gt;</description>
      <pubDate>Mon, 17 Jan 2011 07:15:22 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/IDAMAX-question/m-p/824397#M5030</guid>
      <dc:creator>mecej4</dc:creator>
      <dc:date>2011-01-17T07:15:22Z</dc:date>
    </item>
    <item>
      <title>IDAMAX question</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/IDAMAX-question/m-p/824398#M5031</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;There is mismatch of libraries integer types in the linking line, should be-lmkl_gf_lp64, not -lmkl_gf_&lt;SPAN style="color: #ff0000;"&gt;&lt;STRONG&gt;i&lt;/STRONG&gt;&lt;/SPAN&gt;lp64.&lt;BR /&gt;&lt;BR /&gt;W.B.R.,&lt;BR /&gt;Alexander&lt;/P&gt;</description>
      <pubDate>Mon, 17 Jan 2011 07:18:24 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/IDAMAX-question/m-p/824398#M5031</guid>
      <dc:creator>Alexander_K_Intel3</dc:creator>
      <dc:date>2011-01-17T07:18:24Z</dc:date>
    </item>
    <item>
      <title>IDAMAX question</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/IDAMAX-question/m-p/824399#M5032</link>
      <description>Alexander,&lt;BR /&gt; You are the hero. Yes, that mismathch was the cuase of my problem. Thank you very much. You guys at Intel are great.&lt;BR /&gt;&lt;BR /&gt;Sam</description>
      <pubDate>Mon, 17 Jan 2011 17:25:27 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/IDAMAX-question/m-p/824399#M5032</guid>
      <dc:creator>xian-zhong_guous_cd-</dc:creator>
      <dc:date>2011-01-17T17:25:27Z</dc:date>
    </item>
  </channel>
</rss>

