<?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 ZGESDD example does not run with MKL, runs well with vecLib  in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/ZGESDD-example-does-not-run-with-MKL-runs-well-with-vecLib/m-p/827769#M5260</link>
    <description>Hello,&lt;DIV&gt;&lt;SPAN style="font-family: Verdana, Arial, Helvetica, sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;I am having problems using the Singular Value Decomposition routine from LAPACK, specifically ZGESDD.&lt;/DIV&gt;&lt;DIV&gt;The error even appears with the example given in the Intel page:&lt;/DIV&gt;&lt;DIV&gt;&lt;A href="http://software.intel.com/sites/products/documentation/hpc/mkl/lapack/mkl_lapack_examples/zgesdd_ex.f.htm" target="_blank"&gt;http://software.intel.com/sites/products/documentation/hpc/mkl/lapack/mkl_lapack_examples/zgesdd_ex.f.htm&lt;/A&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;The compilation goes as&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;PRE&gt;[bash]$ ifort -L/opt/intel/Compiler/11.1/084/Frameworks/mkl/lib/em64t -I/opt/intel/Compiler/11.1/084/Frameworks/mkl/include -lmkl_intel_ilp64 -lmkl_sequential -lmkl_core -lpthread lapacktest.f 
$ ./a.out 
 ZGESDD Example Program Results

MKL ERROR: Parameter 13 was incorrect on entry to ZGESDD

MKL ERROR: Parameter 13 was incorrect on entry to ZGESDD
 
 Singular values
   0.00   0.00   0.00
 
 Left singular vectors (stored columnwise)
 (  0.00,  0.00) (  0.00,  0.00) (  0.00,  0.00)
 (  0.00,  0.00) (  0.00,  0.00) (  0.00,  0.00)
 (  0.00,  0.00) (  0.00,  0.00) (  0.00,  0.00)
 
 Right singular vectors (stored rowwise)
 (  0.00,  0.00) (  0.00,  0.00) (  0.00,  0.00) (  0.00,  0.00)
 (  0.00,  0.00) (  0.00,  0.00) (  0.00,  0.00) (  0.00,  0.00)
 (  0.00,  0.00) (  0.00,  0.00) (  0.00,  0.00) (  0.00,  0.00)
[/bash]&lt;/PRE&gt; &lt;/DIV&gt;&lt;DIV&gt;If, however, I compile with the vecLib framework, everything goes well:&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;PRE&gt;[bash]$ ifort -framework vecLib lapacktest.f 
$ ./a.out 
 ZGESDD Example Program Results
 
 Singular values
  21.76  16.60   3.97
 
 Left singular vectors (stored columnwise)
 (  0.55,  0.00) (  0.76,  0.00) ( -0.34,  0.00)
 ( -0.04, -0.15) (  0.27, -0.23) (  0.55, -0.74)
 (  0.81,  0.12) ( -0.52, -0.14) (  0.13, -0.11)
 
 Right singular vectors (stored rowwise)
 (  0.23,  0.21) (  0.37,  0.39) (  0.24,  0.33) ( -0.56, -0.37)
 ( -0.58,  0.40) (  0.11,  0.17) (  0.60, -0.27) (  0.16,  0.06)
 (  0.60,  0.12) ( -0.19,  0.30) (  0.39,  0.20) (  0.45,  0.31)
[/bash]&lt;/PRE&gt; &lt;/DIV&gt;&lt;DIV&gt;As you can see from the examples I am using version 11.1.084. I used to have version10.0.4.022, until I had to change because I switched to Snow Leopard (version 10.6.2). I briefly installed XCode 3.2.2 but then uninstalled because it broke the Ifort compiler,I then put 3.2 again. Now gcc gives me&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;PRE&gt;[bash]$ gcc -v
Using built-in specs.
Target: i686-apple-darwin10
Configured with: /var/tmp/gcc/gcc-5646~6/src/configure --disable-checking --enable-werror --prefix=/usr --mandir=/share/man --enable-languages=c,objc,c++,obj-c++ --program-transform-name=/^[cg][^.-]*$/s/$/-4.2/ --with-slibdir=/usr/lib --build=i686-apple-darwin10 --with-gxx-include-dir=/include/c++/4.2.1 --program-prefix=i686-apple-darwin10- --host=x86_64-apple-darwin10 --target=i686-apple-darwin10
Thread model: posix
gcc version 4.2.1 (Apple Inc. build 5646)
[/bash]&lt;/PRE&gt; &lt;/DIV&gt;&lt;DIV&gt;Any ideas?&lt;/DIV&gt;</description>
    <pubDate>Mon, 03 May 2010 10:25:33 GMT</pubDate>
    <dc:creator>fercook</dc:creator>
    <dc:date>2010-05-03T10:25:33Z</dc:date>
    <item>
      <title>ZGESDD example does not run with MKL, runs well with vecLib</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/ZGESDD-example-does-not-run-with-MKL-runs-well-with-vecLib/m-p/827769#M5260</link>
      <description>Hello,&lt;DIV&gt;&lt;SPAN style="font-family: Verdana, Arial, Helvetica, sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;I am having problems using the Singular Value Decomposition routine from LAPACK, specifically ZGESDD.&lt;/DIV&gt;&lt;DIV&gt;The error even appears with the example given in the Intel page:&lt;/DIV&gt;&lt;DIV&gt;&lt;A href="http://software.intel.com/sites/products/documentation/hpc/mkl/lapack/mkl_lapack_examples/zgesdd_ex.f.htm" target="_blank"&gt;http://software.intel.com/sites/products/documentation/hpc/mkl/lapack/mkl_lapack_examples/zgesdd_ex.f.htm&lt;/A&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;The compilation goes as&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;PRE&gt;[bash]$ ifort -L/opt/intel/Compiler/11.1/084/Frameworks/mkl/lib/em64t -I/opt/intel/Compiler/11.1/084/Frameworks/mkl/include -lmkl_intel_ilp64 -lmkl_sequential -lmkl_core -lpthread lapacktest.f 
