<?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 PARDISO  Phases called in different routines,Mem leak? in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/PARDISO-Phases-called-in-different-routines-Mem-leak/m-p/1019501#M19657</link>
    <description>&lt;P&gt;Hi&lt;/P&gt;

&lt;P&gt;I am calling pardiso&amp;nbsp; with c/c++. for that I packed all phases of pardiso&amp;nbsp; in a library&amp;nbsp; , but splitted into different soubroutines using *pt and *iparm as&amp;nbsp; global variables within that file/library (see the pseudo code below)&lt;/P&gt;

&lt;P&gt;library.c:&lt;/P&gt;

&lt;PRE class="brush:cpp;"&gt;void *pt[64]
MKL_INT&amp;nbsp; iparm[64]

phase_init( ... ){
....
}

phase_11(a, ia, ja){
....
}

phase_22(a,ia,ja){
&amp;nbsp;&amp;nbsp; ....
}

phase_33(a, ia,ja, double* x, double* b){
...
}&lt;/PRE&gt;

&lt;P&gt;&lt;BR /&gt;
	&lt;BR /&gt;
	&amp;nbsp;&lt;/P&gt;

&lt;P&gt;After that with the client code call phase 33 passing x and b, as many times as I want (the problem is actually I can call&amp;nbsp;only one&amp;nbsp;RHS at once , since a RHS will be calculated with previous RHS's)&lt;/P&gt;

&lt;P&gt;The code is working well , but&amp;nbsp; memory is increasing uncrontrolled , I read that&amp;nbsp; one should not&amp;nbsp; modify pt after the first phase since a severe memory leak might occur, which is my case. But I am not modifiying pt , I am&amp;nbsp; just passing it from function to function as global, and&amp;nbsp;I dont see why pt have to be always local to the function that calls it.&lt;/P&gt;

&lt;P&gt;I am using mkl 11.2 with gcc linking static w/o multi-threa.&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 21 Jul 2015 08:37:14 GMT</pubDate>
    <dc:creator>Orlando_R_</dc:creator>
    <dc:date>2015-07-21T08:37:14Z</dc:date>
    <item>
      <title>PARDISO  Phases called in different routines,Mem leak?</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/PARDISO-Phases-called-in-different-routines-Mem-leak/m-p/1019501#M19657</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;

&lt;P&gt;I am calling pardiso&amp;nbsp; with c/c++. for that I packed all phases of pardiso&amp;nbsp; in a library&amp;nbsp; , but splitted into different soubroutines using *pt and *iparm as&amp;nbsp; global variables within that file/library (see the pseudo code below)&lt;/P&gt;

&lt;P&gt;library.c:&lt;/P&gt;

&lt;PRE class="brush:cpp;"&gt;void *pt[64]
MKL_INT&amp;nbsp; iparm[64]

phase_init( ... ){
....
}

phase_11(a, ia, ja){
....
}

phase_22(a,ia,ja){
&amp;nbsp;&amp;nbsp; ....
}

phase_33(a, ia,ja, double* x, double* b){
...
}&lt;/PRE&gt;

&lt;P&gt;&lt;BR /&gt;
	&lt;BR /&gt;
	&amp;nbsp;&lt;/P&gt;

&lt;P&gt;After that with the client code call phase 33 passing x and b, as many times as I want (the problem is actually I can call&amp;nbsp;only one&amp;nbsp;RHS at once , since a RHS will be calculated with previous RHS's)&lt;/P&gt;

&lt;P&gt;The code is working well , but&amp;nbsp; memory is increasing uncrontrolled , I read that&amp;nbsp; one should not&amp;nbsp; modify pt after the first phase since a severe memory leak might occur, which is my case. But I am not modifiying pt , I am&amp;nbsp; just passing it from function to function as global, and&amp;nbsp;I dont see why pt have to be always local to the function that calls it.&lt;/P&gt;

&lt;P&gt;I am using mkl 11.2 with gcc linking static w/o multi-threa.&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Jul 2015 08:37:14 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/PARDISO-Phases-called-in-different-routines-Mem-leak/m-p/1019501#M19657</guid>
      <dc:creator>Orlando_R_</dc:creator>
      <dc:date>2015-07-21T08:37:14Z</dc:date>
    </item>
    <item>
      <title>Hi,</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/PARDISO-Phases-called-in-different-routines-Mem-leak/m-p/1019502#M19658</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;Which update of MKL 11.2 you use? If not MKL 11.2.3 could you check to run your code with this update to verify that issue is fixed?&lt;/P&gt;

&lt;P&gt;Thanks,&lt;/P&gt;

&lt;P&gt;Alex&lt;/P&gt;</description>
      <pubDate>Tue, 21 Jul 2015 14:25:31 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/PARDISO-Phases-called-in-different-routines-Mem-leak/m-p/1019502#M19658</guid>
      <dc:creator>Alexander_K_Intel2</dc:creator>
      <dc:date>2015-07-21T14:25:31Z</dc:date>
    </item>
    <item>
      <title>Hi Alex,</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/PARDISO-Phases-called-in-different-routines-Mem-leak/m-p/1019503#M19659</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Jul 2015 14:48:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/PARDISO-Phases-called-in-different-routines-Mem-leak/m-p/1019503#M19659</guid>
      <dc:creator>Orlando_R_</dc:creator>
      <dc:date>2015-07-23T14:48:00Z</dc:date>
    </item>
    <item>
      <title>Hi</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/PARDISO-Phases-called-in-different-routines-Mem-leak/m-p/1019504#M19660</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;I found my mistake ,&amp;nbsp; thanks for your clarification though&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;Cheers&lt;/P&gt;</description>
      <pubDate>Mon, 27 Jul 2015 06:58:25 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/PARDISO-Phases-called-in-different-routines-Mem-leak/m-p/1019504#M19660</guid>
      <dc:creator>Orlando_R_</dc:creator>
      <dc:date>2015-07-27T06:58:25Z</dc:date>
    </item>
  </channel>
</rss>

