<?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 You are likely to be running in Software Archive</title>
    <link>https://community.intel.com/t5/Software-Archive/Offload-shared-malloc-errors/m-p/1016950#M36550</link>
    <description>&lt;P&gt;You are likely to be running out of memory.&lt;/P&gt;

&lt;P&gt;The CIlk_shared model allows you to use only about 45% of the available memory on the card.&lt;/P&gt;

&lt;P&gt;I was able to run your program (with some edits) on a smaller numbers of rows.&lt;/P&gt;</description>
    <pubDate>Tue, 02 Jun 2015 22:40:06 GMT</pubDate>
    <dc:creator>Rajiv_D_Intel</dc:creator>
    <dc:date>2015-06-02T22:40:06Z</dc:date>
    <item>
      <title>_Offload_shared_malloc errors</title>
      <link>https://community.intel.com/t5/Software-Archive/Offload-shared-malloc-errors/m-p/1016949#M36549</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I am trying to allocate a memory in MIC with _Cilk_shared_malloc. The following is the code, which raise some errors.&lt;/P&gt;

&lt;PRE class="brush:cpp;"&gt;_Cilk_shared
void run(int _Cilk_shared *lTable, int _Cilk_shared *rTable, int size){
#ifdef __MIC__
        printf("Run on MIC\n");
        int i;
        for(i = 0; i &amp;lt; size; i++)
        {
                lTable&lt;I&gt; = lTable&lt;I&gt; + rTable&lt;I&gt;;
        }
#else
        printf("Run on CPU\n");
#endif
}


int main(){

&amp;nbsp;       int *ltable = (int *)malloc(sizeof(int) * LTABLESIZE);
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; int *rtable = (int *)malloc(sizeof(int) * RTABLESIZE);

        int rows = 1024*1024*32;
        _Cilk_shared int microws = 1024*1024*32;
        micltable = _Offload_shared_malloc(sizeof(int) * rows);
        micrtable = _Offload_shared_malloc(sizeof(int) * rows);
        memcpy(micltable, ltable, rows * sizeof(int));
        memcpy(micrtable, rtable, rows * sizeof(int));

        _Cilk_offload run(micltable, micrtable, rows);
}&lt;/I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/PRE&gt;

&lt;PRE class="brush:cpp;"&gt;&lt;SPAN style="font-size: 13.0080003738403px; line-height: 19.5120010375977px;"&gt;&lt;EM&gt;&lt;STRONG&gt;Errors&lt;/STRONG&gt;&lt;/EM&gt;:
&lt;/SPAN&gt;CARD--ERROR:1 thread:1 _myoiInitArenaProt:Page Table Entry Missing for chunkaddr: 0x822000000
CARD--ERROR:1 thread:1 _myoiArenaSyncNewChunks: Failed to get the prot of the arena!
shareMemSpeed?iccoutSj6mII: allocator/myoarenaallocator.c:1043: myoiArenaHandler: Assertion `MYO_SUCCESS == errInfo' failed.
HOST--ERROR: thread:1 myoiScifGetRecvId: Call recv() Header Failed ! for source: 1, errno = 104
^CHOST--ERROR: thread:0 myoiUnregisterMYOWindow:scif_unregister failed with err 1104
CARD--ERROR:2 thread:1 myoiScifGetRecvId: Call recv() Header Failed ! for source: 0, errno = 104
HOST--ERROR: thread:0 myoiThreadSemaphoreWait1: Failed to wait a semaphore!
HOST--ERROR: thread:0 myoiScifSend: Call send() Failed! errno = 9
HOST--ERROR: thread:0 myoiSend: Failed to send message!
HOST--ERROR: thread:0 myoiBcastToOthers: Failed to send message to 2!
HOST--ERROR: thread:0 myoiSendArenaMsg: Failed to send message!
HOST--ERROR: thread:0 myoiScifSend: Call send() Failed! errno = 9
HOST--ERROR: thread:0 myoiSend: Failed to send message!
HOST--ERROR: thread:0 myoiSendStatMsg: Failed to sent a stat related message!
HOST--ERROR: thread:0 myoiSendHTimeSetting: Failed to send stat msg!
HOST--ERROR: thread:0 myoiScifSend: Call send() Failed! errno = 9
HOST--ERROR: thread:0 myoiSend: Failed to send message!
HOST--ERROR: thread:0 myoiBcastToOthers: Failed to send message to 1!
HOST--ERROR: thread:0 myoiHostSVarTablePropagateInternal: Failed to broadcast the var table to others!
HOST--ERROR: thread:0 _myoiLibInit: Failed to propagate the addresses of svars!

&lt;SPAN style="font-size: 12px; line-height: 18px;"&gt;Can anyone help me figure out this problem?&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.0080003738403px; line-height: 19.5120010375977px;"&gt;
&lt;/SPAN&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;SPAN style="font-size: 12px; line-height: 18px;"&gt;Thanks!&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 27 May 2015 11:17:38 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Offload-shared-malloc-errors/m-p/1016949#M36549</guid>
      <dc:creator>bing_z_</dc:creator>
      <dc:date>2015-05-27T11:17:38Z</dc:date>
    </item>
    <item>
      <title>You are likely to be running</title>
      <link>https://community.intel.com/t5/Software-Archive/Offload-shared-malloc-errors/m-p/1016950#M36550</link>
      <description>&lt;P&gt;You are likely to be running out of memory.&lt;/P&gt;

&lt;P&gt;The CIlk_shared model allows you to use only about 45% of the available memory on the card.&lt;/P&gt;

&lt;P&gt;I was able to run your program (with some edits) on a smaller numbers of rows.&lt;/P&gt;</description>
      <pubDate>Tue, 02 Jun 2015 22:40:06 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Offload-shared-malloc-errors/m-p/1016950#M36550</guid>
      <dc:creator>Rajiv_D_Intel</dc:creator>
      <dc:date>2015-06-02T22:40:06Z</dc:date>
    </item>
  </channel>
</rss>

