<?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 Hi Ying, in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Example-does-not-run/m-p/1039837#M20636</link>
    <description>&lt;P&gt;Hi Ying,&lt;/P&gt;

&lt;P&gt;&amp;nbsp;thanks, that's solved the issue. Moreover, I was able to run your example, nice! Can you say me what we said to the compiler to do differently in your answer, so that I understand what I am doing.&lt;/P&gt;

&lt;P&gt;&amp;nbsp; Also I noticed that you had a part that I didn't have in the compilation command, i.e.&amp;nbsp;-L/opt/intel/mkl/lib/intel64, which in my case had to be -L../intel/mkl/lib/intel64. I noticed that things were OK with and without it. Why should we use it?&lt;/P&gt;

&lt;P&gt;Thanks,&lt;/P&gt;

&lt;P&gt;George&lt;/P&gt;

&lt;P&gt;PS - damn you are good, it would take me much time to find out! :)&lt;/P&gt;</description>
    <pubDate>Tue, 16 Jun 2015 10:40:34 GMT</pubDate>
    <dc:creator>Georgios_S_</dc:creator>
    <dc:date>2015-06-16T10:40:34Z</dc:date>
    <item>
      <title>Example does not run</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Example-does-not-run/m-p/1039835#M20634</link>
      <description>&lt;P&gt;I am trying to run ScaLAPACK, through MKL. Since I have the student version, I had to install MPICH2, since what I want to do is to apply an inverse of a matrix, that can be done with Cholesky in a distributed environment.&lt;/P&gt;

&lt;P&gt;I got &lt;A href="http://geco.mines.edu/software/mkl/ex1.c"&gt;this&lt;/A&gt; ex1.c from &lt;A href="http://geco.mines.edu/software/mkl/"&gt;Intell 11&lt;/A&gt;. It compliles fine, but it fails to execute:&lt;/P&gt;

&lt;PRE class="brush:bash;"&gt;gsamaras@pythagoras:~/konstantis$ ../mpich-install/bin/mpicc -o test ex1.c -I../intel/mkl/include  ../intel/mkl/lib/intel64/libmkl_scalapack_ilp64.a -Wl,--start-group ../intel/mkl/lib/intel64/libmkl_intel_ilp64.a ../intel/mkl/lib/intel64/libmkl_core.a ../intel/mkl/lib/intel64/libmkl_sequential.a -Wl,--end-group ../intel/mkl/lib/intel64/libmkl_blacs_intelmpi_ilp64.a -lpthread -lm -ldl
gsamaras@pythagoras:~/konstantis$ mpiexec -n 4 ./test
{    0,    0}:  On entry to 
DESCI{    1,    0}:  On entry to NIT parameter number    9 had an illegal value 
{    0,    0}:  On entry to 
DESCINIT parameter number    4 had an illegal value 
  0  0 vals   1.00000   0.20100   0.50100   0.60100   0.10200   2.00000   0.50200   0.60200   0.10500   0.20500   5.00000   0.60500   0.10600   0.20600   0.50600   6.00000

DESCINIT parameter number    4 had an illegal value 
  0  0 vals   1.00000   0.20100   0.50100   0.60100   0.10200   2.00000   0.50200   0.60200   0.10500   0.20500   5.00000   0.60500   0.10600   0.20600   0.50600   6.00000
{    0,    1}:  On entry to 
DESCINIT parameter number    6 had an illegal value 
{    0,    1}:  On entry to 
DESCINIT parameter number    6 had an illegal value 
  0  1 vals   0.10300   0.20300   0.50300   0.60300   0.10400   0.20400   0.50400   0.60400   0.10700   0.20700   0.50700   0.60700   0.10800   0.20800   0.50800   0.60800
{    1,    1}:  On entry to {   -1,   -1}:  On entry to 
PSGESV
 parameter number  602 had an illegal value 
