<?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 Quote:Rob J. wrote: in Software Archive</title>
    <link>https://community.intel.com/t5/Software-Archive/Using-openmp-in-Cilk-offload/m-p/1152671#M78673</link>
    <description>&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;Rob J. wrote:&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;

&lt;P&gt;I wouldn't expend a lot of effort on Cilk.&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;PRE class="brush:xml;"&gt;&lt;A href="https://software.intel.com/en-us/forums/intel-cilk-plus/topic/745556" target="_blank"&gt;https://software.intel.com/en-us/forums/intel-cilk-plus/topic/745556&lt;/A&gt;&lt;/PRE&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;Thank you very much , I find my mistake today.&amp;nbsp;&lt;/P&gt;

&lt;P&gt;Because of the code is C file, I only add -qopenmp on Intel C++ Compile in Eclipse. So after I add -qopenmp on Intel C Compile , it is ok .&amp;nbsp;&lt;SPAN style="font-size: 1em;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 15 Mar 2018 13:04:03 GMT</pubDate>
    <dc:creator>王_子_</dc:creator>
    <dc:date>2018-03-15T13:04:03Z</dc:date>
    <item>
      <title>Using openmp in _Cilk_offload</title>
      <link>https://community.intel.com/t5/Software-Archive/Using-openmp-in-Cilk-offload/m-p/1152669#M78671</link>
      <description>&lt;P&gt;Recently, I want to port a complex program based on cpu to MIC. Because of the complex struct ,so I use the _Cilk_shared to manager the pointer to complex struct. I also make it&amp;nbsp;successfully running on mic. Only use one core ,so it's performance not good and I try to using openmp [pragma&amp;nbsp;omp parallel for] to parallel the for&amp;nbsp;iteration. But the performance not became better and I print the info show that the program only use one core to run. Even after I&amp;nbsp;annotate some functions. The test code showed below:&lt;/P&gt;

&lt;PRE class="brush:cpp;"&gt;_Cilk_shared void offloadfunction(worker_t w,bwt_t *bwtmic,uint8_t *pacmic ,int n)
{
	int i=0;
// some complex data transport 
	w.bwt=bwtmic;
	w.pac=pacmic;
    struct timeval tv1,tv2;
    struct timezone tz;
    gettimeofday (&amp;amp;tv1, &amp;amp;tz);

#pragma omp parallel for num_threads(200)
	for (i = 0; i &amp;lt; 1000000000; i++) {
		int j = 10;
		j = j * 10;
		if(i%100000==0)
		printf("\n %d %d %d \n",omp_get_num_procs(),omp_get_num_threads(),omp_get_thread_num());
	}

    gettimeofday (&amp;amp;tv2, &amp;amp;tz);
    float t=(tv2.tv_sec-tv1.tv_sec)+ (tv2.tv_usec-tv1.tv_usec)/1000000; 


}&lt;/PRE&gt;

&lt;P&gt;The output is :&lt;/P&gt;

&lt;P&gt;&amp;nbsp;236 1 0&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;236 1 0&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;236 1 0&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;236 1 0&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;236 1 0&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 1em;"&gt;&amp;nbsp;236 1 0&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;This offload program just used one core on mic . What can I do for it ?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Mar 2018 12:56:35 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Using-openmp-in-Cilk-offload/m-p/1152669#M78671</guid>
      <dc:creator>王_子_</dc:creator>
      <dc:date>2018-03-13T12:56:35Z</dc:date>
    </item>
    <item>
      <title>I wouldn't expend a lot of</title>
      <link>https://community.intel.com/t5/Software-Archive/Using-openmp-in-Cilk-offload/m-p/1152670#M78672</link>
      <description>&lt;P&gt;I wouldn't expend a lot of effort on Cilk.&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;PRE class="brush:xml;"&gt;&lt;A href="https://software.intel.com/en-us/forums/intel-cilk-plus/topic/745556" target="_blank"&gt;https://software.intel.com/en-us/forums/intel-cilk-plus/topic/745556&lt;/A&gt;&lt;/PRE&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Mar 2018 04:59:56 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Using-openmp-in-Cilk-offload/m-p/1152670#M78672</guid>
      <dc:creator>Rob_J_</dc:creator>
      <dc:date>2018-03-15T04:59:56Z</dc:date>
    </item>
    <item>
      <title>Quote:Rob J. wrote:</title>
      <link>https://community.intel.com/t5/Software-Archive/Using-openmp-in-Cilk-offload/m-p/1152671#M78673</link>
      <description>&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;Rob J. wrote:&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;

&lt;P&gt;I wouldn't expend a lot of effort on Cilk.&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;PRE class="brush:xml;"&gt;&lt;A href="https://software.intel.com/en-us/forums/intel-cilk-plus/topic/745556" target="_blank"&gt;https://software.intel.com/en-us/forums/intel-cilk-plus/topic/745556&lt;/A&gt;&lt;/PRE&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;Thank you very much , I find my mistake today.&amp;nbsp;&lt;/P&gt;

&lt;P&gt;Because of the code is C file, I only add -qopenmp on Intel C++ Compile in Eclipse. So after I add -qopenmp on Intel C Compile , it is ok .&amp;nbsp;&lt;SPAN style="font-size: 1em;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Mar 2018 13:04:03 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Using-openmp-in-Cilk-offload/m-p/1152671#M78673</guid>
      <dc:creator>王_子_</dc:creator>
      <dc:date>2018-03-15T13:04:03Z</dc:date>
    </item>
    <item>
      <title>In general, if you do only a</title>
      <link>https://community.intel.com/t5/Software-Archive/Using-openmp-in-Cilk-offload/m-p/1152672#M78674</link>
      <description>&lt;P&gt;In general, in case you do only a moderate amount of work in the OpenMP section, you will see a KMP_BLOCKTIME delay before OpenMP releases threads back to Cilk. It can be moderated under hyperthreads (and on MIC) by limiting both OpenMP and Cilk to 1 thread or worker per core.&amp;nbsp; Intel never recommended mixing cilkplus with OpenMP; as others mentioned, Cilk support has gone away.&amp;nbsp; The inefficiency of Cilk on MIC might have contributed to the decision to drop support.&lt;/P&gt;

&lt;P&gt;printf() should be serialized anyway, but the critical is reasonable, recognizing that region will take a significant time interval.&lt;/P&gt;</description>
      <pubDate>Thu, 15 Mar 2018 13:19:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Using-openmp-in-Cilk-offload/m-p/1152672#M78674</guid>
      <dc:creator>TimP</dc:creator>
      <dc:date>2018-03-15T13:19:00Z</dc:date>
    </item>
  </channel>
</rss>

