<?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 The interpretation in the in Software Archive</title>
    <link>https://community.intel.com/t5/Software-Archive/OpenMP-4-0-target-offload-Report/m-p/1026456#M40268</link>
    <description>&lt;P&gt;The interpretation in the compiler of global variables which were not marked with #pragma omp declare target was wrong and this is fixed in the newer compiler. &amp;nbsp;&lt;/P&gt;

&lt;P&gt;Try the following test&amp;nbsp;&lt;/P&gt;

&lt;P&gt;#ifdef OPENMP&lt;BR /&gt;
	#pragma omp declare target&lt;BR /&gt;
	#else&lt;BR /&gt;
	#pragma offload_attribute(push, target(mic))&lt;BR /&gt;
	#endif&lt;BR /&gt;
	const int n = 5000;&lt;BR /&gt;
	float x[5000];&lt;BR /&gt;
	float y[5000];&lt;BR /&gt;
	int a = 10;&lt;BR /&gt;
	#ifdef OPENMP&lt;BR /&gt;
	#pragma omp end declare target&lt;BR /&gt;
	#else&lt;BR /&gt;
	#pragma offload_attribute(pop)&lt;BR /&gt;
	#endif&lt;/P&gt;

&lt;P&gt;main()&lt;BR /&gt;
	{&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp;int i;&lt;BR /&gt;
	#ifndef OPENMP&lt;BR /&gt;
	#pragma offload target(mic:0) in(x: alloc_if(0) free_if(0)) inout(y: alloc_if(0) free_if(0))&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; #pragma omp parallel for default (none) shared(a,x,y)&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; for (i = 0; i &amp;lt; n; ++i){&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; y&lt;I&gt; = a*x&lt;I&gt; + y&lt;I&gt;;&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; } // end of target data&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // end time&lt;BR /&gt;
	#else&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; #pragma omp target map(always, to:x) map(always, tofrom:y)&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; #pragma omp parallel for&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; for (i = 0; i &amp;lt; n; ++i){&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; y&lt;I&gt; = a*x&lt;I&gt; + y&lt;I&gt;;&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;BR /&gt;
	#endif&lt;BR /&gt;
	}&lt;/I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/P&gt;

&lt;P&gt;OUTPUT I GET&lt;/P&gt;

&lt;P&gt;icc -openmp raju.c&lt;BR /&gt;
	bash-4.2$ ./a.out&lt;BR /&gt;
	[Offload] [MIC 0] [File] &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;raju.c&lt;BR /&gt;
	[Offload] [MIC 0] [Line] &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;20&lt;BR /&gt;
	[Offload] [MIC 0] [Tag] &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Tag 0&lt;BR /&gt;
	[Offload] [HOST] &amp;nbsp;[Tag 0] [CPU Time] &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0.430813(seconds)&lt;BR /&gt;
	[Offload] [MIC 0] [Tag 0] [CPU-&amp;gt;MIC Data] &amp;nbsp; 40008 (bytes)&lt;BR /&gt;
	[Offload] [MIC 0] [Tag 0] [MIC Time] &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0.243459(seconds)&lt;BR /&gt;
	[Offload] [MIC 0] [Tag 0] [MIC-&amp;gt;CPU Data] &amp;nbsp; 20008 (bytes)&lt;/P&gt;