*** Error in `./test': free(): invalid next size (fast): 0x00000000021a6ae0 ***
DESCINIT parameter number    6 had an illegal value 
{    1,    1}:  On entry to 
DESCINIT parameter number    6 had an illegal value 
  0  1 vals   0.10300   0.20300   0.50300   0.60300   0.10400   0.20400   0.50400   0.60400   0.10700   0.20700   0.50700   0.60700   0.10800   0.20800   0.50800   0.60800
{   -1,   -1}:  On entry to 
PSGESV parameter number  602 had an illegal value 
*** Error in `./test': free(): invalid next size (fast): 0x000000000195dae0 ***

===================================================================================
=   BAD TERMINATION OF ONE OF YOUR APPLICATION PROCESSES
=   PID 13140 RUNNING AT pythagoras
=   EXIT CODE: 6
=   CLEANING UP REMAINING PROCESSES
=   YOU CAN IGNORE THE BELOW CLEANUP MESSAGES
===================================================================================
YOUR APPLICATION TERMINATED WITH THE EXIT STRING: Aborted (signal 6)
&lt;/PRE&gt;

&lt;P&gt;Moreover, the same happens with Ying's example from &lt;A href="https://software.intel.com/en-us/forums/topic/536962"&gt;here&lt;/A&gt;, which terrifies me:&lt;/P&gt;

&lt;PRE class="brush:bash;"&gt;gsamaras@pythagoras:~/konstantis$ ../mpich-install/bin/mpic++ -o test n.cpp -I../intel/mkl/include  ../intel/mkl/lib/intel64/libmkl_scalapack_ilp64.a -Wl,--start-group ../intel/mkl/lib/intel64/libmkl_intel_ilp64.a ../intel/mkl/lib/intel64/libmkl_core.a ../intel/mkl/lib/intel64/libmkl_sequential.a -Wl,--end-group ../intel/mkl/lib/intel64/libmkl_blacs_intelmpi_ilp64.a -lpthread -lm -ldl
n.cpp: In function ‘int main(int, char**)’:
n.cpp:96:48: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
     Cblacs_gridinit(&amp;amp;ictxt, "Row", nprow, npcol);
                                                ^
gsamaras@pythagoras:~/konstantis$ mpiexec -n 1 ./test
Returned:  Hello World! I am 0 of 1
here

===================================================================================
=   BAD TERMINATION OF ONE OF YOUR APPLICATION PROCESSES
=   PID 13605 RUNNING AT pythagoras
=   EXIT CODE: 8
=   CLEANING UP REMAINING PROCESSES
=   YOU CAN IGNORE THE BELOW CLEANUP MESSAGES
===================================================================================
YOUR APPLICATION TERMINATED WITH THE EXIT STRING: Floating point exception (signal 8)

&lt;/PRE&gt;

&lt;P&gt;and this happens at this line of the code:&lt;/P&gt;

&lt;PRE class="brush:cpp;"&gt;printf("here\n");
    locR = numroc_(&amp;amp;matrix_size, &amp;amp;block, &amp;amp;myrow, &amp;amp;izero, &amp;amp;nprow);
printf("here1\n");
&lt;/PRE&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;I wanted to execute these examples, so that I know that I am good to go for developing my code. Is there a problem with the examples (which I do not really need to run), or is there a problem with MKL's ScaLAPACK?&lt;/P&gt;</description>
      <pubDate>Mon, 15 Jun 2015 14:41:32 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Example-does-not-run/m-p/1039835#M20634</guid>
      <dc:creator>Georgios_S_</dc:creator>
      <dc:date>2015-06-15T14:41:32Z</dc:date>
    </item>
    <item>
      <title>Hi Georgios, </title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Example-does-not-run/m-p/1039836#M20635</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;A href="https://software.intel.com/en-us/user/1147263" style="font-size: 11px; line-height: 16.5px; background-color: rgb(238, 238, 238);"&gt;Georgios&lt;/A&gt;,&amp;nbsp;&lt;/P&gt;

