<?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 Ummm, I am new at coding in Intel® Moderncode for Parallel Architectures</title>
    <link>https://community.intel.com/t5/Intel-Moderncode-for-Parallel/cblacs-routines/m-p/903498#M4307</link>
    <description>&lt;P&gt;Ummm, I am new at coding using the NETLIB packages (I am training myself as a part of my doctoral research), and that leads me to ask: Shouldn't you also need to invoque &amp;nbsp;[cpp]Cblacs_exit(int);[/cpp] right before the code ends:&lt;/P&gt;
&lt;P&gt;[cpp]&lt;BR /&gt;&amp;nbsp; (...)&lt;BR /&gt;&amp;nbsp; /*! Finalize BLACS: */&lt;BR /&gt;&amp;nbsp; Cblacs_gridexit(context);&lt;BR /&gt;&amp;nbsp; Cblacs_exit(EXIT_SUCCESS);&lt;BR /&gt;&amp;nbsp; return EXIT_SUCCESS;&lt;BR /&gt;}&lt;BR /&gt;[/cpp]&lt;/P&gt;
&lt;P&gt;I am also new to this forum, so please excuse any style-related flaws.&lt;/P&gt;
&lt;P&gt;Thanks in advanced!&lt;/P&gt;</description>
    <pubDate>Thu, 21 Feb 2013 01:06:00 GMT</pubDate>
    <dc:creator>Eduardo_J__Sanchez_P</dc:creator>
    <dc:date>2013-02-21T01:06:00Z</dc:date>
    <item>
      <title>cblacs routines</title>
      <link>https://community.intel.com/t5/Intel-Moderncode-for-Parallel/cblacs-routines/m-p/903496#M4305</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I try to create a grid with Cblacs subroutines. I found an example from the net. A part of it like this:&lt;/P&gt;
&lt;P&gt;***********************************************************/&lt;BR /&gt;#include &lt;STDIO.H&gt;&lt;BR /&gt;#include &lt;MATH.H&gt;&lt;BR /&gt;#include &lt;MPI.H&gt;&lt;BR /&gt;#include &lt;MKL.H&gt;&lt;BR /&gt;#include &lt;MKL_SCALAPACK.H&gt;&lt;/MKL_SCALAPACK.H&gt;&lt;/MKL.H&gt;&lt;/MPI.H&gt;&lt;/MATH.H&gt;&lt;/STDIO.H&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;/** Header files for Blacs and Pblas are not available from Intel Mkl */&lt;BR /&gt;void Cblacs_pinfo(int*, int*);&lt;BR /&gt;void Cblacs_get(int, int, int*);&lt;BR /&gt;void Cblacs_gridinit(int*, char*, int, int);&lt;BR /&gt;void Cblacs_gridinfo(int, int*, int*, int*, int*);&lt;BR /&gt;void Cblacs_barrier(int , char*);&lt;BR /&gt;void Cblacs_gridexit(int);&lt;/P&gt;
&lt;P&gt;int main(int argc, char* argv[])&lt;BR /&gt;{&lt;BR /&gt;...&lt;/P&gt;
&lt;P&gt; /* Start MPI */&lt;/P&gt;
&lt;P&gt; MPI_Init(&amp;amp;argc, &amp;amp;argv);&lt;BR /&gt; MPI_Comm_size(MPI_COMM_WORLD, &amp;amp;nprocs);&lt;BR /&gt; MPI_Comm_rank(MPI_COMM_WORLD, &amp;amp;rank);&lt;/P&gt;
&lt;P&gt;Cblacs_pinfo(&amp;amp;rank,&amp;amp;nprocs);&lt;BR /&gt; if (rank==0 &amp;amp;&amp;amp; nprocs&amp;lt;4)&lt;BR /&gt; { printf("\\n Number of processors should be at least 4\\n");&lt;BR /&gt; return 0;&lt;BR /&gt; }&lt;BR /&gt; Cblacs_get(0,0,&amp;amp;ctxt);&lt;BR /&gt; Cblacs_gridinit(&amp;amp;ctxt,"Row-major",nprow,npcol);&lt;/P&gt;
&lt;P&gt; Cblacs_gridinfo(ctxt,&amp;amp;nprow,&amp;amp;npcol,&amp;amp;myrow,&amp;amp;mycol);&lt;/P&gt;
&lt;P&gt; Cblacs_gridexit(ctxt);&lt;BR /&gt; MPI_Finalize();&lt;/P&gt;
&lt;P&gt; return 0;&lt;BR /&gt;}&lt;/P&gt;
&lt;P&gt;I compiledthe codelike this:&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;mpiicc -o ben.exe ben_pblas.c -I/RS/progs/intel/mkl/10.1.1.019/include  -L/RS/progs/intel/mkl/10.1.1.019/lib/em64t -lmkl_scalapack_lp64 -lmkl_blacs_intelmpi_lp64 -lmkl_lapack -lmkl_intel_lp64 -lmkl_intel_thread -lmkl_lapack -lmkl_core -liomp5 -lpthread&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;I have no error while compiling, it creates .exe file. but when I run the.exe file it gives the error:&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;error while loading shared libraries: libmkl_scalapack_lp64.so: cannot open shared object file: No such file or directory&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;I couldn't achieve to use mkl library. if you help me,I will be very happy&lt;/P&gt;
&lt;P&gt;Regards&lt;/P&gt;</description>
      <pubDate>Tue, 02 Feb 2010 01:48:54 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Moderncode-for-Parallel/cblacs-routines/m-p/903496#M4305</guid>
      <dc:creator>oguren</dc:creator>
      <dc:date>2010-02-02T01:48:54Z</dc:date>
    </item>
    <item>
      <title>cblacs routines</title>
      <link>https://community.intel.com/t5/Intel-Moderncode-for-Parallel/cblacs-routines/m-p/903497#M4306</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=463464" class="basic" href="https://community.intel.com/en-us/profile/463464/"&gt;oguren&lt;/A&gt;&lt;/DIV&gt;
