<?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 Stub function in Software Archive</title>
    <link>https://community.intel.com/t5/Software-Archive/Stub-function/m-p/741584#M645</link>
    <description>The "stub function" described in the Cilk 5.4.6manual (MIT Cilk) is a special functionthat MIT Cilk generates for a function g marked with the "cilk" keyword, which allows g to be called from a C function f.&lt;BR /&gt;In MIT Cilk, to calla "cilk function" from C, you needed to create a new "CilkContext", which roughly speaking, can be thought of as creating a new copy of the MIT Cilk runtime. Thus, calling Cilk from C in MIT Cilk is not going to be particularly efficient. You are usually better off converting f into a Cilk function, and then "calling" g by immediately spawning g() and then syncing.&lt;BR /&gt;&lt;BR /&gt;There is no analogous notion in Intel Cilk Plus with MIT Cilk's "stub" function. Calling between C and Cilk is much easier in Intel Cilk Plus, as was discussed in earlier conversations.&lt;BR /&gt;&lt;BR /&gt;I believe there are other kinds of "stubs" in Cilk Plus, but they are a completely unrelated thing, and you should avoid confusing them with MIT Cilk.&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;&lt;BR /&gt;Jim</description>
    <pubDate>Wed, 21 Mar 2012 17:05:09 GMT</pubDate>
    <dc:creator>Jim_S_Intel</dc:creator>
    <dc:date>2012-03-21T17:05:09Z</dc:date>
    <item>
      <title>Stub function</title>
      <link>https://community.intel.com/t5/Software-Archive/Stub-function/m-p/741583#M644</link>
      <description>&lt;BR /&gt;What is a stub function? I am referrring to its use in the old Cilk 5.4.6 manual when you call a cilk function from a c function. I think it is on page 12.&lt;BR /&gt;&lt;BR /&gt;Any help appreciated thanks in advance.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Newport_j</description>
      <pubDate>Wed, 21 Mar 2012 16:06:47 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Stub-function/m-p/741583#M644</guid>
      <dc:creator>newport_j</dc:creator>
      <dc:date>2012-03-21T16:06:47Z</dc:date>
    </item>
    <item>
      <title>Stub function</title>
      <link>https://community.intel.com/t5/Software-Archive/Stub-function/m-p/741584#M645</link>
      <description>The "stub function" described in the Cilk 5.4.6manual (MIT Cilk) is a special functionthat MIT Cilk generates for a function g marked with the "cilk" keyword, which allows g to be called from a C function f.&lt;BR /&gt;In MIT Cilk, to calla "cilk function" from C, you needed to create a new "CilkContext", which roughly speaking, can be thought of as creating a new copy of the MIT Cilk runtime. Thus, calling Cilk from C in MIT Cilk is not going to be particularly efficient. You are usually better off converting f into a Cilk function, and then "calling" g by immediately spawning g() and then syncing.&lt;BR /&gt;&lt;BR /&gt;There is no analogous notion in Intel Cilk Plus with MIT Cilk's "stub" function. Calling between C and Cilk is much easier in Intel Cilk Plus, as was discussed in earlier conversations.&lt;BR /&gt;&lt;BR /&gt;I believe there are other kinds of "stubs" in Cilk Plus, but they are a completely unrelated thing, and you should avoid confusing them with MIT Cilk.&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;&lt;BR /&gt;Jim</description>
      <pubDate>Wed, 21 Mar 2012 17:05:09 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Stub-function/m-p/741584#M645</guid>
      <dc:creator>Jim_S_Intel</dc:creator>
      <dc:date>2012-03-21T17:05:09Z</dc:date>
    </item>
  </channel>
</rss>

