<?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 Re: MKL scalapack and example1.f in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/MKL-scalapack-and-example1-f/m-p/874715#M8807</link>
    <description>&lt;DIV style="margin: 0px; height: auto;"&gt;&lt;/DIV&gt;
The example supposes that you use at least a 2x3 grid (check the npcol and nprow variables). Try&lt;BR /&gt;&lt;BR /&gt;mpirun -np 6 ./example&lt;BR /&gt;&lt;BR /&gt;and sees if works.&lt;BR /&gt;</description>
    <pubDate>Sat, 28 Nov 2009 13:29:22 GMT</pubDate>
    <dc:creator>mfactor</dc:creator>
    <dc:date>2009-11-28T13:29:22Z</dc:date>
    <item>
      <title>MKL scalapack and example1.f</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/MKL-scalapack-and-example1-f/m-p/874712#M8804</link>
      <description>Hello!&lt;BR /&gt;&lt;BR /&gt;I'm trying to start using MKL Scalapack and have downloaded example1.f from &lt;A href="http://www.netlib.org/scalapack/examples/" target="_blank"&gt;http://www.netlib.org/scalapack/examples/&lt;/A&gt;.&lt;BR /&gt;But it failes to start both on gfortran and ifort:&lt;BR /&gt;&lt;BR /&gt;If mpif77 points to ifort:&lt;BR /&gt;&lt;BR /&gt;$ mpif77 -g example1.f -L$MKL_LIB -lmkl_blacs -lmkl_scalapack_core -lmkl_core -lmkl_intel -lmkl_blacs_openmpi -lmkl_intel_thread -liomp5&lt;BR /&gt;$ mpirun -n 2 a.out&lt;BR /&gt;forrtl: severe (174): SIGSEGV, segmentation fault occurred&lt;BR /&gt;Image PC Routine Line Source &lt;BR /&gt;libmpi.so.0 B7A76097 Unknown Unknown Unknown&lt;BR /&gt;a.out 080559E0 Unknown Unknown Unknown&lt;BR /&gt;a.out 08055991 Unknown Unknown Unknown&lt;BR /&gt;libc.so.6 B75C0A4C Unknown Unknown Unknown&lt;BR /&gt;a.out 080558A1 Unknown Unknown Unknown&lt;BR /&gt;forrtl: severe (174): SIGSEGV, segmentation fault occurred&lt;BR /&gt;Image PC Routine Line Source &lt;BR /&gt;libmpi.so.0 B7B00097 Unknown Unknown Unknown&lt;BR /&gt;a.out 080559E0 Unknown Unknown Unknown&lt;BR /&gt;a.out 08055991 Unknown Unknown Unknown&lt;BR /&gt;libc.so.6 B764AA4C Unknown Unknown Unknown&lt;BR /&gt;a.out 080558A1 Unknown Unknown Unknown&lt;BR /&gt;--------------------------------------------------------------------------&lt;BR /&gt;mpirun has exited due to process rank 0 with PID 21960 on&lt;BR /&gt;node pc7229 exiting without calling "finalize". This may&lt;BR /&gt;have caused other processes in the application to be&lt;BR /&gt;terminated by signals sent by mpirun (as reported here).&lt;BR /&gt;--------------------------------------------------------------------------&lt;BR /&gt;&lt;BR /&gt;Also with gfortran:&lt;BR /&gt;&lt;BR /&gt;$ mpif77 -g example1.f -L$MKL_LIB -lmkl_blacs -lmkl_scalapack_core -lmkl_core -lmkl_gf -lmkl_blacs_openmpi -lmkl_gnu_thread -liomp5&lt;BR /&gt;$ mpirun -n 2 a.out&lt;BR /&gt;[pc7229:21994] *** Process received signal ***&lt;BR /&gt;[pc7229:21995] *** Process received signal ***&lt;BR /&gt;[pc7229:21994] Signal: Segmentation fault (11)&lt;BR /&gt;[pc7229:21994] Signal code: Address not mapped (1)&lt;BR /&gt;[pc7229:21994] Failing at address: 0xcf&lt;BR /&gt;[pc7229:21994] *** End of error message ***&lt;BR /&gt;--------------------------------------------------------------------------&lt;BR /&gt;mpirun noticed that process rank 0 with PID 21994 on node pc7229 exited on signal 11 (Segmentation fault).&lt;BR /&gt;--------------------------------------------------------------------------&lt;BR /&gt;&lt;BR /&gt;I'm using ifort 10.0.026, gfortran 4.4.2, openmpi 1.3.3, Intel MKL 10.0.5.025.&lt;BR /&gt;Where can be the problem?&lt;BR /&gt;</description>
      <pubDate>Sat, 28 Nov 2009 08:02:22 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/MKL-scalapack-and-example1-f/m-p/874712#M8804</guid>
      <dc:creator>semyon</dc:creator>
      <dc:date>2009-11-28T08:02:22Z</dc:date>
    </item>
    <item>
      <title>Re: MKL scalapack and example1.f</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/MKL-scalapack-and-example1-f/m-p/874713#M8805</link>
      <description>&lt;DIV style="margin:0px;"&gt;&lt;/DIV&gt;
