<?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 yes sure that's possible. The in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Pardiso-memory-problem-with-Visual-Fortran/m-p/1128421#M25447</link>
    <description>&lt;P&gt;yes sure that's possible. The fastest way - to check mkl_version.h file or you may add into your code mkl_get_version routine. the code may look like as follow&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="background-color: rgb(245, 245, 245); color: rgb(51, 51, 51); font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace; font-size: 13.3333px;"&gt;#include &amp;lt;stdio.h&amp;gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;

&lt;PRE style="background-color: rgb(245, 245, 245); font-size: 13.3333px; font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace; line-height: 14.6667px; margin-bottom: 10px; margin-top: 0px; color: rgb(51, 51, 51);"&gt;#include "mkl.h"

int main(void) 
{
&amp;nbsp;&amp;nbsp;int len=198;
&amp;nbsp;&amp;nbsp;char buf[198];
&amp;nbsp;&amp;nbsp;mkl_get_version_string(buf, len);
&amp;nbsp;&amp;nbsp;printf("%s\n",buf);
&amp;nbsp;&amp;nbsp;printf("\n");
&amp;nbsp;&amp;nbsp;return 0; 
}&lt;/PRE&gt;</description>
    <pubDate>Wed, 23 May 2018 16:35:05 GMT</pubDate>
    <dc:creator>Gennady_F_Intel</dc:creator>
    <dc:date>2018-05-23T16:35:05Z</dc:date>
    <item>
      <title>Pardiso memory problem with Visual Fortran</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Pardiso-memory-problem-with-Visual-Fortran/m-p/1128416#M25442</link>
      <description>&lt;P&gt;&lt;SPAN style="font-size: 1em;"&gt;I use mkl with&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-size: 12px;"&gt;Visual Fortran Compiler XE 14.0.0.103.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 12px;"&gt;I employ the pardiso function for a program that involves solution of a system of linear equations: &lt;A&gt;{x} = {b}, where &lt;/A&gt;&lt;A&gt;, {b} are given and we want to find vector {x}. My code has to solve this system of equations repeatedly (for many iterations), for different values of &lt;/A&gt;&lt;A&gt;, {b}.&amp;nbsp; The values of &lt;/A&gt;&lt;A&gt;, {b} at each iteration depends on the value of {x} from the previous iteration, so the algorithm is something like this:&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;

&lt;P style="word-wrap: break-word; font-size: 12px;"&gt;Initialize {x}&lt;/P&gt;

&lt;P style="word-wrap: break-word; font-size: 12px;"&gt;do i = 1,Niter&lt;/P&gt;

&lt;P style="word-wrap: break-word; font-size: 12px;"&gt;[Find &lt;A&gt;, {b}, given {x}]&lt;/A&gt;&lt;/P&gt;

&lt;P style="word-wrap: break-word; font-size: 12px;"&gt;[Solve &lt;A&gt;{x} = {b} and find updated {x}]&lt;/A&gt;&lt;/P&gt;

&lt;P style="word-wrap: break-word; font-size: 12px;"&gt;end do !i&lt;/P&gt;

&lt;P style="word-wrap: break-word; font-size: 12px;"&gt;My code has encountered a SERIOUS problem with memory management. Specifically, I see a continuous increase in the amount of memory used, until my computer runs out of memory and the program aborts. I do not have any dynamic memory allocation in my code (I do not use pointers), so I believe that the problem is due to mkl.&amp;nbsp;&lt;/P&gt;

&lt;P style="word-wrap: break-word; font-size: 12px;"&gt;I tried to include the line:&lt;/P&gt;

&lt;P style="word-wrap: break-word; font-size: 12px;"&gt;call mkl_free_buffers()&lt;/P&gt;

