<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:clearspace="http://www.jivesoftware.com/xmlns/clearspace/rss" xmlns:dc="http://purl.org/dc/elements/1.1/" version="2.0">
  <channel>
    <title>Content in Intel Communities</title>
    <link>/profile-content.jspa?userID=88182&amp;filterID=contentstatus[published]</link>
    <description>Recent content in Intel Communities</description>
    <language>en</language>
    <pubDate>Sun, 13 May 2012 16:59:42 GMT</pubDate>
    <generator>Jive SBS 5.0.2.0  (http://jivesoftware.com/products/clearspace/)</generator>
    <dc:date>2012-05-13T16:59:42Z</dc:date>
    <dc:language>en</dc:language>
    <item>
      <title>TM2C: a Software Transactional Memory for Many-Cores</title>
      <link>http://communities.intel.com/thread/29457</link>
      <description>&lt;!-- [DocumentBodyStart:d5860c2e-97a9-4042-bfe4-53ca0c096efe] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;p&gt;Dear All,&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;I recently presented at EuroSys'12 our work at EPFL on a Distributed Transactional Memory system tailored for non-coherent many-cores. The title of the paper is "TM2C: a Software Transactional Memory for Many-Cores". Naturally, the SCC was the target platrform for this work.&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;The paper discusses in details the design of TM2C and our experiences during this work. You can find the paper here: &lt;a class="jive-link-external-small" href="http://dl.acm.org/citation.cfm?id=2168872&amp;amp;dl=ACM&amp;amp;coll=DL" target="_blank"&gt;http://dl.acm.org/citation.cfm?id=2168872&amp;amp;dl=ACM&amp;amp;coll=DL&lt;/a&gt;.&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;If someone needs more details about this work, feel free to contact me.&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Best,&lt;/p&gt;&lt;p&gt;Vasileios Trigonakis.&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:d5860c2e-97a9-4042-bfe4-53ca0c096efe] --&gt;</description>
      <category domain="http://communities.intel.com/tags#/?containerType=14&amp;container=2267">conference</category>
      <category domain="http://communities.intel.com/tags#/?containerType=14&amp;container=2267">transactional_memory</category>
      <category domain="http://communities.intel.com/tags#/?containerType=14&amp;container=2267">dtm</category>
      <category domain="http://communities.intel.com/tags#/?containerType=14&amp;container=2267">tm</category>
      <pubDate>Sun, 13 May 2012 16:59:42 GMT</pubDate>
      <author>webadmin@intel.com</author>
      <guid>http://communities.intel.com/thread/29457</guid>
      <dc:date>2012-05-13T16:59:42Z</dc:date>
      <clearspace:dateToText>1 year, 1 week ago</clearspace:dateToText>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
    <item>
      <title>RCCE Communication gets stuck</title>
      <link>http://communities.intel.com/thread/21854</link>
      <description>&lt;!-- [DocumentBodyStart:bf842ad2-9477-46f4-86e5-c8c9f765564b] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;p&gt;For a long time, me and the colleagues working on the marc026 SCC have the following problems:&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;ul&gt;&lt;li&gt;The barriers (&lt;code&gt;RCCE_barrier&lt;/code&gt;) are not always passed.&lt;/li&gt;&lt;li&gt;The communication may get stuck (both with &lt;code&gt;RCCE&lt;/code&gt; and &lt;code&gt;iRCCE&lt;/code&gt; libraries).&lt;/li&gt;&lt;/ul&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;These problems appear when trying to run a program on more than 8 cores. There were times that 12 or even 24 cores ran properly.&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;I am using the attached application to test how things work (a ring of nodes and a token sent over the ring). I have run tests up to 1 billion token-hops upto 8 cores. More than 8 (or 12) cores it stops.&amp;nbsp; For example, today on 4 cores:&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;pre&gt;rck00: [0] Started. The token will be resubmitted 100000000 times!
rck00: [0] Token here: 1003
rck00: [0] Token here: 2007
rck00: [0] Token here: 4015
rck00: [0] Token here: 8031
rck00: [0] Token here: 16063
rck00: [0] Token here: 32127
rck00: [0] Token here: 64255
rck00: [0] Token here: 128511
rck00: [0] Token here: 257023
rck00: [0] Token here: 514047
rck00: [0] Token here: 1028095
rck00: [0] Token here: 2056191
rck00: [0] Token here: 4112383
rck00: [0] Token here: 8224767
rck00: [0] Token here: 16449535
rck00: [0] Token here: 32899071
rck00: [0] Token here: 65798143
rck01: [1] ~~Completed. Token here: 100000000
&lt;/pre&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;while on 12:&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;pre&gt;rck00: [0] Started. The token will be resubmitted 100000000 times!
rck00: [0] Token here: 1007
rck00: [0] Token here: 2015
rck00: [0] Token here: 4031
rck00: [0] Token here: 8063
rck00: [0] Token here: 16127
rck00: [0] Token here: 32255
rck00: [0] Token here: 64511
&lt;/pre&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;it got stuck at this point. &lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;The analysis I did showed that it should be a flag synchronization problem. &lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Did/Does anyone else have the same problem or is it just our SCC? &lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Thanks, &lt;/p&gt;&lt;p&gt;Vasileios&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:bf842ad2-9477-46f4-86e5-c8c9f765564b] --&gt;</description>
      <category domain="http://communities.intel.com/tags#/?containerType=14&amp;container=2267">rcce</category>
      <category domain="http://communities.intel.com/tags#/?containerType=14&amp;container=2267">message_passing_buffer</category>
      <pubDate>Mon, 30 May 2011 16:38:15 GMT</pubDate>
      <author>webadmin@intel.com</author>
      <guid>http://communities.intel.com/thread/21854</guid>
      <dc:date>2011-05-30T16:38:15Z</dc:date>
      <clearspace:dateToText>1 year, 12 months ago</clearspace:dateToText>
      <clearspace:replyCount>16</clearspace:replyCount>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
    <item>
      <title>Error code 1</title>
      <link>http://communities.intel.com/thread/21626</link>
      <description>&lt;!-- [DocumentBodyStart:afa9c48a-371d-4b52-b849-b1d9f378e221] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;p&gt;Hello,&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Does someone know what does the &lt;strong&gt;error code 1 &lt;/strong&gt;mean?&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;From pssh I found:&lt;/p&gt;&lt;blockquote class="jive-quote"&gt;&lt;p&gt;1: at least one remote command returned a non-0 value (but all commands ran)&lt;/p&gt;&lt;/blockquote&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;But since the pssh call runs my program only I cannot make an interpretation based on this.&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Thanks.&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:afa9c48a-371d-4b52-b849-b1d9f378e221] --&gt;</description>
      <pubDate>Mon, 09 May 2011 13:17:54 GMT</pubDate>
      <author>webadmin@intel.com</author>
      <guid>http://communities.intel.com/thread/21626</guid>
      <dc:date>2011-05-09T13:17:54Z</dc:date>
      <clearspace:dateToText>2 years, 2 weeks ago</clearspace:dateToText>
      <clearspace:replyCount>1</clearspace:replyCount>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
    <item>
      <title>RCCE Shared Memory Allocation</title>
      <link>http://communities.intel.com/thread/20300</link>
      <description>&lt;!-- [DocumentBodyStart:ce8e3cb1-aaaa-4c4b-a6ca-fafc37d99f34] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;p&gt;Hello,&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;I stepped on the following issue: &lt;code&gt;RCCE_shmalloc&lt;/code&gt; allocates one new &lt;code&gt;RCCE_BLOCK&lt;/code&gt; (&lt;code&gt;sizeof(RCCE_BLOCK)&lt;/code&gt;=12 bytes) in local memory for every shared memory allocation done, thus the local memory needed for allocating a (pointer to a) &lt;code&gt;double&lt;/code&gt; for example is more than the actual shared memory space allocated.&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;The program I attached, tries to allocate 100MB in single &lt;code&gt;char&lt;/code&gt;s and fails (as expected, since it would need 1+GB for local metadata):&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;pre&gt;for (i = 0; i &amp;lt; Bytes; i++) {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; p = (char *) RCCE_shmalloc(sizeof (char));
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (!p) {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; PRINTD("RCCE_shmalloc returned NULL (%d byte)", i);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }
}&lt;br/&gt;&lt;/pre&gt;&lt;p&gt;According to the output, the program fails after it had allocated around &lt;strong&gt;17668KB = 17.67 MB&lt;/strong&gt;. If my calculations are correct, the allocation till there needs &lt;strong&gt;212MB&lt;/strong&gt; of local memory. It fails with error &lt;strong&gt;code 137&lt;/strong&gt; (Segmentation Fault probably).&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;I tried to figure out if it was the &lt;code&gt;malloc&lt;/code&gt; call inside &lt;code&gt;RCCE_shmalloc&lt;/code&gt; that returned &lt;code&gt;NULL&lt;/code&gt;, but it wasn't (placed &lt;code&gt;if(NULL)&lt;/code&gt; check after the &lt;code&gt;RCCE_BLOCK&lt;/code&gt;s allocation).&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;So, my conclusion is that the &lt;code&gt;RCCE_shmalloc&lt;/code&gt; is trying to use space used by the OS (when calling the &lt;code&gt;malloc&lt;/code&gt; for allocating the &lt;code&gt;RCCE_BLOCK&lt;/code&gt;). Does it make sense, or am I missing something?&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;PS. I am using &lt;strong&gt;RCCE 1.0.13&lt;/strong&gt;, with &lt;strong&gt;SHMADD&lt;/strong&gt; (512MB of shared memory)&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:ce8e3cb1-aaaa-4c4b-a6ca-fafc37d99f34] --&gt;</description>
      <category domain="http://communities.intel.com/tags#/?containerType=14&amp;container=2267">rcce</category>
      <category domain="http://communities.intel.com/tags#/?containerType=14&amp;container=2267">shmem</category>
      <category domain="http://communities.intel.com/tags#/?containerType=14&amp;container=2267">malloc</category>
      <pubDate>Fri, 25 Mar 2011 14:27:09 GMT</pubDate>
      <author>webadmin@intel.com</author>
      <guid>http://communities.intel.com/thread/20300</guid>
      <dc:date>2011-03-25T14:27:09Z</dc:date>
      <clearspace:dateToText>2 years, 2 months ago</clearspace:dateToText>
      <clearspace:replyCount>2</clearspace:replyCount>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
    <item>
      <title>RCCE (emulator) and pthreads</title>
      <link>http://communities.intel.com/thread/19756</link>
      <description>&lt;!-- [DocumentBodyStart:7d7f097e-c4aa-410b-beb8-efbc222a2940] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;p&gt;Hello.&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;I am trying to use phtreads with the RCCE emulator, but the RCCE functions does not seem to work properly within the threads. Are they supposed to? Are they supposed to work on SCC with Linux?&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;The simplest example I tried was spawning 1 thread per UE that runs the following code:&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="padding-left: 30px;"&gt;&lt;span style="font-family: &amp;amp;quot;andale mono&amp;amp;quot;, &amp;amp;quot;times&amp;amp;quot;"&gt;printf("UE %d: run from a thread\n", RCCE_ue());&lt;br/&gt; pthread_exit(NULL);&lt;/span&gt;&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;The output from each spawned thread is:&lt;/p&gt;&lt;p&gt;&lt;span style="font-family: &amp;amp;quot;andale mono&amp;amp;quot;, &amp;amp;quot;times&amp;amp;quot;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; UE -1: run from a thread&lt;/span&gt;&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;I attached the source-file.&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;PS. I know that the intented programming model of SCC is SPMD, but I would like to use pthreads to run a sevice for the "normal" execution.&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:7d7f097e-c4aa-410b-beb8-efbc222a2940] --&gt;</description>
      <category domain="http://communities.intel.com/tags#/?containerType=14&amp;container=2267">emulator</category>
      <category domain="http://communities.intel.com/tags#/?containerType=14&amp;container=2267">pthreads</category>
      <pubDate>Fri, 11 Mar 2011 10:28:02 GMT</pubDate>
      <author>webadmin@intel.com</author>
      <guid>http://communities.intel.com/thread/19756</guid>
      <dc:date>2011-03-11T10:28:02Z</dc:date>
      <clearspace:dateToText>2 years, 2 months ago</clearspace:dateToText>
      <clearspace:replyCount>3</clearspace:replyCount>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
  </channel>
</rss>

