<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[Approximatrix Forums — Allocation would exceed memory limit PROBLEM]]></title>
		<link>http://forums.approximatrix.com/viewtopic.php?id=459</link>
		<atom:link href="http://forums.approximatrix.com/extern.php?action=feed&amp;tid=459&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Allocation would exceed memory limit PROBLEM.]]></description>
		<lastBuildDate>Fri, 08 May 2015 12:04:12 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Allocation would exceed memory limit PROBLEM]]></title>
			<link>http://forums.approximatrix.com/viewtopic.php?pid=2058#p2058</link>
			<description><![CDATA[<p>Good to hear that everything is working!</p>]]></description>
			<author><![CDATA[null@example.com (jeff)]]></author>
			<pubDate>Fri, 08 May 2015 12:04:12 +0000</pubDate>
			<guid>http://forums.approximatrix.com/viewtopic.php?pid=2058#p2058</guid>
		</item>
		<item>
			<title><![CDATA[Re: Allocation would exceed memory limit PROBLEM]]></title>
			<link>http://forums.approximatrix.com/viewtopic.php?pid=2054#p2054</link>
			<description><![CDATA[<p>It was a bug with the length of one vector. The program now runs fine with very large matrices. And its very fast.<br />Thanks!!!</p>]]></description>
			<author><![CDATA[null@example.com (Boris_MV)]]></author>
			<pubDate>Wed, 06 May 2015 21:30:36 +0000</pubDate>
			<guid>http://forums.approximatrix.com/viewtopic.php?pid=2054#p2054</guid>
		</item>
		<item>
			<title><![CDATA[Re: Allocation would exceed memory limit PROBLEM]]></title>
			<link>http://forums.approximatrix.com/viewtopic.php?pid=2049#p2049</link>
			<description><![CDATA[<p>I think I&#039;ll just run debugger.... for the first time.</p>]]></description>
			<author><![CDATA[null@example.com (Boris_MV)]]></author>
			<pubDate>Fri, 01 May 2015 19:22:50 +0000</pubDate>
			<guid>http://forums.approximatrix.com/viewtopic.php?pid=2049#p2049</guid>
		</item>
		<item>
			<title><![CDATA[Re: Allocation would exceed memory limit PROBLEM]]></title>
			<link>http://forums.approximatrix.com/viewtopic.php?pid=2048#p2048</link>
			<description><![CDATA[<p>The same thing happened. The program reported the same error during the setup of the matrix elements.</p>]]></description>
			<author><![CDATA[null@example.com (Boris_MV)]]></author>
			<pubDate>Fri, 01 May 2015 18:01:35 +0000</pubDate>
			<guid>http://forums.approximatrix.com/viewtopic.php?pid=2048#p2048</guid>
		</item>
		<item>
			<title><![CDATA[Re: Allocation would exceed memory limit PROBLEM]]></title>
			<link>http://forums.approximatrix.com/viewtopic.php?pid=2047#p2047</link>
			<description><![CDATA[<p>Jeff, </p><p>I&#039;ve tried :<br />ALLOCATE(Hamiltonian(18000:18000))<br />Hamiltonian= CMPLX(0.0, 0.0)</p><p>And the program successfully passes the line where I am enforcing all the elements to (complex) zero. It was very quick, just a minute or two.<br />Now, there is slow part where several complicated functions are setting up the actual values of &quot;Hamiltonian.&quot; This takes five hours or longer. This is the place where the program breaks down for large matrices.<br />Will keep you posted.</p>]]></description>
			<author><![CDATA[null@example.com (Boris_MV)]]></author>
			<pubDate>Fri, 01 May 2015 16:34:42 +0000</pubDate>
			<guid>http://forums.approximatrix.com/viewtopic.php?pid=2047#p2047</guid>
		</item>
		<item>
			<title><![CDATA[Re: Allocation would exceed memory limit PROBLEM]]></title>
			<link>http://forums.approximatrix.com/viewtopic.php?pid=2046#p2046</link>
			<description><![CDATA[<p>Thanks Jeff!&nbsp; I&#039;ll try that and will post results here. </p><p>At the end of each iteration (simply, it&#039;s one for-loop) I use DEALLOCATE explicitly for all ALLOCATABLE matrices/vectors.&nbsp; In this (test) case I was running just one iteration and the program breaks down after the big matrix is successfully allocated and during setup (calculation) of the matrix elements.&nbsp; The program never reached the part where LAPACK calculates eigenvalues of this big matrix. </p><p>In the meantime, here is some more error info that I got when running the program using command line.<br />==================================================<br />Program received signal SIGSEGV: Segmentation fault - invalid memory reference.<br />Backtrace for this error:<br />job aborted:<br />[ranks] message<br />[0] process exited without calling finalize<br />[1-31] terminated<br />---- error analysis ----<br />[0] on MSW10<br />target.exe ended prematurely and may have crashed. exit code 3.<br />---- error analysis ----<br />===================================================</p>]]></description>
			<author><![CDATA[null@example.com (Boris_MV)]]></author>
			<pubDate>Fri, 01 May 2015 16:19:31 +0000</pubDate>
			<guid>http://forums.approximatrix.com/viewtopic.php?pid=2046#p2046</guid>
		</item>
		<item>
			<title><![CDATA[Re: Allocation would exceed memory limit PROBLEM]]></title>
			<link>http://forums.approximatrix.com/viewtopic.php?pid=2045#p2045</link>
			<description><![CDATA[<p>Boris,</p><p>The flags:</p><div class="codebox"><pre><code>-mcmodel=medium</code></pre></div><p>should definitely provide enough allocation space on the heap.&nbsp; I would suggest that you try immediately initializing all memory associated with an array in an attempt to force the memory manager to access the entire block.&nbsp; Something simple like:</p><div class="codebox"><pre><code>ALLOCATE(bigdata(21000:21000))
bigdata = 0.0</code></pre></div><p>The above might help the situation.</p><p>Do you explicitly deallocate the arrays when you&#039;ve finished with them?</p>]]></description>
			<author><![CDATA[null@example.com (jeff)]]></author>
			<pubDate>Fri, 01 May 2015 12:11:18 +0000</pubDate>
			<guid>http://forums.approximatrix.com/viewtopic.php?pid=2045#p2045</guid>
		</item>
		<item>
			<title><![CDATA[Re: Allocation would exceed memory limit PROBLEM]]></title>
			<link>http://forums.approximatrix.com/viewtopic.php?pid=2044#p2044</link>
			<description><![CDATA[<p>Here is one interesting information.</p><p>- The ALLOCATION of the large (18k by 18k) matrix went well. <br />- However, during the SETUP (CALCULATION) of the matrix elements of the large matrix the execution stopped with the error message:<br />================================================= <br />Program received signal SIGSEGV: Segmentation fault - invalid memory reference.<br />Backtrace for this error:<br />=================================================<br />No other output info.</p>]]></description>
			<author><![CDATA[null@example.com (Boris_MV)]]></author>
			<pubDate>Thu, 30 Apr 2015 23:55:27 +0000</pubDate>
			<guid>http://forums.approximatrix.com/viewtopic.php?pid=2044#p2044</guid>
		</item>
		<item>
			<title><![CDATA[Re: Allocation would exceed memory limit PROBLEM]]></title>
			<link>http://forums.approximatrix.com/viewtopic.php?pid=2043#p2043</link>
			<description><![CDATA[<p>It didn&#039;t work with:<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; -mcmodel=large</p>]]></description>
			<author><![CDATA[null@example.com (Boris_MV)]]></author>
			<pubDate>Thu, 30 Apr 2015 23:13:20 +0000</pubDate>
			<guid>http://forums.approximatrix.com/viewtopic.php?pid=2043#p2043</guid>
		</item>
		<item>
			<title><![CDATA[Re: Allocation would exceed memory limit PROBLEM]]></title>
			<link>http://forums.approximatrix.com/viewtopic.php?pid=2042#p2042</link>
			<description><![CDATA[<p>I&#039;ll&nbsp; try -mcmodel=large.</p>]]></description>
			<author><![CDATA[null@example.com (Boris_MV)]]></author>
			<pubDate>Thu, 30 Apr 2015 20:58:23 +0000</pubDate>
			<guid>http://forums.approximatrix.com/viewtopic.php?pid=2042#p2042</guid>
		</item>
		<item>
			<title><![CDATA[Re: Allocation would exceed memory limit PROBLEM]]></title>
			<link>http://forums.approximatrix.com/viewtopic.php?pid=2041#p2041</link>
			<description><![CDATA[<p>Compiling my code as 64-bit project helped, and I was able to process matrices up to size 14,000 (2.92GB). </p><p>Using flags “-mcmodel=medium” in the two edit boxes (FORTRAN COMPILER and LINKER) didn’t help to go beyond 14,000 size (I nee to process matrices of around 22,0000 in size).</p><p>I still get the same error for matrices larger than 14,000. All the matrices I use vary in size over the iterations in a for-loop, so all of them are ALLOCATABLE. </p><p>If you have more advices, I would greatly appreciate. I’ll keep on looking for the problem and will post my findings here. Thanks once again!</p>]]></description>
			<author><![CDATA[null@example.com (Boris_MV)]]></author>
			<pubDate>Thu, 30 Apr 2015 19:43:59 +0000</pubDate>
			<guid>http://forums.approximatrix.com/viewtopic.php?pid=2041#p2041</guid>
		</item>
		<item>
			<title><![CDATA[Re: Allocation would exceed memory limit PROBLEM]]></title>
			<link>http://forums.approximatrix.com/viewtopic.php?pid=2034#p2034</link>
			<description><![CDATA[<p>Thank you both. Let me see what can I do with your advises and I&#039;ll report back how it went.<br />b</p>]]></description>
			<author><![CDATA[null@example.com (Boris_MV)]]></author>
			<pubDate>Mon, 27 Apr 2015 15:48:36 +0000</pubDate>
			<guid>http://forums.approximatrix.com/viewtopic.php?pid=2034#p2034</guid>
		</item>
		<item>
			<title><![CDATA[Re: Allocation would exceed memory limit PROBLEM]]></title>
			<link>http://forums.approximatrix.com/viewtopic.php?pid=2028#p2028</link>
			<description><![CDATA[<p>Boris,</p><p>There are two things to check when allocating such large amounts of RAM.&nbsp; First, make sure your project is configured as a 64-bit executable.&nbsp; A 32-bit executable probably won&#039;t be able to allocate a full 2GB, even on 64-bit Windows, due to Windows limits.</p><p>Second, under compiler flags under both &quot;Fortran&quot; and &quot;Linker,&quot; add the following flag:</p><div class="codebox"><pre><code>-mcmodel=medium</code></pre></div><p>The above flag allows large allocations in your code.&nbsp; It should allow for 2GB of static allocation and basically unlimited dynamic allocation.&nbsp; </p><p>Make sure, though, that you are using Fortran&#039;s <em>ALLOCATE</em> calls.&nbsp; The static 2GB limit is a hard limit that cannot be increased (at least in this version of our included compiler).</p>]]></description>
			<author><![CDATA[null@example.com (jeff)]]></author>
			<pubDate>Sun, 26 Apr 2015 15:36:16 +0000</pubDate>
			<guid>http://forums.approximatrix.com/viewtopic.php?pid=2028#p2028</guid>
		</item>
		<item>
			<title><![CDATA[Re: Allocation would exceed memory limit PROBLEM]]></title>
			<link>http://forums.approximatrix.com/viewtopic.php?pid=2026#p2026</link>
			<description><![CDATA[<p>My advice would be to avoid such large arrays if possible.</p><p>However, if you really need a 11000 X 11000 array you could try just creating it in static memory.</p><p>Something like,</p><p>DOUBLE PRECISION, SAVE, DIMENSION(11000,11000) :: A</p><p>or the old-fashioned F77 way</p><p>DOUBLE PRECISION A(11000,11000)<br />SAVE A</p>]]></description>
			<author><![CDATA[null@example.com (davidb)]]></author>
			<pubDate>Sat, 25 Apr 2015 08:19:14 +0000</pubDate>
			<guid>http://forums.approximatrix.com/viewtopic.php?pid=2026#p2026</guid>
		</item>
		<item>
			<title><![CDATA[Allocation would exceed memory limit PROBLEM]]></title>
			<link>http://forums.approximatrix.com/viewtopic.php?pid=2025#p2025</link>
			<description><![CDATA[<p>Hi there,</p><p>I get following error message:</p><p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Operating system error: Not enough space<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Allocation would exceed memory limit</p><p>when I want to allocate in RAM complex double precision matrix size of 11,000 or larger. Such matrix takes approximately 2*8*(11000)^2/1024^3 = 1.8GB of RAM and I have 98 GB RAM available. In the performance monitor I can see that I am not taking&nbsp; more than 6GB our of the 98GB RAM at any time. </p><p>Please advise. <br />Thanks.</p>]]></description>
			<author><![CDATA[null@example.com (Boris_MV)]]></author>
			<pubDate>Sat, 25 Apr 2015 00:10:55 +0000</pubDate>
			<guid>http://forums.approximatrix.com/viewtopic.php?pid=2025#p2025</guid>
		</item>
	</channel>
</rss>