&lt;P&gt;bash-4.2$ icc -openmp raju.c -DOPENMP&lt;BR /&gt;
	bash-4.2$ ./a.out&lt;BR /&gt;
	[Offload] [MIC 0] [File] &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;raju.c&lt;BR /&gt;
	[Offload] [MIC 0] [Line] &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;29&lt;BR /&gt;
	[Offload] [MIC 0] [Tag] &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Tag 0&lt;BR /&gt;
	[Offload] [HOST] &amp;nbsp;[Tag 0] [CPU Time] &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0.412741(seconds)&lt;BR /&gt;
	[Offload] [MIC 0] [Tag 0] [CPU-&amp;gt;MIC Data] &amp;nbsp; 40004 (bytes)&lt;BR /&gt;
	[Offload] [MIC 0] [Tag 0] [MIC Time] &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0.234801(seconds)&lt;BR /&gt;
	[Offload] [MIC 0] [Tag 0] [MIC-&amp;gt;CPU Data] &amp;nbsp; 20004 (bytes)&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 14 Sep 2015 22:15:02 GMT</pubDate>
    <dc:creator>Ravi_N_Intel</dc:creator>
    <dc:date>2015-09-14T22:15:02Z</dc:date>
    <item>
      <title>OpenMP 4.0 target offload Report</title>
      <link>https://community.intel.com/t5/Software-Archive/OpenMP-4-0-target-offload-Report/m-p/1026451#M40263</link>
      <description>&lt;P style="color: rgb(34, 34, 34); line-height: normal; font-family: arial, sans-serif; font-size: 12.8px;"&gt;Hi ..&lt;/P&gt;

&lt;P style="color: rgb(34, 34, 34); line-height: normal; font-family: arial, sans-serif; font-size: 12.8px;"&gt;I am trying to make a comparison statistics of offload using,&lt;/P&gt;

&lt;P style="color: rgb(34, 34, 34); line-height: normal; font-family: arial, sans-serif; font-size: 12.8px;"&gt;1). Intel compiler assisted offload VS. 2). OPENMP 4.0 target construct&amp;nbsp;&lt;/P&gt;

&lt;P style="color: rgb(34, 34, 34); line-height: normal; font-family: arial, sans-serif; font-size: 12.8px;"&gt;My QUESTION:&lt;STRONG&gt; HOW I CAN GET OPENMP 4.0 OFFLOAD REPORT(which environment variable I need to set..?)&lt;/STRONG&gt;, I used &lt;STRONG&gt;OFFLOAD Report=2;&lt;/STRONG&gt; intel compiler directive offload it worked fine, BUT I AM GETTING VERY STRANGE STATISTICS WITH OPENMP 4.0 OFFLOAD (I am using Intel Xeon Phi as execution platform)&lt;/P&gt;

&lt;P style="color: rgb(34, 34, 34); line-height: normal; font-family: arial, sans-serif; font-size: 12.8px;"&gt;Here is the code&lt;/P&gt;

&lt;P style="color: rgb(34, 34, 34); line-height: normal; font-family: arial, sans-serif; font-size: 12.8px;"&gt;COMPILER DIRECTIVE OFFLOAD:&lt;/P&gt;

&lt;P style="color: rgb(34, 34, 34); line-height: normal; font-family: arial, sans-serif; font-size: 12.8px;"&gt;// Start time&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; gettimeofday(&amp;amp;start, NULL);&lt;/P&gt;

&lt;P style="color: rgb(34, 34, 34); line-height: normal; font-family: arial, sans-serif; font-size: 12.8px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // Run SAXPY&amp;nbsp;&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; #pragma offload target(mic:0) inout(x) out(y)&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; #pragma omp parallel for default (none) shared(a,x,y)&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; for (i = 0; i &amp;lt; n; ++i){&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; y&lt;I&gt; = a*x&lt;I&gt; + y&lt;I&gt;;&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; } &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; } // end of target data&lt;/I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/P&gt;

&lt;P style="color: rgb(34, 34, 34); line-height: normal; font-family: arial, sans-serif; font-size: 12.8px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // end time&amp;nbsp;&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; gettimeofday(&amp;amp;end, NULL);&lt;/P&gt;

&lt;P style="color: rgb(34, 34, 34); line-height: normal; font-family: arial, sans-serif; font-size: 12.8px;"&gt;OPENMP 4.0 TARGET OFFLOAD:&lt;/P&gt;

&lt;P style="color: rgb(34, 34, 34); line-height: normal; font-family: arial, sans-serif; font-size: 12.8px;"&gt;// Start time&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; gettimeofday(&amp;amp;start, NULL);&lt;/P&gt;