$ ./a.out 
 ZGESDD Example Program Results

MKL ERROR: Parameter 13 was incorrect on entry to ZGESDD

MKL ERROR: Parameter 13 was incorrect on entry to ZGESDD
 
 Singular values
   0.00   0.00   0.00
 
 Left singular vectors (stored columnwise)
 (  0.00,  0.00) (  0.00,  0.00) (  0.00,  0.00)
 (  0.00,  0.00) (  0.00,  0.00) (  0.00,  0.00)
 (  0.00,  0.00) (  0.00,  0.00) (  0.00,  0.00)
 
 Right singular vectors (stored rowwise)
 (  0.00,  0.00) (  0.00,  0.00) (  0.00,  0.00) (  0.00,  0.00)
 (  0.00,  0.00) (  0.00,  0.00) (  0.00,  0.00) (  0.00,  0.00)
 (  0.00,  0.00) (  0.00,  0.00) (  0.00,  0.00) (  0.00,  0.00)
[/bash]&lt;/PRE&gt; &lt;/DIV&gt;&lt;DIV&gt;If, however, I compile with the vecLib framework, everything goes well:&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;PRE&gt;[bash]$ ifort -framework vecLib lapacktest.f 
$ ./a.out 
 ZGESDD Example Program Results
 
 Singular values
  21.76  16.60   3.97
 
 Left singular vectors (stored columnwise)
 (  0.55,  0.00) (  0.76,  0.00) ( -0.34,  0.00)
 ( -0.04, -0.15) (  0.27, -0.23) (  0.55, -0.74)
 (  0.81,  0.12) ( -0.52, -0.14) (  0.13, -0.11)
 
 Right singular vectors (stored rowwise)
 (  0.23,  0.21) (  0.37,  0.39) (  0.24,  0.33) ( -0.56, -0.37)
 ( -0.58,  0.40) (  0.11,  0.17) (  0.60, -0.27) (  0.16,  0.06)
 (  0.60,  0.12) ( -0.19,  0.30) (  0.39,  0.20) (  0.45,  0.31)
[/bash]&lt;/PRE&gt; &lt;/DIV&gt;&lt;DIV&gt;As you can see from the examples I am using version 11.1.084. I used to have version10.0.4.022, until I had to change because I switched to Snow Leopard (version 10.6.2). I briefly installed XCode 3.2.2 but then uninstalled because it broke the Ifort compiler,I then put 3.2 again. Now gcc gives me&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;PRE&gt;[bash]$ gcc -v
Using built-in specs.
Target: i686-apple-darwin10
Configured with: /var/tmp/gcc/gcc-5646~6/src/configure --disable-checking --enable-werror --prefix=/usr --mandir=/share/man --enable-languages=c,objc,c++,obj-c++ --program-transform-name=/^[cg][^.-]*$/s/$/-4.2/ --with-slibdir=/usr/lib --build=i686-apple-darwin10 --with-gxx-include-dir=/include/c++/4.2.1 --program-prefix=i686-apple-darwin10- --host=x86_64-apple-darwin10 --target=i686-apple-darwin10
Thread model: posix
gcc version 4.2.1 (Apple Inc. build 5646)
[/bash]&lt;/PRE&gt; &lt;/DIV&gt;&lt;DIV&gt;Any ideas?&lt;/DIV&gt;</description>
      <pubDate>Mon, 03 May 2010 10:25:33 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/ZGESDD-example-does-not-run-with-MKL-runs-well-with-vecLib/m-p/827769#M5260</guid>
      <dc:creator>fercook</dc:creator>
      <dc:date>2010-05-03T10:25:33Z</dc:date>
    </item>
    <item>
      <title>ZGESDD example does not run with MKL, runs well with vecLib</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/ZGESDD-example-does-not-run-with-MKL-runs-well-with-vecLib/m-p/827770#M5261</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Please add -i8 option (to use INTEGER*8 by default) because namely ILP64 -&amp;gt; -lmkl_intel_&lt;STRONG&gt;ilp64&lt;/STRONG&gt;library is used or try -lmkl_intel_lp64</description>
      <pubDate>Mon, 03 May 2010 16:29:28 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/ZGESDD-example-does-not-run-with-MKL-runs-well-with-vecLib/m-p/827770#M5261</guid>
      <dc:creator>barragan_villanueva_</dc:creator>
      <dc:date>2010-05-03T16:29:28Z</dc:date>
    </item>
  </channel>
</rss>