You haven't told us anything about your results from basic investigation. What do you see when you run with a debugger? Is it stack overflow, either main stack or thread stack? What happens with OMP_NUM_THREADS=1 or with mpirun -np 1 ?&lt;BR /&gt;Attempting to run in openmp/mpi hybrid mode with 32-bit builds and an obsolete ifort may be more trouble than most people wish to undertake. Does openmpi have any facility for that, other than running 1 process per node? libiomp5 would likely try to take all logical processors on the node, unless you pass a distinct KMP_AFFINITY to each process.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Sat, 28 Nov 2009 09:22:47 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/MKL-scalapack-and-example1-f/m-p/874713#M8805</guid>
      <dc:creator>TimP</dc:creator>
      <dc:date>2009-11-28T09:22:47Z</dc:date>
    </item>
    <item>
      <title>Re: MKL scalapack and example1.f</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/MKL-scalapack-and-example1-f/m-p/874714#M8806</link>
      <description>&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/367365"&gt;tim18&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; You haven't told us anything about your results from basic investigation. What do you see when you run with a debugger? Is it stack overflow, either main stack or thread stack? What happens with OMP_NUM_THREADS=1 or with mpirun -np 1 ?&lt;BR /&gt;Attempting to run in openmp/mpi hybrid mode with 32-bit builds and an obsolete ifort may be more trouble than most people wish to undertake. Does openmpi have any facility for that, other than running 1 process per node? libiomp5 would likely try to take all logical processors on the node, unless you pass a distinct KMP_AFFINITY to each process.&lt;BR /&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;BR /&gt;Usually I write/test my programs on 1 processor computer (with 1 core) and then push them to multicore/multiprocessor systems. So previous examples were run on my 1 processor computer.&lt;BR /&gt;If I use debugger:&lt;BR /&gt;&lt;BR /&gt;$ cat gdb_comm&lt;BR /&gt;run&lt;BR /&gt;backtrace&lt;BR /&gt;$ mpirun -n 2 gdb -x gdb_comm a.out&lt;BR /&gt;GNU gdb 6.8&lt;BR /&gt;Copyright (C) 2008 Free Software Foundation, Inc.&lt;BR /&gt;License GPLv3+: GNU GPL version 3 or later &lt;&gt;&lt;BR /&gt;This is free software: you are free to change and redistribute it.&lt;BR /&gt;There is NO WARRANTY, to the extent permitted by law. Type "show copying"&lt;BR /&gt;and "show warranty" for details.&lt;BR /&gt;This GDB was configured as "i486-pc-linux-gnu"...&lt;BR /&gt;GNU gdb 6.8&lt;BR /&gt;Copyright (C) 2008 Free Software Foundation, Inc.&lt;BR /&gt;License GPLv3+: GNU GPL version 3 or later &lt;&gt;&lt;BR /&gt;This is free software: you are free to change and redistribute it.&lt;BR /&gt;There is NO WARRANTY, to the extent permitted by law. Type "show copying"&lt;BR /&gt;and "show warranty" for details.&lt;BR /&gt;This GDB was configured as "i486-pc-linux-gnu"...&lt;BR /&gt;[Thread debugging using libthread_db enabled]&lt;BR /&gt;[Thread debugging using libthread_db enabled]&lt;BR /&gt;[New Thread 0xb78496c0 (LWP 22625)]&lt;BR /&gt;[New Thread 0xb784d6c0 (LWP 22624)]&lt;BR /&gt;&lt;BR /&gt;Program received signal SIGSEGV, Segmentation fault.&lt;BR /&gt;[Switching to Thread 0xb784d6c0 (LWP 22624)]&lt;BR /&gt;0xb7bdb097 in PMPI_Comm_size () from /usr/lib/libmpi.so.0&lt;BR /&gt;#0 0xb7bdb097 in PMPI_Comm_size () from /usr/lib/libmpi.so.0&lt;BR /&gt;#1 0xb7b95044 in ?? () from /usr/lib/libmpi.so.0&lt;BR /&gt;#2 0xbfd6c014 in ?? ()&lt;BR /&gt;#3 0xb7fe2ca0 in ?? () from /lib/ld-linux.so.2&lt;BR /&gt;#4 0xbfd6bb78 in ?? ()&lt;BR /&gt;#5 0xbfd6bb88 in ?? ()&lt;BR /&gt;#6 0xb7fd9c10 in ?? () from /lib/ld-linux.so.2&lt;BR /&gt;&lt;BR /&gt;#7 0x08050d1e in blacs_pinfo__ ()&lt;BR /&gt;Program received signal SIGSEGV, Segmentation fault.&lt;BR /&gt;[Switching to Thread 0xb78496c0 (LWP 22625)]&lt;BR /&gt;0xb7bd7097 in PMPI_Comm_size () from /usr/lib/libmpi.so.0&lt;BR /&gt;#8 0x080a6180 in npcol.1520 ()&lt;BR /&gt;#0 0xb7bd7097 in PMPI_Comm_size () from /usr/lib/libmpi.so.0&lt;BR /&gt;#1 0xb7b91044 in ?? () from /usr/lib/libmpi.so.0&lt;BR /&gt;#9 0x08d4ce08 in ?? ()&lt;BR /&gt;#2 0xbfe596b4 in ?? ()&lt;BR /&gt;#10 0xbfd6bb54 in ?? ()&lt;BR /&gt;#3 0xb7fdeca0 in ?? () from /lib/ld-linux.so.2&lt;BR /&gt;#11 0xbfd6bb78 in ?? ()&lt;BR /&gt;#4 0xbfe59218 in ?? ()&lt;BR /&gt;---Type &lt;RETURN&gt; to continue, or q &lt;RETURN&gt; to quit---#5 0xbfe59228 in ?? ()&lt;BR /&gt;#6 0xb7fd5c10 in ?? () from /lib/ld-linux.so.2&lt;BR /&gt;#7 0x08050d1e in blacs_pinfo__ ()&lt;BR /&gt;#8 0x080a6180 in npcol.1520 ()&lt;BR /&gt;#9 0x09434e10 in ?? ()&lt;BR /&gt;#10 0xbfe591f4 in ?? ()&lt;BR /&gt;#11 0xbfe59218 in ?? ()&lt;BR /&gt;---Type &lt;RETURN&gt; to continue, or q &lt;RETURN&gt; to quit---#12 0x00000004 in ?? ()&lt;BR /&gt;#13 0x00000000 in ?? ()&lt;BR /&gt;(gdb) quit&lt;BR /&gt;The program is running. Exit anyway? (y or n) [answered Y; input not from terminal]&lt;BR /&gt;--------------------------------------------------------------------------&lt;BR /&gt;mpirun has exited due to process rank 1 with PID 22623 on&lt;BR /&gt;node pc7229 exiting without calling "finalize". This may&lt;BR /&gt;have caused other processes in the application to be&lt;BR /&gt;terminated by signals sent by mpirun (as reported here).&lt;BR /&gt;--------------------------------------------------------------------------&lt;BR /&gt;&lt;BR /&gt;Running with '-n 1' gives the same error in PMPI_Comm_size ().&lt;BR /&gt;&lt;BR /&gt;I also tried to run the program on 2-core computer (here gfortran 4.4.1, mkl 11.1.059 were used). It leads to another error:&lt;BR /&gt;&lt;BR /&gt;semyon@kepler ~/scalapack $ mpif77 -g example1.f -L$MKL_LIB -lmkl_blacs -lmkl_scalapack_core -lmkl_core -lmkl_gf -lmkl_blacs_openmpi -lmkl_gnu_thread -liomp5&lt;BR /&gt;semyon@kepler ~/scalapack $ mpirun -n 2 a.out&lt;BR /&gt;[kepler:08163] MPI_ABORT invoked on rank 0 in communicator MPI_COMM_WORLD with errorcode 1&lt;BR /&gt;[kepler:08164] MPI_ABORT invoked on rank 1 in communicator MPI_COMM_WORLD with errorcode 1&lt;BR /&gt;semyon@kepler ~/scalapack $ mpirun -n 1 a.out&lt;BR /&gt;[kepler:08807] MPI_ABORT invoked on rank 0 in communicator MPI_COMM_WORLD with errorcode 1&lt;BR /&gt;&lt;BR /&gt;This error occurs in CALL BLACS_GRIDINIT( ICTXT, 'Row-major', NPROW, NPCOL )&lt;BR /&gt;&lt;BR /&gt;&lt;/RETURN&gt;&lt;/RETURN&gt;&lt;/RETURN&gt;&lt;/RETURN&gt;&lt;/&gt;&lt;/&gt;</description>
      <pubDate>Sat, 28 Nov 2009 11:36:12 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/MKL-scalapack-and-example1-f/m-p/874714#M8806</guid>
      <dc:creator>semyon</dc:creator>
      <dc:date>2009-11-28T11:36:12Z</dc:date>
    </item>
    <item>
      <title>Re: MKL scalapack and example1.f</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/MKL-scalapack-and-example1-f/m-p/874715#M8807</link>
      <description>&lt;DIV style="margin: 0px; height: auto;"&gt;&lt;/DIV&gt;
