<?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 Help! 64-bit MKL BLAS  in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Help-64-bit-MKL-BLAS/m-p/868897#M8268</link>
    <description>&lt;P&gt;Hello, I am new user of MKL and trying to merge my programs written in Fortran 90 on 32-bit Linux to 64-bit Linux. But some troubles appear.&lt;/P&gt;
&lt;P&gt;The current Linux system is a dual quad-core Xeon system (interactive node of a linux cluster) with CentOS 5.2 (x86_64), intel fortran compiler 10.1.0, MKL 10.0.3.020.15&lt;/P&gt;
&lt;P&gt;I used many vector-math mutiplication subroutines from BLAS (DSCAL, DAXPY, DCOPY, DDOT, ...). In my old 32-bit Linux cluster system (i386, Redhat 9, and goto BLAS library), it's okay. But on the 64-bit system, I used the command-line to compile:&lt;/P&gt;
&lt;P&gt;$ ifort -g -i4 -r8 -o test_qmr test_qmr.f qmr.f xerbla.f -lmkl_em64t&lt;/P&gt;
&lt;P&gt;It compiled smoothly. When I try to run ./test_qmr, error messages appeard:&lt;/P&gt;
&lt;P&gt;forrtl: severe (174): SIGSEGV, segmentation fault occurred&lt;BR /&gt;Image PC Routine Line Source &lt;BR /&gt;test_qmr 000000000040A2FA Unknown Unknown Unknown&lt;BR /&gt;test_qmr 00000000004140A3 Unknown Unknown Unknown&lt;BR /&gt;test_qmr 0000000000402FC2 Unknown Unknown Unknown&lt;BR /&gt;libc.so.6 00000034FF01D8B4 Unknown Unknown Unknown&lt;BR /&gt;test_qmr 0000000000402EE9 Unknown Unknown Unknown&lt;/P&gt;
&lt;P&gt;Then I comipled like this&lt;/P&gt;
&lt;P&gt;$ ifort -g -i8 -r16 -o test_qmr test_qmr.f qmr.f xerbla.f -lmkl_em64t&lt;/P&gt;
&lt;P&gt;the result becoming&lt;/P&gt;
&lt;P&gt;Iteration fail&lt;BR /&gt; rho = NaN xi = &lt;BR /&gt; 5.656159843027550937243901911628268E-4940&lt;BR /&gt; NO. ITER = 0 ERROR = &lt;BR /&gt; 2.718736082757232227640224530217762E-4935&lt;BR /&gt; 0.000000000000000000000000000000000E+0000&lt;BR /&gt; 0.000000000000000000000000000000000E+0000&lt;BR /&gt; 0.000000000000000000000000000000000E+0000&lt;BR /&gt; 0.000000000000000000000000000000000E+0000&lt;BR /&gt;which is apparently wrong. I can get the correct answer when I use 32-bit version ifort and mkl on the same 64-bit machine:&lt;/P&gt;
&lt;P&gt;$ /opt/intel/fc/9.1.045/bin/ifort -O2 -i4 -r8 -o test_qmr test_qmr.f qmr.f xerbla.f -L/opt/intel/mkl/10.0.5.025/lib/32 -lmkl_ia32&lt;/P&gt;
&lt;P&gt;and the result is&lt;/P&gt;
&lt;P&gt;$ ./test_qmr&lt;BR /&gt; NO. ITER = 4 ERROR = 3.783760209647154E-031&lt;BR /&gt; 1.66666666666667 0.574074074074074 0.111111111111111 0.370370370370370&lt;/P&gt;
&lt;P&gt;Anyone has an idea of this kind of problem? If I haven't made myself clear, please forgive me. I don't know if I can updoad the programs here.&lt;/P&gt;
&lt;P&gt;Many thanks.&lt;/P&gt;</description>
    <pubDate>Mon, 13 Oct 2008 06:39:36 GMT</pubDate>
    <dc:creator>lixxsmart_mit_edu</dc:creator>
    <dc:date>2008-10-13T06:39:36Z</dc:date>
    <item>
      <title>Help! 64-bit MKL BLAS</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Help-64-bit-MKL-BLAS/m-p/868897#M8268</link>
      <description>&lt;P&gt;Hello, I am new user of MKL and trying to merge my programs written in Fortran 90 on 32-bit Linux to 64-bit Linux. But some troubles appear.&lt;/P&gt;