&lt;P&gt;The int in C are supposed to be 32bit, you may try lp64 mode.&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;mpicc -o test_lp64 ex1.c -I/opt/intel/mkl/include &amp;nbsp;/opt/intel/mkl/lib/intel64/libmkl_scalapack_lp64.a -L/opt/intel/mkl/lib/intel64 -Wl,--start-group /opt/intel/mkl/lib/intel64/libmkl_intel_lp64.a /opt/intel/mkl/lib/intel64/libmkl_core.a /opt/intel/mkl/lib/intel64/libmkl_sequential.a -Wl,--end-group /opt/intel/mkl/lib/intel64/libmkl_blacs_intelmpi_lp64.a -lpthread -lm -ldl&lt;/P&gt;

&lt;P&gt;Best Regards,&lt;/P&gt;

&lt;P&gt;Ying&amp;nbsp;&lt;/P&gt;

&lt;P&gt;[yhu5@prc-mic01 scalapack]$ mpirun -n 4 ./test_lp64 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0 &amp;nbsp;0 vals &amp;nbsp; 1.00000 &amp;nbsp; 0.20100 &amp;nbsp; 0.50100 &amp;nbsp; 0.60100 &amp;nbsp; 0.10200 &amp;nbsp; 2.00000 &amp;nbsp; 0.50200 &amp;nbsp; 0.60200 &amp;nbsp; 0.10500 &amp;nbsp; 0.20500 &amp;nbsp; 5.00000 &amp;nbsp; 0.60500 &amp;nbsp; 0.10600 &amp;nbsp; 0.20600 &amp;nbsp; 0.50600 &amp;nbsp; 6.00000&lt;BR /&gt;
	&amp;nbsp; 1 &amp;nbsp;0 vals &amp;nbsp; 0.30100 &amp;nbsp; 0.40100 &amp;nbsp; 0.70100 &amp;nbsp; 0.80100 &amp;nbsp; 0.30200 &amp;nbsp; 0.40200 &amp;nbsp; 0.70200 &amp;nbsp; 0.80200 &amp;nbsp; 0.30500 &amp;nbsp; 0.40500 &amp;nbsp; 0.70500 &amp;nbsp; 0.80500 &amp;nbsp; 0.30600 &amp;nbsp; 0.40600 &amp;nbsp; 0.70600 &amp;nbsp; 0.80600&lt;BR /&gt;
	&amp;nbsp; 0 &amp;nbsp;1 vals &amp;nbsp; 0.10300 &amp;nbsp; 0.20300 &amp;nbsp; 0.50300 &amp;nbsp; 0.60300 &amp;nbsp; 0.10400 &amp;nbsp; 0.20400 &amp;nbsp; 0.50400 &amp;nbsp; 0.60400 &amp;nbsp; 0.10700 &amp;nbsp; 0.20700 &amp;nbsp; 0.50700 &amp;nbsp; 0.60700 &amp;nbsp; 0.10800 &amp;nbsp; 0.20800 &amp;nbsp; 0.50800 &amp;nbsp; 0.60800&lt;BR /&gt;
	&amp;nbsp; 1 &amp;nbsp;1 vals &amp;nbsp; 3.00000 &amp;nbsp; 0.40300 &amp;nbsp; 0.70300 &amp;nbsp; 0.80300 &amp;nbsp; 0.30400 &amp;nbsp; 4.00000 &amp;nbsp; 0.70400 &amp;nbsp; 0.80400 &amp;nbsp; 0.30700 &amp;nbsp; 0.40700 &amp;nbsp; 7.00000 &amp;nbsp; 0.80700 &amp;nbsp; 0.30800 &amp;nbsp; 0.40800 &amp;nbsp; 0.70800 &amp;nbsp; 8.00000&lt;BR /&gt;
	x=( 0 0) &amp;nbsp;0.9321 &amp;nbsp;0.3773 &amp;nbsp;0.0444 &amp;nbsp;0.0074&lt;BR /&gt;
	x=( 1 0) &amp;nbsp;0.1924 &amp;nbsp;0.0999 -0.0190 -0.0388&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Jun 2015 08:50:30 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Example-does-not-run/m-p/1039836#M20635</guid>
      <dc:creator>Ying_H_Intel</dc:creator>
      <dc:date>2015-06-16T08:50:30Z</dc:date>
    </item>
    <item>
      <title>Hi Ying,</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Example-does-not-run/m-p/1039837#M20636</link>
      <description>&lt;P&gt;Hi Ying,&lt;/P&gt;