The example supposes that you use at least a 2x3 grid (check the npcol and nprow variables). Try&lt;BR /&gt;&lt;BR /&gt;mpirun -np 6 ./example&lt;BR /&gt;&lt;BR /&gt;and sees if works.&lt;BR /&gt;</description>
      <pubDate>Sat, 28 Nov 2009 13:29:22 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/MKL-scalapack-and-example1-f/m-p/874715#M8807</guid>
      <dc:creator>mfactor</dc:creator>
      <dc:date>2009-11-28T13:29:22Z</dc:date>
    </item>
    <item>
      <title>Re: MKL scalapack and example1.f</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/MKL-scalapack-and-example1-f/m-p/874716#M8808</link>
      <description>&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/447556"&gt;mfactor&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; The example supposes that you use at least a 2x3 grid (check the npcol and nprow variables). Try&lt;BR /&gt;&lt;BR /&gt;mpirun -np 6 ./example&lt;BR /&gt;&lt;BR /&gt;and sees if works.&lt;BR /&gt;&lt;/EM&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;BR /&gt;Yes it's really so! Thanks.&lt;BR /&gt;It works on our 2-core computer. But running on 1-core computer still fails with segfault (but maybe its a problem of interaction of MKL with old hardware).&lt;BR /&gt;</description>
      <pubDate>Sat, 28 Nov 2009 17:56:16 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/MKL-scalapack-and-example1-f/m-p/874716#M8808</guid>
      <dc:creator>semyon</dc:creator>
      <dc:date>2009-11-28T17:56:16Z</dc:date>
    </item>
  </channel>
</rss>