&lt;P&gt;The current Linux system is a dual quad-core Xeon system (interactive node of a linux cluster) with CentOS 5.2 (x86_64), intel fortran compiler 10.1.0, MKL 10.0.3.020.15&lt;/P&gt;
&lt;P&gt;I used many vector-math mutiplication subroutines from BLAS (DSCAL, DAXPY, DCOPY, DDOT, ...). In my old 32-bit Linux cluster system (i386, Redhat 9, and goto BLAS library), it's okay. But on the 64-bit system, I used the command-line to compile:&lt;/P&gt;
&lt;P&gt;$ ifort -g -i4 -r8 -o test_qmr test_qmr.f qmr.f xerbla.f -lmkl_em64t&lt;/P&gt;
&lt;P&gt;It compiled smoothly. When I try to run ./test_qmr, error messages appeard:&lt;/P&gt;
&lt;P&gt;forrtl: severe (174): SIGSEGV, segmentation fault occurred&lt;BR /&gt;Image PC Routine Line Source &lt;BR /&gt;test_qmr 000000000040A2FA Unknown Unknown Unknown&lt;BR /&gt;test_qmr 00000000004140A3 Unknown Unknown Unknown&lt;BR /&gt;test_qmr 0000000000402FC2 Unknown Unknown Unknown&lt;BR /&gt;libc.so.6 00000034FF01D8B4 Unknown Unknown Unknown&lt;BR /&gt;test_qmr 0000000000402EE9 Unknown Unknown Unknown&lt;/P&gt;
&lt;P&gt;Then I comipled like this&lt;/P&gt;
&lt;P&gt;$ ifort -g -i8 -r16 -o test_qmr test_qmr.f qmr.f xerbla.f -lmkl_em64t&lt;/P&gt;
&lt;P&gt;the result becoming&lt;/P&gt;
&lt;P&gt;Iteration fail&lt;BR /&gt; rho = NaN xi = &lt;BR /&gt; 5.656159843027550937243901911628268E-4940&lt;BR /&gt; NO. ITER = 0 ERROR = &lt;BR /&gt; 2.718736082757232227640224530217762E-4935&lt;BR /&gt; 0.000000000000000000000000000000000E+0000&lt;BR /&gt; 0.000000000000000000000000000000000E+0000&lt;BR /&gt; 0.000000000000000000000000000000000E+0000&lt;BR /&gt; 0.000000000000000000000000000000000E+0000&lt;BR /&gt;which is apparently wrong. I can get the correct answer when I use 32-bit version ifort and mkl on the same 64-bit machine:&lt;/P&gt;
&lt;P&gt;$ /opt/intel/fc/9.1.045/bin/ifort -O2 -i4 -r8 -o test_qmr test_qmr.f qmr.f xerbla.f -L/opt/intel/mkl/10.0.5.025/lib/32 -lmkl_ia32&lt;/P&gt;
&lt;P&gt;and the result is&lt;/P&gt;
&lt;P&gt;$ ./test_qmr&lt;BR /&gt; NO. ITER = 4 ERROR = 3.783760209647154E-031&lt;BR /&gt; 1.66666666666667 0.574074074074074 0.111111111111111 0.370370370370370&lt;/P&gt;
&lt;P&gt;Anyone has an idea of this kind of problem? If I haven't made myself clear, please forgive me. I don't know if I can updoad the programs here.&lt;/P&gt;
&lt;P&gt;Many thanks.&lt;/P&gt;</description>
      <pubDate>Mon, 13 Oct 2008 06:39:36 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Help-64-bit-MKL-BLAS/m-p/868897#M8268</guid>
      <dc:creator>lixxsmart_mit_edu</dc:creator>
      <dc:date>2008-10-13T06:39:36Z</dc:date>
    </item>
    <item>
      <title>Re: Help! 64-bit MKL BLAS</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Help-64-bit-MKL-BLAS/m-p/868898#M8269</link>
      <description>&lt;DIV style="margin:0px;"&gt;Could you please try the following linking line for BLAS functionality:&lt;/DIV&gt;