&lt;P style="word-wrap: break-word; font-size: 12px;"&gt;but this did not help in any way. I found some posts in this forum with similar comments, but I did not find anything helpful. Any help on this issue would be greatly appreciated!!&lt;/P&gt;</description>
      <pubDate>Tue, 22 May 2018 23:15:56 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Pardiso-memory-problem-with-Visual-Fortran/m-p/1128416#M25442</guid>
      <dc:creator>Ioannis_K_</dc:creator>
      <dc:date>2018-05-22T23:15:56Z</dc:date>
    </item>
    <item>
      <title>yes, we had similar problems</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Pardiso-memory-problem-with-Visual-Fortran/m-p/1128417#M25443</link>
      <description>&lt;P&gt;yes, we had similar problems with those versions. I recommend to try one of the latest versions of MKL ( 2018 ) and let us know if the problem is still exists on your side.&lt;/P&gt;</description>
      <pubDate>Wed, 23 May 2018 02:10:46 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Pardiso-memory-problem-with-Visual-Fortran/m-p/1128417#M25443</guid>
      <dc:creator>Gennady_F_Intel</dc:creator>
      <dc:date>2018-05-23T02:10:46Z</dc:date>
    </item>
    <item>
      <title>Thank you Gennady. I had a</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Pardiso-memory-problem-with-Visual-Fortran/m-p/1128418#M25444</link>
      <description>&lt;P&gt;Thank you Gennady. I had a follow-up question: can I download a newer version of mkl and install it on my computer, so that I replace the older version that I am currently using, or do I need to purchase a newer version of Visual Fortran? If I can download a new version of mkl, can you please briefly explain where I can find it and how to install it? For example, is special care required to manually replace existing lib files with newer versions?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 23 May 2018 03:30:50 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Pardiso-memory-problem-with-Visual-Fortran/m-p/1128418#M25444</guid>
      <dc:creator>Ioannis_K_</dc:creator>
      <dc:date>2018-05-23T03:30:50Z</dc:date>
    </item>
    <item>
      <title>You may take the latest</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Pardiso-memory-problem-with-Visual-Fortran/m-p/1128419#M25445</link>
      <description>&lt;P&gt;You may take the latest version of mkl for evaluation. Here are the links to pages show how to&amp;nbsp;&lt;SPAN style="font-size: 1em;"&gt;download:&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://software.intel.com/en-us/mkl&amp;nbsp;" target="_blank"&gt;https://software.intel.com/en-us/mkl&amp;nbsp;&lt;/A&gt;; &amp;nbsp;and to&amp;nbsp;&lt;SPAN style="font-size: 1em;"&gt;install:&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://software.intel.com/en-us/articles/intel-math-kernel-library-intel-mkl-2018-install-guide" target="_blank"&gt;https://software.intel.com/en-us/articles/intel-math-kernel-library-intel-mkl-2018-install-guide&lt;/A&gt;.&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 23 May 2018 06:14:55 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Pardiso-memory-problem-with-Visual-Fortran/m-p/1128419#M25445</guid>
      <dc:creator>Gennady_F_Intel</dc:creator>
      <dc:date>2018-05-23T06:14:55Z</dc:date>
    </item>
    <item>
      <title>Gennady,</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Pardiso-memory-problem-with-Visual-Fortran/m-p/1128420#M25446</link>
      <description>&lt;P&gt;Gennady,&lt;/P&gt;

&lt;P&gt;I installed a trial version of the latest Intel Parallel Studio, but the problem still persists.&amp;nbsp;Is there a way for me to check which version of mkl I am using?&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 23 May 2018 13:56:51 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Pardiso-memory-problem-with-Visual-Fortran/m-p/1128420#M25446</guid>
      <dc:creator>Ioannis_K_</dc:creator>
      <dc:date>2018-05-23T13:56:51Z</dc:date>
    </item>
    <item>
      <title>yes sure that's possible. The</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Pardiso-memory-problem-with-Visual-Fortran/m-p/1128421#M25447</link>
      <description>&lt;P&gt;yes sure that's possible. The fastest way - to check mkl_version.h file or you may add into your code mkl_get_version routine. the code may look like as follow&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="background-color: rgb(245, 245, 245); color: rgb(51, 51, 51); font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace; font-size: 13.3333px;"&gt;#include &amp;lt;stdio.h&amp;gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;

&lt;PRE style="background-color: rgb(245, 245, 245); font-size: 13.3333px; font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace; line-height: 14.6667px; margin-bottom: 10px; margin-top: 0px; color: rgb(51, 51, 51);"&gt;#include "mkl.h"

