<?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: Memory Management with MKL in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Memory-Management-with-MKL/m-p/847242#M6336</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/420834"&gt;nansal&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;SPAN&gt;Also, I have applied the ALLOCATABLE array as bellow:&lt;/SPAN&gt;&lt;EM&gt;
&lt;P class="MsoNormal" style="text-align: left; direction: ltr; unicode-bidi: embed;"&gt;&lt;SPAN&gt;ALLOCATABLE A(:,:)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="MsoNormal" style="text-align: left; direction: ltr; unicode-bidi: embed;"&gt;&lt;SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="MsoNormal" style="text-align: left; direction: ltr; unicode-bidi: embed;"&gt;&lt;SPAN&gt;ALLOCATE (A(23826,23826))&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="MsoNormal" style="text-align: left; direction: ltr; unicode-bidi: embed;"&gt;&lt;SPAN&gt;After running the program at the line of ALLOCATE statement, I had this message&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="MsoNormal" style="text-align: left; direction: ltr; unicode-bidi: embed;"&gt;&lt;EM&gt;&lt;SPAN&gt;Forrtl: severe (179): cannot allocate array-overflow on array size calculation&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;
&lt;BR /&gt;&lt;/EM&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
You need 64-bit integers to take advantage of 64-bit OS (23826_8, if you don't care about portability).  You should also set up your ALLOCATE to display the ERRMSG when it fails.&lt;BR /&gt;</description>
    <pubDate>Thu, 30 Apr 2009 17:56:14 GMT</pubDate>
    <dc:creator>TimP</dc:creator>
    <dc:date>2009-04-30T17:56:14Z</dc:date>
    <item>
      <title>Memory Management with MKL</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Memory-Management-with-MKL/m-p/847239#M6333</link>
      <description>&lt;P class="MsoNormal" style="text-align: left; direction: ltr; unicode-bidi: embed;"&gt;&lt;SPAN&gt;Hi there,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="MsoNormal" style="text-align: left; direction: ltr; unicode-bidi: embed;"&gt;&lt;SPAN&gt;I have a serious problem with memory management of MKL. And it is essential for me to overcome to this problem.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="MsoNormal" style="text-align: left; direction: ltr; unicode-bidi: embed;"&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="MsoNormal" style="text-align: left; direction: ltr; unicode-bidi: embed;"&gt;&lt;SPAN&gt;In my Fortran language program (in Linux), I have one matrix with dimension of A(TRINATOM,TRINATOM) (TRINATOM=23826); that after running of the program, I have this message:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="MsoNormal" style="text-align: left; direction: ltr; unicode-bidi: embed;"&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="MsoNormal" style="text-align: left; direction: ltr; unicode-bidi: embed;"&gt;&lt;EM&gt;&lt;SPAN&gt;Fortcom: ERROR: myprog.for, Line 17: A common block or variable may not exceed 2147483647 bytes.&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;
&lt;P class="MsoNormal" style="text-align: left; direction: ltr; unicode-bidi: embed;"&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="MsoNormal" style="text-align: left; direction: ltr; unicode-bidi: embed;"&gt;&lt;SPAN&gt;So I try to use memory management with MKL. First of all I introduced the matrix 'A' by POINTER instead of DIMENSION as bellow:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="MsoNormal" style="text-align: left; direction: ltr; unicode-bidi: embed;"&gt;&lt;SPAN&gt;POINTER (A_PTR, A(23826,23826))&lt;/SPAN&gt;&lt;/P&gt;
&lt;SPAN&gt;But after running, I have the same previous ERROR. &lt;/SPAN&gt;
&lt;P class="MsoNormal" style="text-align: left; direction: ltr; unicode-bidi: embed;"&gt;&lt;SPAN&gt;After that, I tried with:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="MsoNormal" style="text-align: left; direction: ltr; unicode-bidi: embed;"&gt;&lt;SPAN&gt;&lt;SPAN&gt; &lt;/SPAN&gt;POINTER A(:,:)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="MsoNormal" style="text-align: left; direction: ltr; unicode-bidi: embed;"&gt;&lt;SPAN&gt;&lt;SPAN&gt; &lt;/SPAN&gt;ALLOC_SIZE=4*2147483647&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="MsoNormal" style="text-align: left; direction: ltr; unicode-bidi: embed;"&gt;&lt;SPAN&gt;&lt;SPAN&gt; &lt;/SPAN&gt;A=MKL_MALLOC(ALLOC_SIZE,128)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="MsoNormal" style="text-align: left; direction: ltr; unicode-bidi: embed;"&gt;&lt;SPAN&gt; &lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;CALL dgetrf(NRED,NRED,A,TRINATOM,ipiv,info)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="MsoNormal" style="text-align: left; direction: ltr; unicode-bidi: embed;"&gt;&lt;SPAN&gt;&lt;SPAN&gt; &lt;/SPAN&gt;CALL MKL_FREEBUFFERS&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="MsoNormal" style="text-align: left; direction: ltr; unicode-bidi: embed;"&gt;&lt;SPAN&gt;&lt;SPAN&gt; &lt;/SPAN&gt;CALL dgetrs('N',NRED,1,A,TRINATOM,ipiv,FRED,NRED,info)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="MsoNormal" style="text-align: left; direction: ltr; unicode-bidi: embed;"&gt;&lt;SPAN&gt;&lt;SPAN&gt; &lt;/SPAN&gt;CALL MKL_FREEBUFFERS&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="MsoNormal" style="text-align: left; direction: ltr; unicode-bidi: embed;"&gt;&lt;SPAN&gt;&lt;SPAN&gt; &lt;/SPAN&gt;ALLOCATED_BYTES=MKL_MEMSTAT(ALLOCATED_BUFFERS)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="MsoNormal" style="text-align: left; direction: ltr; unicode-bidi: embed;"&gt;&lt;SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="MsoNormal" style="text-align: left; direction: ltr; unicode-bidi: embed;"&gt;&lt;SPAN&gt;But I have this message:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="MsoNormal" style="text-align: left; direction: ltr; unicode-bidi: embed;"&gt;&lt;EM&gt;&lt;SPAN&gt;Forrtl: Severe (408): fort (7): Attempt to use pointer A when it is not associated with a target. &lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;
&lt;P class="MsoNormal" style="text-align: left; direction: ltr; unicode-bidi: embed;"&gt;&lt;EM&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;
&lt;P class="MsoNormal" style="text-align: left; direction: ltr; unicode-bidi: embed;"&gt;&lt;SPAN&gt;I really appreciate your helps.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Apr 2009 22:18:36 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Memory-Management-with-MKL/m-p/847239#M6333</guid>
      <dc:creator>nansal</dc:creator>
      <dc:date>2009-04-29T22:18:36Z</dc:date>
    </item>
    <item>
      <title>Re: Memory Management with MKL</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Memory-Management-with-MKL/m-p/847240#M6334</link>
      <description>&lt;DIV style="margin: 0px; height: auto;"&gt;&lt;/DIV&gt;
OK, some opinions, as I haven't tried anything like this. You will need 64-bit linux and MKL to deal with this. There is an example&lt;INPUT type="button" value="Cancel" class="button" onclick="javascript:frm_topic_reply_cancel('/en-us/forums/showthread.php?t=65269');" /&gt;
&lt;DIV&gt;&lt;A href="http://www.intel.com/software/products/mkl/docs/WebHelp/support/spt_MemExample.html"&gt;http://www.intel.com/software/products/mkl/docs/WebHelp/support/spt_MemExample.html&lt;/A&gt;&lt;BR /&gt;about using MKL_MALLOC in Fortran, which would show you some of what you missed. The simplest way to go about it might be with an ALLOCATABLE array, not using MKL_MALLOC.&lt;/DIV&gt;</description>
      <pubDate>Wed, 29 Apr 2009 23:54:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Memory-Management-with-MKL/m-p/847240#M6334</guid>
      <dc:creator>TimP</dc:creator>
      <dc:date>2009-04-29T23:54:00Z</dc:date>
    </item>
    <item>
      <title>Re: Memory Management with MKL</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Memory-Management-with-MKL/m-p/847241#M6335</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; OK, some opinions, as I haven't tried anything like this.  You will need 64-bit linux and MKL to deal with this.  There is an example&lt;INPUT type="button" value="Cancel" class="button" onclick="javascript:frm_topic_reply_cancel('/en-us/forums/showthread.php?t=65269');" /&gt;
&lt;DIV&gt;&lt;A href="http://www.intel.com/software/products/mkl/docs/WebHelp/support/spt_MemExample.html"&gt;http://www.intel.com/software/products/mkl/docs/WebHelp/support/spt_MemExample.html&lt;/A&gt;&lt;BR /&gt;about using MKL_MALLOC in Fortran, which would show you some of what you missed.  The simplest way to go about it might be with an ALLOCATABLE array, not using MKL_MALLOC.&lt;/DIV&gt;
&lt;/EM&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;BR /&gt;
&lt;P class="MsoNormal" style="text-align: left; direction: ltr; unicode-bidi: embed;"&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="MsoNormal" style="text-align: left; direction: ltr; unicode-bidi: embed;"&gt;&lt;SPAN&gt;I really appreciate your attention, Tim.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="MsoNormal" style="text-align: left; direction: ltr; unicode-bidi: embed;"&gt;&lt;SPAN&gt;I have already checked my program with this example and think that I have not missed anything. &lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="MsoNormal" style="text-align: left; direction: ltr; unicode-bidi: embed;"&gt;&lt;SPAN&gt;Also, I have applied the ALLOCATABLE array as bellow:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="MsoNormal" style="text-align: left; direction: ltr; unicode-bidi: embed;"&gt;&lt;SPAN&gt;ALLOCATABLE A(:,:)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="MsoNormal" style="text-align: left; direction: ltr; unicode-bidi: embed;"&gt;&lt;SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="MsoNormal" style="text-align: left; direction: ltr; unicode-bidi: embed;"&gt;&lt;SPAN&gt;ALLOCATE (A(23826,23826))&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="MsoNormal" style="text-align: left; direction: ltr; unicode-bidi: embed;"&gt;&lt;SPAN&gt;After running the program at the line of ALLOCATE statement, I had this message&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="MsoNormal" style="text-align: left; direction: ltr; unicode-bidi: embed;"&gt;&lt;EM&gt;&lt;SPAN&gt;Forrtl: severe (179): cannot allocate array-overflow on array size calculation&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;
&lt;P class="MsoNormal" style="text-align: left; direction: ltr; unicode-bidi: embed;"&gt;&lt;SPAN&gt;Do you have any idea for this problem due to ALLOCATE statement?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="MsoNormal" style="text-align: left; direction: ltr; unicode-bidi: embed;"&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="MsoNormal" style="text-align: left; direction: ltr; unicode-bidi: embed;"&gt;&lt;SPAN&gt;Thank you again,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="MsoNormal" style="text-align: left; direction: ltr; unicode-bidi: embed;"&gt;&lt;SPAN&gt;And I am really looking forward to any help. &lt;SPAN&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;BR /&gt;</description>
      <pubDate>Thu, 30 Apr 2009 16:25:24 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Memory-Management-with-MKL/m-p/847241#M6335</guid>
      <dc:creator>nansal</dc:creator>
      <dc:date>2009-04-30T16:25:24Z</dc:date>
    </item>
    <item>
      <title>Re: Memory Management with MKL</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Memory-Management-with-MKL/m-p/847242#M6336</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/420834"&gt;nansal&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;SPAN&gt;Also, I have applied the ALLOCATABLE array as bellow:&lt;/SPAN&gt;&lt;EM&gt;
&lt;P class="MsoNormal" style="text-align: left; direction: ltr; unicode-bidi: embed;"&gt;&lt;SPAN&gt;ALLOCATABLE A(:,:)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="MsoNormal" style="text-align: left; direction: ltr; unicode-bidi: embed;"&gt;&lt;SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="MsoNormal" style="text-align: left; direction: ltr; unicode-bidi: embed;"&gt;&lt;SPAN&gt;ALLOCATE (A(23826,23826))&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="MsoNormal" style="text-align: left; direction: ltr; unicode-bidi: embed;"&gt;&lt;SPAN&gt;After running the program at the line of ALLOCATE statement, I had this message&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="MsoNormal" style="text-align: left; direction: ltr; unicode-bidi: embed;"&gt;&lt;EM&gt;&lt;SPAN&gt;Forrtl: severe (179): cannot allocate array-overflow on array size calculation&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;
&lt;BR /&gt;&lt;/EM&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
You need 64-bit integers to take advantage of 64-bit OS (23826_8, if you don't care about portability).  You should also set up your ALLOCATE to display the ERRMSG when it fails.&lt;BR /&gt;</description>
      <pubDate>Thu, 30 Apr 2009 17:56:14 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Memory-Management-with-MKL/m-p/847242#M6336</guid>
      <dc:creator>TimP</dc:creator>
      <dc:date>2009-04-30T17:56:14Z</dc:date>
    </item>
  </channel>
</rss>