&lt;P&gt;&amp;nbsp;thanks, that's solved the issue. Moreover, I was able to run your example, nice! Can you say me what we said to the compiler to do differently in your answer, so that I understand what I am doing.&lt;/P&gt;

&lt;P&gt;&amp;nbsp; Also I noticed that you had a part that I didn't have in the compilation command, i.e.&amp;nbsp;-L/opt/intel/mkl/lib/intel64, which in my case had to be -L../intel/mkl/lib/intel64. I noticed that things were OK with and without it. Why should we use it?&lt;/P&gt;

&lt;P&gt;Thanks,&lt;/P&gt;

&lt;P&gt;George&lt;/P&gt;

&lt;P&gt;PS - damn you are good, it would take me much time to find out! :)&lt;/P&gt;</description>
      <pubDate>Tue, 16 Jun 2015 10:40:34 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Example-does-not-run/m-p/1039837#M20636</guid>
      <dc:creator>Georgios_S_</dc:creator>
      <dc:date>2015-06-16T10:40:34Z</dc:date>
    </item>
    <item>
      <title>If you have installed and set</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Example-does-not-run/m-p/1039838#M20637</link>
      <description>&lt;P&gt;If you have installed and set up the intel compiler paths, the L path is taken care of. &amp;nbsp;Ilp64 libraries require long long int arguments while lp64 accepts 32 bit intel. N&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jun 2015 00:58:07 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Example-does-not-run/m-p/1039838#M20637</guid>
      <dc:creator>TimP</dc:creator>
      <dc:date>2015-06-17T00:58:07Z</dc:date>
    </item>
    <item>
      <title>Hi George, </title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Example-does-not-run/m-p/1039839#M20638</link>
      <description>&lt;P&gt;Hi George,&amp;nbsp;&lt;/P&gt;

&lt;P&gt;You are welcome. You may find the expected link line by Link advisor:&amp;nbsp;https://software.intel.com/en-us/articles/intel-mkl-link-line-advisor/&lt;/P&gt;

&lt;P&gt;for example, it will give you&lt;/P&gt;

&lt;P&gt;&amp;nbsp;-m64 &amp;nbsp;-I${MKLROOT}/include&amp;nbsp;-Wl,--no-as-needed -L${MKLROOT}/lib/intel64 -lmkl_scalapack_lp64 -lmkl_intel_lp64 -lmkl_core -lmkl_sequential -lmkl_blacs_intelmpi_lp64 -lpthread -lm.&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 13.0080003738403px; line-height: 19.5120010375977px;"&gt;&amp;nbsp;Here -L dir, &amp;nbsp;means &amp;nbsp; &lt;/SPAN&gt;Add directory dir to the list of directories to be searched for -llibrary&lt;/P&gt;

&lt;P&gt;And it is fine to use the explicit path of library as your command.&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 12px; line-height: 18px;"&gt;-I/opt/intel/mkl/include &amp;nbsp;/opt/intel/mkl/lib/intel64/libmkl_scalapack_lp64.a &amp;nbsp;-Wl,--start-group /opt/intel/mkl/lib/intel64/libmkl_intel_lp64.a /opt/intel/mkl/lib/intel64/libmkl_core.a /opt/intel/mkl/lib/intel64/libmkl_sequential.a -Wl,--end-group /opt/intel/mkl/lib/intel64/libmkl_blacs_intelmpi_lp64.a -lpthread -lm -ldl&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;So &amp;nbsp;you are exactly right the "&lt;/SPAN&gt;&lt;SPAN style="font-size: 12px; line-height: 18px;"&gt;-L../intel/mkl/lib/intel6" is not needed with the explicit path, please ignore it.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;Best Regards,&lt;/P&gt;

&lt;P&gt;Ying&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jun 2015 01:12:35 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Example-does-not-run/m-p/1039839#M20638</guid>
      <dc:creator>Ying_H_Intel</dc:creator>
      <dc:date>2015-06-17T01:12:35Z</dc:date>
    </item>
  </channel>
</rss>