&lt;P style="color: rgb(34, 34, 34); line-height: normal; font-family: arial, sans-serif; font-size: 12.8px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // Run SAXPY&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; #pragma omp target data map(to:x)&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; #pragma omp target map(tofrom:y)&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; #pragma omp parallel for&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; for (i = 0; i &amp;lt; n; ++i){&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; y&lt;I&gt; = a*x&lt;I&gt; + y&lt;I&gt;;&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; } // end of target data&lt;/I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/P&gt;

&lt;P style="color: rgb(34, 34, 34); line-height: normal; font-family: arial, sans-serif; font-size: 12.8px;"&gt;&amp;nbsp;&lt;/P&gt;

&lt;P style="color: rgb(34, 34, 34); line-height: normal; font-family: arial, sans-serif; font-size: 12.8px;"&gt;------&lt;/P&gt;

&lt;P style="color: rgb(34, 34, 34); line-height: normal; font-family: arial, sans-serif; font-size: 12.8px;"&gt;Thanks in advace. (Raju)&lt;/P&gt;

&lt;P style="color: rgb(34, 34, 34); line-height: normal; font-family: arial, sans-serif; font-size: 12.8px;"&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 14 Sep 2015 17:20:24 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/OpenMP-4-0-target-offload-Report/m-p/1026451#M40263</guid>
      <dc:creator>Rezaul_R_</dc:creator>
      <dc:date>2015-09-14T17:20:24Z</dc:date>
    </item>
    <item>
      <title>Change your OpenMP 4.0 code</title>
      <link>https://community.intel.com/t5/Software-Archive/OpenMP-4-0-target-offload-Report/m-p/1026452#M40264</link>
      <description>&lt;P&gt;Change your OpenMP 4.0 code to&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 12px; line-height: 18px;"&gt;#pragma omp target map(to:x) map(tofrom:y)&lt;/SPAN&gt;&lt;BR style="font-size: 12px; line-height: 18px;" /&gt;
	&lt;SPAN style="font-size: 12px; line-height: 18px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;/SPAN&gt;&lt;BR style="font-size: 12px; line-height: 18px;" /&gt;
	&lt;SPAN style="font-size: 12px; line-height: 18px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; #pragma omp parallel for&lt;/SPAN&gt;&lt;BR style="font-size: 12px; line-height: 18px;" /&gt;
	&lt;SPAN style="font-size: 12px; line-height: 18px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; for (i = 0; i &amp;lt; n; ++i){&lt;/SPAN&gt;&lt;BR style="font-size: 12px; line-height: 18px;" /&gt;
	&lt;SPAN style="font-size: 12px; line-height: 18px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; y&lt;I&gt; = a*x&lt;I&gt; + y&lt;I&gt;;&lt;/I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/SPAN&gt;&lt;BR style="font-size: 12px; line-height: 18px;" /&gt;
	&lt;SPAN style="font-size: 12px; line-height: 18px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/SPAN&gt;&lt;BR style="font-size: 12px; line-height: 18px;" /&gt;
	&lt;SPAN style="font-size: 12px; line-height: 18px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 14 Sep 2015 18:03:21 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/OpenMP-4-0-target-offload-Report/m-p/1026452#M40264</guid>
      <dc:creator>Ravi_N_Intel</dc:creator>
      <dc:date>2015-09-14T18:03:21Z</dc:date>
    </item>
    <item>
      <title>Hi Ravi,</title>
      <link>https://community.intel.com/t5/Software-Archive/OpenMP-4-0-target-offload-Report/m-p/1026453#M40265</link>
      <description>&lt;P&gt;Hi Ravi,&lt;/P&gt;

&lt;P&gt;Thanks for your reply. I executed this updated code, my finding is as below:&lt;/P&gt;