&lt;DIV style="margin:0px;"&gt;ifort -w test.f /opt/intel/mkl/10.0.3.020/lib/em64t/libmkl_intel_lp64.a /opt/intel/mkl/10.0.3.020/lib/em64t/libmkl_intel_thread.a &lt;BR /&gt;/opt/intel/mkl/10.0.3.020/lib/em64t/libmkl_core.a -L/opt/intel/mkl/10.0.3.020/lib/em64t -lguide -lpthread &lt;BR /&gt;-o test.out&lt;BR /&gt;--Gennady&lt;/DIV&gt;
&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 13 Oct 2008 06:58:52 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Help-64-bit-MKL-BLAS/m-p/868898#M8269</guid>
      <dc:creator>Gennady_F_Intel</dc:creator>
      <dc:date>2008-10-13T06:58:52Z</dc:date>
    </item>
    <item>
      <title>Re: Help! 64-bit MKL BLAS</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Help-64-bit-MKL-BLAS/m-p/868899#M8270</link>
      <description>&lt;DIV style="margin:0px;"&gt;&lt;BR /&gt;&lt;/DIV&gt;
&lt;DIV style="margin:0px;"&gt;
&lt;DIV id="quote_reply" style="width: 100%; margin-top: 5px;"&gt;
&lt;DIV style="margin-left:2px;margin-right:2px;"&gt;Quoting - &lt;A href="https://community.intel.com/en-us/profile/334681"&gt;Gennady Fedorov (Intel)&lt;/A&gt;&lt;/DIV&gt;
&lt;DIV style="background-color:#E5E5E5; padding:5px;border: 1px; border-style: inset;margin-left:2px;margin-right:2px;"&gt;&lt;EM&gt;
&lt;DIV style="margin:0px;"&gt;Could you please try the following linking line for BLAS functionality:&lt;/DIV&gt;
&lt;DIV style="margin:0px;"&gt;ifort -w test.f /opt/intel/mkl/10.0.3.020/lib/em64t/libmkl_intel_lp64.a /opt/intel/mkl/10.0.3.020/lib/em64t/libmkl_intel_thread.a &lt;BR /&gt;/opt/intel/mkl/10.0.3.020/lib/em64t/libmkl_core.a -L/opt/intel/mkl/10.0.3.020/lib/em64t -lguide -lpthread &lt;BR /&gt;-o test.out&lt;BR /&gt;--Gennady&lt;/DIV&gt;
&lt;/EM&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;P&gt;I found if there is no "-i4 -i8" the compilation is okay and the program can run, but the resut is not correct.&lt;/P&gt;
&lt;P&gt;When compiling with the command you provided above (static link) without specification of integer-size and real-size, the result is like this:&lt;/P&gt;
&lt;P&gt;Iteration fail&lt;BR /&gt; rho = -1.1745938E-19 xi = -7.1265819E-38&lt;BR /&gt; NO. ITER = 0 ERROR = -7.1265819E-38&lt;BR /&gt; 0.0000000E+00 0.0000000E+00 0.0000000E+00 0.0000000E+00&lt;/P&gt;
&lt;P&gt;which is also wrong.&lt;/P&gt;
&lt;P&gt;I also tried the latest MKL version 10.0.5.250 on another x86_64 linux cluster and the result is the same.&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 13 Oct 2008 07:35:04 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Help-64-bit-MKL-BLAS/m-p/868899#M8270</guid>
      <dc:creator>lixxsmart_mit_edu</dc:creator>
      <dc:date>2008-10-13T07:35:04Z</dc:date>
    </item>
    <item>
      <title>Re: Help! 64-bit MKL BLAS</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Help-64-bit-MKL-BLAS/m-p/868900#M8271</link>
      <description>&lt;DIV style="margin:0px;"&gt;MKL has no support for -r16, as you could read in previous responses.&lt;BR /&gt;If you call the double precision BLAS functions without using either -i4 (default)or -i8 (not default), you must declare the floating point arguments as double precision. Using the appropriate include files would help diagnose problems.&lt;/DIV&gt;</description>
      <pubDate>Mon, 13 Oct 2008 17:44:47 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Help-64-bit-MKL-BLAS/m-p/868900#M8271</guid>
      <dc:creator>TimP</dc:creator>
      <dc:date>2008-10-13T17:44:47Z</dc:date>
    </item>
  </channel>
</rss>