int main(void) 
{
&amp;nbsp;&amp;nbsp;int len=198;
&amp;nbsp;&amp;nbsp;char buf[198];
&amp;nbsp;&amp;nbsp;mkl_get_version_string(buf, len);
&amp;nbsp;&amp;nbsp;printf("%s\n",buf);
&amp;nbsp;&amp;nbsp;printf("\n");
&amp;nbsp;&amp;nbsp;return 0; 
}&lt;/PRE&gt;</description>
      <pubDate>Wed, 23 May 2018 16:35:05 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Pardiso-memory-problem-with-Visual-Fortran/m-p/1128421#M25447</guid>
      <dc:creator>Gennady_F_Intel</dc:creator>
      <dc:date>2018-05-23T16:35:05Z</dc:date>
    </item>
    <item>
      <title>OK, thank you. I checked and</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Pardiso-memory-problem-with-Visual-Fortran/m-p/1128422#M25448</link>
      <description>&lt;P&gt;OK, thank you. I checked and my mkl version is indeed the 2018 one:&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 13.008px;"&gt;Intel(R) Math Kernel Library Version 2018.0.2 Product Build 20180127 for Intel(R) 64 architecture applications&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 1em;"&gt;What could I do to try and resolve the issue? Is there any alternative for parallel solution of systems of equations (direct or iterative), which will circumvent the need for pardiso and may prevent the occurrence of the specific problem?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 23 May 2018 17:04:22 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Pardiso-memory-problem-with-Visual-Fortran/m-p/1128422#M25448</guid>
      <dc:creator>Ioannis_K_</dc:creator>
      <dc:date>2018-05-23T17:04:22Z</dc:date>
    </item>
    <item>
      <title>Gennady,</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Pardiso-memory-problem-with-Visual-Fortran/m-p/1128423#M25449</link>
      <description>&lt;P&gt;Gennady,&lt;/P&gt;

&lt;P&gt;I think I may have found an "ad hoc fix" to the problem: I am going to describe the process I am following, for solving a sparse problem where the coefficient array is described by 3 vectors, namely, &lt;EM&gt;Values&lt;/EM&gt;, &lt;EM&gt;rowIndex&lt;/EM&gt; and &lt;EM&gt;columns&lt;/EM&gt;, and my right-hand-side vector is &lt;EM&gt;bvec&lt;/EM&gt;.&lt;/P&gt;

&lt;P&gt;1) Create "copies of the input", that is: &lt;EM&gt;Values&lt;/EM&gt;2 = &lt;EM&gt;Values&lt;/EM&gt;, &lt;EM&gt;rowIndex&lt;/EM&gt;2 = &lt;EM&gt;rowIndex&lt;/EM&gt;, &lt;EM&gt;columns&lt;/EM&gt;2 = &lt;EM&gt;columns&lt;/EM&gt;, and &lt;EM&gt;bvec&lt;/EM&gt;2 = &lt;EM&gt;bvec&lt;/EM&gt;&lt;/P&gt;

&lt;P&gt;2) call pardiso passing the "copies" as input arguments.&lt;/P&gt;

&lt;P&gt;3) if pardiso has completed without error, then copy the solution vector to &lt;EM&gt;bvec&lt;/EM&gt;.&lt;/P&gt;

&lt;P&gt;4) Call pardiso again, this time using a value of parameter &lt;EM&gt;phase&lt;/EM&gt; = -1.&lt;/P&gt;

&lt;P&gt;Following these steps leads to a constant memory use in my program. Please note that I&amp;nbsp;&lt;EM&gt;HAD&lt;/EM&gt;&amp;nbsp;to define and use the "copies" of the input arguments. If I tried to follow the above process without step "1", then the program aborted with error (access violation).&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 23 May 2018 17:54:10 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Pardiso-memory-problem-with-Visual-Fortran/m-p/1128423#M25449</guid>
      <dc:creator>Ioannis_K_</dc:creator>
      <dc:date>2018-05-23T17:54:10Z</dc:date>
    </item>
  </channel>
</rss>

