<?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>Thema "multiple cilk-for in a c function" in Software Archive</title>
    <link>https://community.intel.com/t5/Software-Archive/multiple-cilk-for-in-a-c-function/m-p/742066#M827</link>
    <description>Hello,&lt;BR /&gt;&lt;BR /&gt;only code executed between &lt;I&gt;__cilkview_query(...) &lt;/I&gt;and &lt;I&gt;__cilkview_report(...) &lt;/I&gt;will be analyzed.&lt;BR /&gt;&lt;BR /&gt;So, why don't you just enclose one for-loop by those two statements, e.g.:&lt;BR /&gt;[cpp]void foo()
{
  ...

  cilk_for(...) {
  }

  ...

  __cilkview_query(...);
  cilk_for(...) {
  }
  __cilkview_report(...);
}[/cpp] ...to just analyze the second for-loop.&lt;BR /&gt;&lt;BR /&gt;Of course you need to make sure you don't mix the results of multiple invocations of the function (here: &lt;I&gt;foo()&lt;/I&gt;)! You can do this by either bailing-out early after having the first report or by using different tags.&lt;BR /&gt;&lt;BR /&gt;Best regards,&lt;BR /&gt;&lt;BR /&gt;Georg Zitzlsberger&lt;BR /&gt;</description>
    <pubDate>Thu, 12 Jul 2012 15:49:45 GMT</pubDate>
    <dc:creator>Georg_Z_Intel</dc:creator>
    <dc:date>2012-07-12T15:49:45Z</dc:date>
    <item>
      <title>multiple cilk-for in a c function</title>
      <link>https://community.intel.com/t5/Software-Archive/multiple-cilk-for-in-a-c-function/m-p/742065#M826</link>
      <description>&lt;BR /&gt;&lt;BR /&gt;it is clear how to use cilkview in a c function. One just places cilkview.h in the include file secton, put __cilk_data_t start in the file defintion section of the c function. Finallly, puting __cilkview_query(strat); in the line above the cilk_for loop and at the end put __cilkview_report(&amp;amp;start,NULL,"title",CV_REPORT_WRITE_TO_RESULTS); at the bottom ogf the file.&lt;BR /&gt;&lt;BR /&gt;NowI attempting to speed up only with cilk_for's, andI have set up each function as I have shown above.&lt;BR /&gt;&lt;BR /&gt;But,I want to check to the contributionof each cilk_for and there may be more than one cilk_for in a function. All,I can do is check the whole function, noteach cilk-for.How do I do the latter.&lt;BR /&gt;&lt;BR /&gt;Thanks in advance.&lt;BR /&gt;&lt;BR /&gt;Newport_j</description>
      <pubDate>Mon, 02 Jul 2012 20:27:49 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/multiple-cilk-for-in-a-c-function/m-p/742065#M826</guid>
      <dc:creator>newport_j</dc:creator>
      <dc:date>2012-07-02T20:27:49Z</dc:date>
    </item>
    <item>
      <title>multiple cilk-for in a c function</title>
      <link>https://community.intel.com/t5/Software-Archive/multiple-cilk-for-in-a-c-function/m-p/742066#M827</link>
      <description>Hello,&lt;BR /&gt;&lt;BR /&gt;only code executed between &lt;I&gt;__cilkview_query(...) &lt;/I&gt;and &lt;I&gt;__cilkview_report(...) &lt;/I&gt;will be analyzed.&lt;BR /&gt;&lt;BR /&gt;So, why don't you just enclose one for-loop by those two statements, e.g.:&lt;BR /&gt;[cpp]void foo()
{
  ...

  cilk_for(...) {
  }

  ...

  __cilkview_query(...);
  cilk_for(...) {
  }
  __cilkview_report(...);
}[/cpp] ...to just analyze the second for-loop.&lt;BR /&gt;&lt;BR /&gt;Of course you need to make sure you don't mix the results of multiple invocations of the function (here: &lt;I&gt;foo()&lt;/I&gt;)! You can do this by either bailing-out early after having the first report or by using different tags.&lt;BR /&gt;&lt;BR /&gt;Best regards,&lt;BR /&gt;&lt;BR /&gt;Georg Zitzlsberger&lt;BR /&gt;</description>
      <pubDate>Thu, 12 Jul 2012 15:49:45 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/multiple-cilk-for-in-a-c-function/m-p/742066#M827</guid>
      <dc:creator>Georg_Z_Intel</dc:creator>
      <dc:date>2012-07-12T15:49:45Z</dc:date>
    </item>
  </channel>
</rss>