&lt;DIV style="border: 1px inset; padding: 5px; background-color: #e5e5e5; margin-left: 2px; margin-right: 2px;"&gt;&lt;I&gt;
&lt;P&gt;&lt;B&gt;error while loading shared libraries: libmkl_scalapack_lp64.so: cannot open shared object file: No &lt;BR /&gt;&lt;/B&gt;&lt;/P&gt;
&lt;/I&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;P&gt;&lt;/P&gt;
Apparently, you didn't set the LD_LIBRARY_PATH for your run time. This is among the tasks performed by sourcing the compiler environment script, if you are using the MKL distributed with the compiler.</description>
      <pubDate>Wed, 03 Feb 2010 02:20:10 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Moderncode-for-Parallel/cblacs-routines/m-p/903497#M4306</guid>
      <dc:creator>TimP</dc:creator>
      <dc:date>2010-02-03T02:20:10Z</dc:date>
    </item>
    <item>
      <title>Ummm, I am new at coding</title>
      <link>https://community.intel.com/t5/Intel-Moderncode-for-Parallel/cblacs-routines/m-p/903498#M4307</link>
      <description>&lt;P&gt;Ummm, I am new at coding using the NETLIB packages (I am training myself as a part of my doctoral research), and that leads me to ask: Shouldn't you also need to invoque &amp;nbsp;[cpp]Cblacs_exit(int);[/cpp] right before the code ends:&lt;/P&gt;
&lt;P&gt;[cpp]&lt;BR /&gt;&amp;nbsp; (...)&lt;BR /&gt;&amp;nbsp; /*! Finalize BLACS: */&lt;BR /&gt;&amp;nbsp; Cblacs_gridexit(context);&lt;BR /&gt;&amp;nbsp; Cblacs_exit(EXIT_SUCCESS);&lt;BR /&gt;&amp;nbsp; return EXIT_SUCCESS;&lt;BR /&gt;}&lt;BR /&gt;[/cpp]&lt;/P&gt;
&lt;P&gt;I am also new to this forum, so please excuse any style-related flaws.&lt;/P&gt;
&lt;P&gt;Thanks in advanced!&lt;/P&gt;</description>
      <pubDate>Thu, 21 Feb 2013 01:06:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Moderncode-for-Parallel/cblacs-routines/m-p/903498#M4307</guid>
      <dc:creator>Eduardo_J__Sanchez_P</dc:creator>
      <dc:date>2013-02-21T01:06:00Z</dc:date>
    </item>
  </channel>
</rss>