&lt;P&gt;1. compare to&amp;nbsp;&lt;SPAN style="font-size: 12px; line-height: 18px;"&gt;COMPILER(Intel) DIRECTIVE OFFLOAD, openMP target offload perform much slower.&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 12px; line-height: 18px;"&gt;2. I used OFFLOAD_REPORT=2 to see the report and it shows:&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;[Offload] [MIC 0] [File] &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;omp_target_SAXPY_only.c&lt;BR /&gt;
	[Offload] [MIC 0] [Line] &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;38&lt;BR /&gt;
	[Offload] [MIC 0] [Tag] &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Tag 0&lt;BR /&gt;
	[Offload] [HOST] &amp;nbsp;[Tag 0] [CPU Time] &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;85.259595(seconds)&lt;BR /&gt;
	&lt;STRONG&gt;[Offload] [MIC 0] [Tag 0] [CPU-&amp;gt;MIC Data] &amp;nbsp; 8 (bytes)&lt;/STRONG&gt;&lt;BR /&gt;
	[Offload] [MIC 0] [Tag 0] [MIC Time] &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;84.532258(seconds)&lt;BR /&gt;
	&lt;STRONG&gt;[Offload] [MIC 0] [Tag 0] [MIC-&amp;gt;CPU Data] &amp;nbsp; 8 (bytes) ; [where as &lt;/STRONG&gt;&lt;SPAN data-sheets-userformat="[null,null,17153,[null,0],null,null,null,null,null,null,null,4,0,null,null,null,null,1]" data-sheets-value="[null,2,&amp;quot;Total Number of Bytes Offloaded (cpu-&amp;gt;MIC)&amp;quot;]" style="font-size:13px;font-family:arial,sans,sans-serif;font-weight:bold;"&gt;Total Number of Bytes Offloaded (cpu-&amp;gt;MIC) with compiler offload is= &lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN data-sheets-userformat="[null,null,513,[null,0],null,null,null,null,null,null,null,null,0]" data-sheets-value="[null,3,null,2000000008]" style="font-size:13px;font-family:arial,sans,sans-serif;text-align:right;"&gt;2000000008 Bytes&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN data-sheets-userformat="[null,null,17153,[null,0],null,null,null,null,null,null,null,4,0,null,null,null,null,1]" data-sheets-value="[null,2,&amp;quot;Total Number of Bytes Offloaded (cpu-&amp;gt;MIC)&amp;quot;]" style="font-size:13px;font-family:arial,sans,sans-serif;font-weight:bold;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;]&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;My input array,&amp;nbsp;&lt;/STRONG&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;const int n = 500000000;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;float x[500000000];&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;float y[500000000];&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;I am wondering with OFFLOAD_REPORT=2, I am getting right underline happening in openMP 4.0..? or what else I can use for this .?&lt;/P&gt;

&lt;P&gt;Thanks in advance again..!!&lt;/P&gt;</description>
      <pubDate>Mon, 14 Sep 2015 18:55:46 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/OpenMP-4-0-target-offload-Report/m-p/1026453#M40265</guid>
      <dc:creator>Rezaul_R_</dc:creator>
      <dc:date>2015-09-14T18:55:46Z</dc:date>
    </item>
    <item>
      <title>Can you show how x and y are</title>
      <link>https://community.intel.com/t5/Software-Archive/OpenMP-4-0-target-offload-Report/m-p/1026454#M40266</link>
      <description>&lt;P&gt;Can you show how x and y are declared in the code for both DIRECTIVE OFFLOAD and OpenMP offload.&lt;/P&gt;</description>
      <pubDate>Mon, 14 Sep 2015 21:32:28 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/OpenMP-4-0-target-offload-Report/m-p/1026454#M40266</guid>
      <dc:creator>Ravi_N_Intel</dc:creator>
      <dc:date>2015-09-14T21:32:28Z</dc:date>
    </item>
    <item>
      <title>Yes.</title>
      <link>https://community.intel.com/t5/Software-Archive/OpenMP-4-0-target-offload-Report/m-p/1026455#M40267</link>
      <description>&lt;P&gt;Yes.&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;Both of the cases I have declared globally, as below:&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;const int n = 500000000;&lt;BR /&gt;
	float x[500000000];&lt;BR /&gt;
	float y[500000000];&lt;/P&gt;

&lt;P&gt;Thanking you,&lt;/P&gt;

&lt;P&gt;-Raju&lt;/P&gt;</description>
      <pubDate>Mon, 14 Sep 2015 21:44:41 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/OpenMP-4-0-target-offload-Report/m-p/1026455#M40267</guid>
      <dc:creator>Rezaul_R_</dc:creator>
      <dc:date>2015-09-14T21:44:41Z</dc:date>
    </item>
    <item>
      <title>The interpretation in the</title>
      <link>https://community.intel.com/t5/Software-Archive/OpenMP-4-0-target-offload-Report/m-p/1026456#M40268</link>
      <description>&lt;P&gt;The interpretation in the compiler of global variables which were not marked with #pragma omp declare target was wrong and this is fixed in the newer compiler. &amp;nbsp;&lt;/P&gt;

&lt;P&gt;Try the following test&amp;nbsp;&lt;/P&gt;

&lt;P&gt;#ifdef OPENMP&lt;BR /&gt;
	#pragma omp declare target&lt;BR /&gt;
	#else&lt;BR /&gt;
	#pragma offload_attribute(push, target(mic))&lt;BR /&gt;
	#endif&lt;BR /&gt;
	const int n = 5000;&lt;BR /&gt;
	float x[5000];&lt;BR /&gt;
	float y[5000];&lt;BR /&gt;
	int a = 10;&lt;BR /&gt;
	#ifdef OPENMP&lt;BR /&gt;
	#pragma omp end declare target&lt;BR /&gt;
	#else&lt;BR /&gt;
	#pragma offload_attribute(pop)&lt;BR /&gt;
	#endif&lt;/P&gt;

&lt;P&gt;main()&lt;BR /&gt;
	{&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp;int i;&lt;BR /&gt;
	#ifndef OPENMP&lt;BR /&gt;
	#pragma offload target(mic:0) in(x: alloc_if(0) free_if(0)) inout(y: alloc_if(0) free_if(0))&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; #pragma omp parallel for default (none) shared(a,x,y)&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; for (i = 0; i &amp;lt; n; ++i){&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; y&lt;I&gt; = a*x&lt;I&gt; + y&lt;I&gt;;&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; } // end of target data&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // end time&lt;BR /&gt;
	#else&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; #pragma omp target map(always, to:x) map(always, tofrom:y)&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; #pragma omp parallel for&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; for (i = 0; i &amp;lt; n; ++i){&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; y&lt;I&gt; = a*x&lt;I&gt; + y&lt;I&gt;;&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;BR /&gt;
	#endif&lt;BR /&gt;
	}&lt;/I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/P&gt;

&lt;P&gt;OUTPUT I GET&lt;/P&gt;

&lt;P&gt;icc -openmp raju.c&lt;BR /&gt;
	bash-4.2$ ./a.out&lt;BR /&gt;
	[Offload] [MIC 0] [File] &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;raju.c&lt;BR /&gt;
	[Offload] [MIC 0] [Line] &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;20&lt;BR /&gt;
	[Offload] [MIC 0] [Tag] &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Tag 0&lt;BR /&gt;
	[Offload] [HOST] &amp;nbsp;[Tag 0] [CPU Time] &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0.430813(seconds)&lt;BR /&gt;
	[Offload] [MIC 0] [Tag 0] [CPU-&amp;gt;MIC Data] &amp;nbsp; 40008 (bytes)&lt;BR /&gt;
	[Offload] [MIC 0] [Tag 0] [MIC Time] &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0.243459(seconds)&lt;BR /&gt;
	[Offload] [MIC 0] [Tag 0] [MIC-&amp;gt;CPU Data] &amp;nbsp; 20008 (bytes)&lt;/P&gt;

&lt;P&gt;bash-4.2$ icc -openmp raju.c -DOPENMP&lt;BR /&gt;
	bash-4.2$ ./a.out&lt;BR /&gt;
	[Offload] [MIC 0] [File] &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;raju.c&lt;BR /&gt;
	[Offload] [MIC 0] [Line] &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;29&lt;BR /&gt;
	[Offload] [MIC 0] [Tag] &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Tag 0&lt;BR /&gt;
	[Offload] [HOST] &amp;nbsp;[Tag 0] [CPU Time] &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0.412741(seconds)&lt;BR /&gt;
	[Offload] [MIC 0] [Tag 0] [CPU-&amp;gt;MIC Data] &amp;nbsp; 40004 (bytes)&lt;BR /&gt;
	[Offload] [MIC 0] [Tag 0] [MIC Time] &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0.234801(seconds)&lt;BR /&gt;
	[Offload] [MIC 0] [Tag 0] [MIC-&amp;gt;CPU Data] &amp;nbsp; 20004 (bytes)&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 14 Sep 2015 22:15:02 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/OpenMP-4-0-target-offload-Report/m-p/1026456#M40268</guid>
      <dc:creator>Ravi_N_Intel</dc:creator>
      <dc:date>2015-09-14T22:15:02Z</dc:date>
    </item>
    <item>
      <title>Thank you very much, Ravi. It</title>
      <link>https://community.intel.com/t5/Software-Archive/OpenMP-4-0-target-offload-Report/m-p/1026457#M40269</link>
      <description>&lt;P&gt;Thank you very much, Ravi. It worked fine.&amp;nbsp;&lt;/P&gt;

&lt;P&gt;Best Regards//&amp;nbsp;&lt;/P&gt;

&lt;P&gt;Raju&lt;/P&gt;</description>
      <pubDate>Tue, 15 Sep 2015 21:15:37 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/OpenMP-4-0-target-offload-Report/m-p/1026457#M40269</guid>
      <dc:creator>Rezaul_R_</dc:creator>
      <dc:date>2015-09-15T21:15:37Z</dc:date>
    </item>
    <item>
      <title>Hi Ravi,</title>
      <link>https://community.intel.com/t5/Software-Archive/OpenMP-4-0-target-offload-Report/m-p/1026458#M40270</link>
      <description>&lt;P&gt;Hi Ravi,&lt;/P&gt;

&lt;P&gt;I have few confusion,&amp;nbsp;&lt;/P&gt;

&lt;P&gt;1. I am using&amp;nbsp;icc (ICC) 15.0.2, and with this version I can not compile&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; #pragma omp target map(always, to:x) map(always, tofrom:y)-- it shows&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp; error: identifier "to" is undefined&lt;BR /&gt;
	&amp;nbsp; #pragma omp target map(always, to:x) map(always, tofrom:y)&lt;/P&gt;

&lt;P&gt;2. which compiler version you are using ..?&lt;/P&gt;

&lt;P&gt;Thanks,&lt;/P&gt;

&lt;P&gt;- Raju&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Sep 2015 00:09:50 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/OpenMP-4-0-target-offload-Report/m-p/1026458#M40270</guid>
      <dc:creator>Rezaul_R_</dc:creator>
      <dc:date>2015-09-17T00:09:50Z</dc:date>
    </item>
    <item>
      <title> Thanks in advance.  And one</title>
      <link>https://community.intel.com/t5/Software-Archive/OpenMP-4-0-target-offload-Report/m-p/1026459#M40271</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;Thanks in advance. &amp;nbsp;And one more findings:&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;1. I am trying to execute&amp;nbsp;&lt;SPAN style="font-size: 12px; line-height: 18px;"&gt;&amp;nbsp; #pragma omp target offload with array size like &amp;gt;[50000/ Million] [using &amp;nbsp;#pragma omp declare target&amp;nbsp;]; in this case it gives me offload error as: &lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 12px; line-height: 18px;"&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;offload error: process on the device 0 was terminated by signal 11 (SIGSEGV)&lt;/P&gt;

&lt;P&gt;I looked into this problem and would you please comment, is it memory alignment issue ..? or Can I do increase the phi_omp_stack ..?&lt;/P&gt;

&lt;P&gt;Appreciated your comment and help.&lt;/P&gt;

&lt;P&gt;// Raju&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Sep 2015 01:13:39 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/OpenMP-4-0-target-offload-Report/m-p/1026459#M40271</guid>
      <dc:creator>Rezaul_R_</dc:creator>
      <dc:date>2015-09-17T01:13:39Z</dc:date>
    </item>
    <item>
      <title>I am using the 16.0 compiler.</title>
      <link>https://community.intel.com/t5/Software-Archive/OpenMP-4-0-target-offload-Report/m-p/1026460#M40272</link>
      <description>&lt;P&gt;I am using the 16.0 compiler. &amp;nbsp;The support for "always" does not exist in 15.0&lt;/P&gt;

&lt;P&gt;You would need to split the pragma in to 3 pragmas&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 12px; line-height: 18px;"&gt;#pragma omp target update to(x,y)&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;
	&lt;SPAN style="font-size: 12px; line-height: 18px;"&gt;#pragma omp target&amp;nbsp;&lt;BR /&gt;
	{&lt;BR /&gt;
	}&lt;/SPAN&gt;&lt;BR /&gt;
	&lt;SPAN style="font-size: 12px; line-height: 18px;"&gt;#pragma omp target update from(y)&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;Regarding &amp;nbsp;signal 11, &amp;nbsp;if you send me the test case I can investigate the cause of the problem.&lt;/P&gt;</description>
      <pubDate>Thu, 17 Sep 2015 16:47:55 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/OpenMP-4-0-target-offload-Report/m-p/1026460#M40272</guid>
      <dc:creator>Ravi_N_Intel</dc:creator>
      <dc:date>2015-09-17T16:47:55Z</dc:date>
    </item>
    <item>
      <title>Hi Ravi,</title>
      <link>https://community.intel.com/t5/Software-Archive/OpenMP-4-0-target-offload-Report/m-p/1026461#M40273</link>
      <description>&lt;P&gt;Hi Ravi,&lt;/P&gt;

&lt;P&gt;With&amp;nbsp;&lt;SPAN style="color: rgb(34, 34, 34); font-family: arial, sans-serif; font-size: 12px; line-height: 18px;"&gt;#pragma omp target update, I can run omp target offload without any issue. It doesn't create signal 11.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;Thank you so much for your help.&lt;/P&gt;

&lt;P&gt;- Raju&lt;/P&gt;</description>
      <pubDate>Thu, 17 Sep 2015 21:15:08 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/OpenMP-4-0-target-offload-Report/m-p/1026461#M40273</guid>
      <dc:creator>Rezaul_R_</dc:creator>
      <dc:date>2015-09-17T21:15:08Z</dc:date>
    </item>
    <item>
      <title>The compiler defect that Ravi</title>
      <link>https://community.intel.com/t5/Software-Archive/OpenMP-4-0-target-offload-Report/m-p/1026462#M40274</link>
      <description>&lt;P&gt;The compiler defect that Ravi described in post #6 has been recorded in our internal tracking system (see id noted below). We will update this thread when the fix for this issue is available in an external release.&lt;/P&gt;

&lt;P&gt;(Internal tracking id: DPD200376293)&lt;/P&gt;</description>
      <pubDate>Sat, 19 Sep 2015 12:09:35 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/OpenMP-4-0-target-offload-Report/m-p/1026462#M40274</guid>
      <dc:creator>Kevin_D_Intel</dc:creator>
      <dc:date>2015-09-19T12:09:35Z</dc:date>
    </item>
  </channel>
</rss>

