<?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: Unable to allocate sufficient memory in SAS/IML Software and Matrix Computations</title>
    <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Unable-to-allocate-sufficient-memory/m-p/214675#M2231</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Using the following options to make your available memory bigger.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PROC IML&amp;nbsp;&amp;nbsp; SYMSIZE=n1&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG&gt;WORKSIZE&lt;/STRONG&gt;=(n2)&amp;nbsp; ;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 14 May 2015 13:01:55 GMT</pubDate>
    <dc:creator>Ksharp</dc:creator>
    <dc:date>2015-05-14T13:01:55Z</dc:date>
    <item>
      <title>Unable to allocate sufficient memory</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Unable-to-allocate-sufficient-memory/m-p/214672#M2228</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Apparently SAS is not coping well with my very large matrix set-up here. Is there a way to do this computation more efficiently?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;B = t(X)*diag(w)*X;&lt;/P&gt;&lt;P&gt;ERROR: (execution) Unable to allocate sufficient memory. At least 2147483647 more bytes required.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; operation : DIAG at line 8841 column 14&lt;/P&gt;&lt;P&gt; operands&amp;nbsp; : w&lt;/P&gt;&lt;P&gt;w 365703 rows&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1 col&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (numeric)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Raphael&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 May 2015 06:31:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Unable-to-allocate-sufficient-memory/m-p/214672#M2228</guid>
      <dc:creator>R_Fraser</dc:creator>
      <dc:date>2015-05-14T06:31:18Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to allocate sufficient memory</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Unable-to-allocate-sufficient-memory/m-p/214673#M2229</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The first challenge is understanding your computing environment. What machine type are you running on processors/memory OS version SAS version?&lt;/P&gt;&lt;P&gt;As SAS is having a lot of memory options, how are these being set? That are you environment limitation as set by you..&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is one row w: of 370k numeric (each is occupying 8 bytes) that is 2Mb depending of the size of X you are needing that size being multiplied. &lt;BR /&gt;How big is your resulting request?&amp;nbsp;&amp;nbsp;&amp;nbsp; The diag function will create a diagonal matric needing space for 2Mb*2Mb&amp;nbsp; = 4Tb. Well you do not need to wait another 7! days for that.&amp;nbsp; &lt;BR /&gt;&lt;A href="http://blogs.sas.com/content/iml/2014/04/28/how-much-ram-do-i-need-to-store-that-matrix.html" title="http://blogs.sas.com/content/iml/2014/04/28/how-much-ram-do-i-need-to-store-that-matrix.html"&gt;http://blogs.sas.com/content/iml/2014/04/28/how-much-ram-do-i-need-to-store-that-matrix.html&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 May 2015 09:15:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Unable-to-allocate-sufficient-memory/m-p/214673#M2229</guid>
      <dc:creator>jakarman</dc:creator>
      <dc:date>2015-05-14T09:15:20Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to allocate sufficient memory</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Unable-to-allocate-sufficient-memory/m-p/214674#M2230</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, see this tip on &lt;A href="http://blogs.sas.com/content/iml/2014/05/19/never-multiply-with-a-large-diagonal-matrix.html"&gt;how to avoid multiplying by a large diagonal matrix.&lt;/A&gt; The second half of the article shows how to use ordinary elemtnwise multiplication to avoid forming the large matrix.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 May 2015 10:37:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Unable-to-allocate-sufficient-memory/m-p/214674#M2230</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2015-05-14T10:37:14Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to allocate sufficient memory</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Unable-to-allocate-sufficient-memory/m-p/214675#M2231</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Using the following options to make your available memory bigger.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PROC IML&amp;nbsp;&amp;nbsp; SYMSIZE=n1&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG&gt;WORKSIZE&lt;/STRONG&gt;=(n2)&amp;nbsp; ;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 May 2015 13:01:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Unable-to-allocate-sufficient-memory/m-p/214675#M2231</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2015-05-14T13:01:55Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to allocate sufficient memory</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Unable-to-allocate-sufficient-memory/m-p/214676#M2232</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you all! Just as I suspected, there is a more efficient way. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 May 2015 17:04:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Unable-to-allocate-sufficient-memory/m-p/214676#M2232</guid>
      <dc:creator>R_Fraser</dc:creator>
      <dc:date>2015-05-14T17:04:15Z</dc:date>
    </item>
  </channel>
</rss>

