<?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 Jill,  in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/The-PZGESV-subroutine/m-p/1032152#M20198</link>
    <description>&lt;P&gt;Hi Ines&amp;nbsp;&lt;/P&gt;

&lt;P&gt;Could you please provide the test code completely so we can try?&amp;nbsp;&lt;/P&gt;

&lt;P&gt;Best Regards&lt;/P&gt;

&lt;P&gt;Ying&lt;/P&gt;</description>
    <pubDate>Fri, 06 Jun 2014 02:09:00 GMT</pubDate>
    <dc:creator>Ying_H_Intel</dc:creator>
    <dc:date>2014-06-06T02:09:00Z</dc:date>
    <item>
      <title>The PZGESV subroutine</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/The-PZGESV-subroutine/m-p/1032151#M20197</link>
      <description>&lt;P&gt;&lt;STRONG&gt;&lt;SPAN style="color: rgb(0, 0, 0); font-family: 'Lucida Grande', 'Trebuchet MS', Verdana, Helvetica, Arial, sans-serif; line-height: 18.200000762939453px; background-color: rgb(225, 235, 242);"&gt;Hello everybody,&lt;/SPAN&gt;&lt;BR style="margin: 0px; padding: 0px; color: rgb(0, 0, 0); font-family: 'Lucida Grande', 'Trebuchet MS', Verdana, Helvetica, Arial, sans-serif; line-height: 18.200000762939453px; background-color: rgb(225, 235, 242);" /&gt;
	&lt;SPAN style="color: rgb(0, 0, 0); font-family: 'Lucida Grande', 'Trebuchet MS', Verdana, Helvetica, Arial, sans-serif; line-height: 18.200000762939453px; background-color: rgb(225, 235, 242);"&gt;Please I need your help to understand the scalapck subroutine&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="posthilit" style="margin: 0px; padding: 0px 2px 1px; background-color: rgb(243, 191, 204); color: rgb(188, 42, 77); font-family: 'Lucida Grande', 'Trebuchet MS', Verdana, Helvetica, Arial, sans-serif; line-height: 18.200000762939453px;"&gt;PZGESV&lt;/SPAN&gt;&lt;SPAN style="color: rgb(0, 0, 0); font-family: 'Lucida Grande', 'Trebuchet MS', Verdana, Helvetica, Arial, sans-serif; line-height: 18.200000762939453px; background-color: rgb(225, 235, 242);"&gt;.&amp;nbsp;&lt;/SPAN&gt;&lt;BR style="margin: 0px; padding: 0px; color: rgb(0, 0, 0); font-family: 'Lucida Grande', 'Trebuchet MS', Verdana, Helvetica, Arial, sans-serif; line-height: 18.200000762939453px; background-color: rgb(225, 235, 242);" /&gt;
	&lt;SPAN style="color: rgb(0, 0, 0); font-family: 'Lucida Grande', 'Trebuchet MS', Verdana, Helvetica, Arial, sans-serif; line-height: 18.200000762939453px; background-color: rgb(225, 235, 242);"&gt;I am trying to use this subroutine to solve a linear equation system A*X = B where A is a (N by N) matrix distributed as follow : &lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;&lt;SPAN style="color: rgb(0, 0, 0); font-family: 'Lucida Grande', 'Trebuchet MS', Verdana, Helvetica, Arial, sans-serif; line-height: 18.200000762939453px; background-color: rgb(225, 235, 242);"&gt;each process has a local matrix Al of size (Ml by N) and Ml isn't the same for the different processes but of course the sum of the different Ml is equal to N.&amp;nbsp;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;I tried this :&lt;/STRONG&gt;&lt;/P&gt;

&lt;PRE class="brush:fortran;"&gt;B_A = 4; NB_A = 4; MB_B = 4;
CALL DESCINIT(DESCA,K_total,K_total,MB_A,NB_A,IRSRC,ICSRC,ICTXT,K_proc,INFO)
CALL DESCINIT(DESCB,K_total,2*N_Emetteurs_Calcul,MB_B,2*N_Emetteurs_Calcul,IRSRC,ICSRC,ICTXT,K_proc,INFO)
&lt;/PRE&gt;

&lt;P&gt;&amp;nbsp;&lt;STRONG&gt;But since K_proc value is local (it depends on the process), I get an error of ILLEGAL VALUE and INFO = -9&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;Then I tried to put my matrices in a local matrix of size K_proc_max x K_total, I didn't get error and INFO = 0 but i had a totally wrong results :&lt;/STRONG&gt;&lt;/P&gt;

&lt;PRE class="brush:fortran;"&gt;MB_A = 4; NB_A = 4; MB_B = 4;
K_tot_proc_max = maxval(K_total_procs)
CALL DESCINIT(DESCA,K_total,K_total,MB_A,NB_A,IRSRC,ICSRC,ICTXT,K_tot_proc_max,INFO)
CALL DESCINIT(DESCB,K_total,2*N_Emetteurs_Calcul,MB_B,2*N_Emetteurs_Calcul,IRSRC,ICSRC,ICTXT,K_tot_proc_max,INFO)

Allocate(IPIV(K_tot_proc_max+MB_A));
IA=1;JA=1;IB=1;JB=1;
Allocate(Zreduite_proc_inter(K_tot_proc_max,K_total))

Do ii=1,K_total
    Zreduite_proc_inter(1:K_total_proc,ii) = Zreduite_proc(:,ii)
EndDo
Allocate(Vreduit_proc_inter(K_tot_proc_max,2*N_Emetteurs_Calcul))

Do ii=1,2*N_Emetteurs_Calcul
    Vreduit_proc_inter(1:K_total_proc,ii) = Vreduit_proc(:,ii) 
EndDo 

CALL PZGESV(K_total,2*N_Emetteurs_Calcul,Zreduite_proc_inter,IA,JA,DESCA,IPIV,Vreduit_proc_inter,IB,JB,DESCB,INFO)
&lt;/PRE&gt;

&lt;P&gt;&lt;STRONG&gt;&lt;FONT color="#000000" face="Lucida Grande, Trebuchet MS, Verdana, Helvetica, Arial, sans-serif"&gt;&lt;SPAN style="line-height: 18.200000762939453px; background-color: rgb(225, 235, 242);"&gt;I really don't know how to fix it. Can anybody help me please to put it right ?&amp;nbsp;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;SPAN style="color: rgb(0, 0, 0); font-family: 'Lucida Grande', 'Trebuchet MS', Verdana, Helvetica, Arial, sans-serif; line-height: 18.200000762939453px; background-color: rgb(225, 235, 242);"&gt;Thank you.&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jun 2014 14:00:18 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/The-PZGESV-subroutine/m-p/1032151#M20197</guid>
      <dc:creator>Ines_F_</dc:creator>
      <dc:date>2014-06-04T14:00:18Z</dc:date>
    </item>
    <item>
      <title>Hi Jill, </title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/The-PZGESV-subroutine/m-p/1032152#M20198</link>
      <description>&lt;P&gt;Hi Ines&amp;nbsp;&lt;/P&gt;

&lt;P&gt;Could you please provide the test code completely so we can try?&amp;nbsp;&lt;/P&gt;

&lt;P&gt;Best Regards&lt;/P&gt;

&lt;P&gt;Ying&lt;/P&gt;</description>
      <pubDate>Fri, 06 Jun 2014 02:09:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/The-PZGESV-subroutine/m-p/1032152#M20198</guid>
      <dc:creator>Ying_H_Intel</dc:creator>
      <dc:date>2014-06-06T02:09:00Z</dc:date>
    </item>
  </channel>
</rss>

