<?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 Cilk offloading in Software Archive</title>
    <link>https://community.intel.com/t5/Software-Archive/Cilk-offloading/m-p/945836#M18268</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I am new to cilk and trying to write a test code to offload cilk section. The code is as follows:&lt;/P&gt;
&lt;P&gt;[cpp]&lt;/P&gt;
&lt;P&gt;#include &amp;lt;stdio.h&amp;gt;&lt;BR /&gt;#include &amp;lt;stdlib.h&amp;gt;&lt;BR /&gt;#include &amp;lt;cilk/cilk.h&amp;gt;&lt;BR /&gt;#define ARRAY_SIZE 10&lt;/P&gt;
&lt;P&gt;typedef struct test{&lt;BR /&gt; int x;&lt;BR /&gt; float *v;&lt;BR /&gt; } TEST;&lt;/P&gt;
&lt;P&gt;void _Cilk_shared InitTest(TEST *t, int n);&lt;BR /&gt;TEST *_Cilk_shared t;&lt;/P&gt;
&lt;P&gt;void _Cilk_shared InitTest(TEST *t, int n)&lt;BR /&gt;{&lt;BR /&gt; int i,j;&lt;/P&gt;
&lt;P&gt;for(j=0; j&amp;lt;n; j++)&lt;BR /&gt; t-&amp;gt;v&lt;J&gt; = n*j;&lt;BR /&gt;}&lt;/J&gt;&lt;/P&gt;
&lt;P&gt;int main(int argc, char* argv[])&lt;BR /&gt;{&lt;BR /&gt; int i, j, k;&lt;/P&gt;
&lt;P&gt;i = ARRAY_SIZE;&lt;BR /&gt; if(argc == 2)&lt;BR /&gt; sscanf(argv[1],"%d",&amp;amp;i);&lt;/P&gt;
&lt;P&gt;t = (TEST *_Cilk_shared)_Offload_shared_malloc(i*sizeof(TEST));&lt;/P&gt;
&lt;P&gt;for(j=0; j&amp;lt;i; j++)&lt;BR /&gt; t&lt;J&gt;.v =(float*)calloc(i,sizeof(float));&lt;/J&gt;&lt;/P&gt;
&lt;P&gt;_Cilk_offload _Cilk_for (j=0; j&amp;lt;i; j++)&lt;BR /&gt; {&lt;BR /&gt; InitTest(&amp;amp;t&lt;J&gt;, i);&lt;BR /&gt; }&lt;/J&gt;&lt;/P&gt;
&lt;P&gt;for(j=0; j&amp;lt;i; j++)&lt;BR /&gt; {&lt;BR /&gt; for(k=0; k&amp;lt;i; k++)&lt;BR /&gt; printf("\t %f",t&lt;J&gt;.v&lt;K&gt;);&lt;BR /&gt; }&lt;/K&gt;&lt;/J&gt;&lt;/P&gt;
&lt;P&gt;return 0;&lt;BR /&gt;}&lt;/P&gt;
&lt;P&gt;[/cpp]&lt;/P&gt;
&lt;P&gt;But while compiling it is giving following error :&lt;/P&gt;
&lt;P&gt;cilkShared.c(37): error: pointer reference within _Cilk_offload _Cilk_for loop is not pointer-to-shared&lt;BR /&gt; InitTest(&amp;amp;t&lt;J&gt;, i);&lt;BR /&gt; ^&lt;/J&gt;&lt;/P&gt;
&lt;P&gt;compilation aborted for cilkShared_ask.c (code 2)&lt;/P&gt;
&lt;P&gt;Kindly help me to resolve the issue.&lt;/P&gt;
&lt;P&gt;-Abhishek&lt;/P&gt;</description>
    <pubDate>Wed, 10 Jul 2013 11:36:59 GMT</pubDate>
    <dc:creator>Abhishek_S_7</dc:creator>
    <dc:date>2013-07-10T11:36:59Z</dc:date>
    <item>
      <title>Cilk offloading</title>
      <link>https://community.intel.com/t5/Software-Archive/Cilk-offloading/m-p/945836#M18268</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I am new to cilk and trying to write a test code to offload cilk section. The code is as follows:&lt;/P&gt;
&lt;P&gt;[cpp]&lt;/P&gt;
&lt;P&gt;#include &amp;lt;stdio.h&amp;gt;&lt;BR /&gt;#include &amp;lt;stdlib.h&amp;gt;&lt;BR /&gt;#include &amp;lt;cilk/cilk.h&amp;gt;&lt;BR /&gt;#define ARRAY_SIZE 10&lt;/P&gt;
&lt;P&gt;typedef struct test{&lt;BR /&gt; int x;&lt;BR /&gt; float *v;&lt;BR /&gt; } TEST;&lt;/P&gt;
&lt;P&gt;void _Cilk_shared InitTest(TEST *t, int n);&lt;BR /&gt;TEST *_Cilk_shared t;&lt;/P&gt;
&lt;P&gt;void _Cilk_shared InitTest(TEST *t, int n)&lt;BR /&gt;{&lt;BR /&gt; int i,j;&lt;/P&gt;
&lt;P&gt;for(j=0; j&amp;lt;n; j++)&lt;BR /&gt; t-&amp;gt;v&lt;J&gt; = n*j;&lt;BR /&gt;}&lt;/J&gt;&lt;/P&gt;
&lt;P&gt;int main(int argc, char* argv[])&lt;BR /&gt;{&lt;BR /&gt; int i, j, k;&lt;/P&gt;
&lt;P&gt;i = ARRAY_SIZE;&lt;BR /&gt; if(argc == 2)&lt;BR /&gt; sscanf(argv[1],"%d",&amp;amp;i);&lt;/P&gt;
&lt;P&gt;t = (TEST *_Cilk_shared)_Offload_shared_malloc(i*sizeof(TEST));&lt;/P&gt;
&lt;P&gt;for(j=0; j&amp;lt;i; j++)&lt;BR /&gt; t&lt;J&gt;.v =(float*)calloc(i,sizeof(float));&lt;/J&gt;&lt;/P&gt;
&lt;P&gt;_Cilk_offload _Cilk_for (j=0; j&amp;lt;i; j++)&lt;BR /&gt; {&lt;BR /&gt; InitTest(&amp;amp;t&lt;J&gt;, i);&lt;BR /&gt; }&lt;/J&gt;&lt;/P&gt;
&lt;P&gt;for(j=0; j&amp;lt;i; j++)&lt;BR /&gt; {&lt;BR /&gt; for(k=0; k&amp;lt;i; k++)&lt;BR /&gt; printf("\t %f",t&lt;J&gt;.v&lt;K&gt;);&lt;BR /&gt; }&lt;/K&gt;&lt;/J&gt;&lt;/P&gt;
&lt;P&gt;return 0;&lt;BR /&gt;}&lt;/P&gt;
&lt;P&gt;[/cpp]&lt;/P&gt;
&lt;P&gt;But while compiling it is giving following error :&lt;/P&gt;
&lt;P&gt;cilkShared.c(37): error: pointer reference within _Cilk_offload _Cilk_for loop is not pointer-to-shared&lt;BR /&gt; InitTest(&amp;amp;t&lt;J&gt;, i);&lt;BR /&gt; ^&lt;/J&gt;&lt;/P&gt;
&lt;P&gt;compilation aborted for cilkShared_ask.c (code 2)&lt;/P&gt;
&lt;P&gt;Kindly help me to resolve the issue.&lt;/P&gt;
&lt;P&gt;-Abhishek&lt;/P&gt;</description>
      <pubDate>Wed, 10 Jul 2013 11:36:59 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Cilk-offloading/m-p/945836#M18268</guid>
      <dc:creator>Abhishek_S_7</dc:creator>
      <dc:date>2013-07-10T11:36:59Z</dc:date>
    </item>
    <item>
      <title>Here is some changes to your</title>
      <link>https://community.intel.com/t5/Software-Archive/Cilk-offloading/m-p/945837#M18269</link>
      <description>&lt;P&gt;Here is some changes to your code&lt;/P&gt;
&lt;P&gt;#include &amp;lt;stdio.h&amp;gt;&lt;BR /&gt;#include &amp;lt;stdlib.h&amp;gt;&lt;BR /&gt;#include &amp;lt;cilk/cilk.h&amp;gt;&lt;BR /&gt;#define ARRAY_SIZE 10&lt;BR /&gt;typedef struct test{&lt;BR /&gt;&amp;nbsp;int x;&lt;BR /&gt;&amp;nbsp;float *v;&lt;BR /&gt;&amp;nbsp;} TEST;&lt;BR /&gt;void _Cilk_shared InitTest(TEST *t, int n);&lt;BR /&gt;&lt;STRONG&gt;_Cilk_shared TEST *_Cilk_shared t;&lt;/STRONG&gt;&lt;BR /&gt;void _Cilk_shared InitTest(TEST *t, int n)&lt;BR /&gt;{&lt;BR /&gt;&amp;nbsp;int i,j;&lt;BR /&gt;for(j=0; j&amp;lt;n; j++)&lt;BR /&gt;&amp;nbsp;t-&amp;gt;v&lt;J&gt; = n*j;&lt;BR /&gt;}&lt;BR /&gt;int main(int argc, char* argv[])&lt;BR /&gt;{&lt;BR /&gt;&amp;nbsp;int i, j, k;&lt;BR /&gt;i = ARRAY_SIZE;&lt;BR /&gt;&amp;nbsp;if(argc == 2)&lt;BR /&gt;&amp;nbsp;sscanf(argv[1],"%d",&amp;amp;i);&lt;BR /&gt;&lt;STRONG&gt;t = (_Cilk_shared TEST *_Cilk_shared)_Offload_shared_malloc(i*sizeof(TEST));&lt;/STRONG&gt;&lt;BR /&gt;for(j=0; j&amp;lt;i; j++)&lt;BR /&gt;&lt;STRONG&gt;&amp;nbsp;t&lt;J&gt;.v = (float *)_Offload_shared_malloc(i*sizeof(float));&lt;/J&gt;&lt;/STRONG&gt;&lt;BR /&gt;_Cilk_offload _Cilk_for (j=0; j&amp;lt;i; j++)&lt;BR /&gt;&amp;nbsp;{&lt;BR /&gt;&amp;nbsp;InitTest(&amp;amp;t&lt;J&gt;, i);&lt;BR /&gt;&amp;nbsp;}&lt;BR /&gt;for(j=0; j&amp;lt;i; j++)&lt;BR /&gt;&amp;nbsp;{&lt;BR /&gt;&amp;nbsp;for(k=0; k&amp;lt;i; k++)&lt;BR /&gt;&amp;nbsp;printf("t %f",t&lt;J&gt;.v&lt;K&gt;);&lt;BR /&gt;&amp;nbsp;}&lt;BR /&gt;return 0;&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;&lt;/K&gt;&lt;/J&gt;&lt;/J&gt;&lt;/J&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Jul 2013 20:44:42 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Cilk-offloading/m-p/945837#M18269</guid>
      <dc:creator>Ravi_N_Intel</dc:creator>
      <dc:date>2013-07-10T20:44:42Z</dc:date>
    </item>
    <item>
      <title>Thanks Ravi
-Abhishek</title>
      <link>https://community.intel.com/t5/Software-Archive/Cilk-offloading/m-p/945838#M18270</link>
      <description>&lt;P&gt;Thanks Ravi&lt;/P&gt;
&lt;P&gt;-Abhishek&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jul 2013 09:01:44 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Cilk-offloading/m-p/945838#M18270</guid>
      <dc:creator>Abhishek_S_7</dc:creator>
      <dc:date>2013-07-11T09:01:44Z</dc:date>
    </item>
    <item>
      <title>Dear guys,</title>
      <link>https://community.intel.com/t5/Software-Archive/Cilk-offloading/m-p/945839#M18271</link>
      <description>&lt;P&gt;Dear All,&lt;/P&gt;

&lt;P&gt;I am new to cilk,&lt;/P&gt;

&lt;P&gt;I ran the last code on my node and got the following error:&lt;/P&gt;

&lt;P&gt;main.cpp(10): error: variable t may not be marked _Cilk_shared and have "target" attribute&lt;BR /&gt;
	&amp;nbsp; _Cilk_shared TEST *_Cilk_shared t;&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; ^&lt;/P&gt;

&lt;P&gt;main.cpp(11): error: routine InitTest may not be marked _Cilk_shared and have "target" attribute&lt;BR /&gt;
	&amp;nbsp; void _Cilk_shared InitTest(TEST *t, int n)&lt;/P&gt;

&lt;P&gt;Would you please tell me what's wrong?&lt;/P&gt;

&lt;P&gt;Best regards.&lt;/P&gt;</description>
      <pubDate>Tue, 21 Oct 2014 14:43:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Cilk-offloading/m-p/945839#M18271</guid>
      <dc:creator>mohamad_a_</dc:creator>
      <dc:date>2014-10-21T14:43:00Z</dc:date>
    </item>
    <item>
      <title>Please post the parts of your</title>
      <link>https://community.intel.com/t5/Software-Archive/Cilk-offloading/m-p/945840#M18272</link>
      <description>&lt;P&gt;Please post the parts of your code that are relevant so that we can see the context of the errors instead of just giving you guesses.&lt;/P&gt;

&lt;P&gt;Regards&lt;BR /&gt;
	--&lt;BR /&gt;
	Taylor&lt;BR /&gt;
	&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Oct 2014 22:09:15 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Cilk-offloading/m-p/945840#M18272</guid>
      <dc:creator>TaylorIoTKidd</dc:creator>
      <dc:date>2014-10-21T22:09:15Z</dc:date>
    </item>
    <item>
      <title>Dear Taylor,</title>
      <link>https://community.intel.com/t5/Software-Archive/Cilk-offloading/m-p/945841#M18273</link>
      <description>&lt;P&gt;Dear Taylor,&lt;/P&gt;

&lt;P&gt;I used the same code as&lt;A href="https://software.intel.com/en-us/user/336351"&gt; Ravi.&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;I ran the code with "icpc version 14.0.0":&lt;/P&gt;

&lt;P&gt;All the best&lt;/P&gt;</description>
      <pubDate>Wed, 22 Oct 2014 07:08:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Cilk-offloading/m-p/945841#M18273</guid>
      <dc:creator>mohamad_a_</dc:creator>
      <dc:date>2014-10-22T07:08:00Z</dc:date>
    </item>
    <item>
      <title>The code Ravi posted compiles</title>
      <link>https://community.intel.com/t5/Software-Archive/Cilk-offloading/m-p/945842#M18274</link>
      <description>&lt;P&gt;The code Ravi posted compiles successfully for me with all 14.0 compilers released to date and our latest 15.0 compiler.&lt;/P&gt;

&lt;P&gt;Please double check that your code matches Ravi's and if so then please show the actual compiler command line you used along with the output of the command: &lt;STRONG&gt;icpc -V&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Oct 2014 08:09:39 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Cilk-offloading/m-p/945842#M18274</guid>
      <dc:creator>Kevin_D_Intel</dc:creator>
      <dc:date>2014-10-22T08:09:39Z</dc:date>
    </item>
    <item>
      <title>Thanks Kevin,</title>
      <link>https://community.intel.com/t5/Software-Archive/Cilk-offloading/m-p/945843#M18275</link>
      <description>&lt;P&gt;Thanks Kevin,&lt;/P&gt;

&lt;P&gt;I checked the code again. It was the same.&lt;/P&gt;

&lt;P&gt;The icpc -V:&lt;BR /&gt;
	Intel(R) C++ Intel(R) 64 Compiler XE for applications running on Intel(R) 64, Version 14.0.0.080 Build 20130728&lt;BR /&gt;
	Copyright (C) 1985-2013 Intel Corporation.&amp;nbsp; All rights reserved.&lt;/P&gt;

&lt;P&gt;The command line:&lt;/P&gt;

&lt;P&gt;icpc -c -g&amp;nbsp; -I/opt/intel/composer_xe_2013_sp1.0.080/mkl/include -offload-attribute-target=mic&amp;nbsp; -O3 -vec-report3 -restrict -fno-alias -fargument-noalias -ansi-alias -opt-report-phase=offload&amp;nbsp; -openmp&amp;nbsp; main.cpp&lt;/P&gt;

&lt;P&gt;All the best&lt;/P&gt;</description>
      <pubDate>Wed, 22 Oct 2014 08:29:22 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Cilk-offloading/m-p/945843#M18275</guid>
      <dc:creator>mohamad_a_</dc:creator>
      <dc:date>2014-10-22T08:29:22Z</dc:date>
    </item>
    <item>
      <title>Ok. The error occurs due to</title>
      <link>https://community.intel.com/t5/Software-Archive/Cilk-offloading/m-p/945844#M18276</link>
      <description>&lt;P&gt;Ok. The error occurs due to your applying the target attribute over the top of the &lt;STRONG&gt;_Cilk_shared&lt;/STRONG&gt; attribute (and all variables in the source file) via the command line with the option: &lt;STRONG&gt;-offload-attribute-target=mic&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;That option is not appropriate for the code Ravi posted.&lt;/P&gt;</description>
      <pubDate>Wed, 22 Oct 2014 08:39:09 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Cilk-offloading/m-p/945844#M18276</guid>
      <dc:creator>Kevin_D_Intel</dc:creator>
      <dc:date>2014-10-22T08:39:09Z</dc:date>
    </item>
    <item>
      <title>Thanks Kevin,</title>
      <link>https://community.intel.com/t5/Software-Archive/Cilk-offloading/m-p/945845#M18277</link>
      <description>&lt;P&gt;Thanks Kevin,&lt;/P&gt;

&lt;P&gt;It works without the option.&lt;/P&gt;

&lt;P&gt;I have a question: Can we have a report here for "cilk", something like "offload report"?&lt;/P&gt;</description>
      <pubDate>Wed, 22 Oct 2014 09:01:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Cilk-offloading/m-p/945845#M18277</guid>
      <dc:creator>mohamad_a_</dc:creator>
      <dc:date>2014-10-22T09:01:00Z</dc:date>
    </item>
    <item>
      <title>The OFFLOAD_REPORT</title>
      <link>https://community.intel.com/t5/Software-Archive/Cilk-offloading/m-p/945846#M18278</link>
      <description>&lt;P&gt;The &lt;STRONG&gt;OFFLOAD_REPORT&lt;/STRONG&gt; environment variable provides run-time details for &lt;STRONG&gt;_CIlk_offload/_Cilk_offload_to&lt;/STRONG&gt;. The option &lt;STRONG&gt;-opt-report-phase=offload&lt;/STRONG&gt; provides limited info on &lt;STRONG&gt;_Cilk_offload/_Cilk_shared&lt;/STRONG&gt; directives.&lt;/P&gt;

&lt;P&gt;What specific information in terms of a report are you interested in?&lt;/P&gt;</description>
      <pubDate>Wed, 22 Oct 2014 09:25:23 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Cilk-offloading/m-p/945846#M18278</guid>
      <dc:creator>Kevin_D_Intel</dc:creator>
      <dc:date>2014-10-22T09:25:23Z</dc:date>
    </item>
    <item>
      <title>Thanks Kevin,</title>
      <link>https://community.intel.com/t5/Software-Archive/Cilk-offloading/m-p/945847#M18279</link>
      <description>&lt;P&gt;Thanks Kevin,&lt;/P&gt;

&lt;P&gt;Running the above code, I have the "&lt;STRONG&gt;export OFFLOAD_REPORT=2&lt;/STRONG&gt;" on my Makefile too.&lt;/P&gt;

&lt;P&gt;Shouldn't I expect an offload report because of the following part of the code?&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;_Cilk_offload&lt;/STRONG&gt; _Cilk_for (j=0; j&amp;lt;i; j++)&lt;BR /&gt;
	&amp;nbsp;{&lt;BR /&gt;
	&lt;STRONG&gt;&amp;nbsp;InitTest&lt;/STRONG&gt;(&amp;amp;t&lt;J&gt;, i);&lt;BR /&gt;
	&amp;nbsp;}&lt;/J&gt;&lt;/P&gt;

&lt;P&gt;But I don't have any offload report here!&lt;/P&gt;</description>
      <pubDate>Wed, 22 Oct 2014 09:59:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Cilk-offloading/m-p/945847#M18279</guid>
      <dc:creator>mohamad_a_</dc:creator>
      <dc:date>2014-10-22T09:59:00Z</dc:date>
    </item>
    <item>
      <title>Sorry, only OFFLOAD_REPORT=3</title>
      <link>https://community.intel.com/t5/Software-Archive/Cilk-offloading/m-p/945848#M18280</link>
      <description>&lt;P&gt;Sorry, only &lt;STRONG&gt;OFFLOAD_REPORT=3&lt;/STRONG&gt; returns details for the virtual shared model. It appears we overlooked that detail in our User's Guide so we will correct that.&lt;/P&gt;</description>
      <pubDate>Wed, 22 Oct 2014 10:13:20 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Cilk-offloading/m-p/945848#M18280</guid>
      <dc:creator>Kevin_D_Intel</dc:creator>
      <dc:date>2014-10-22T10:13:20Z</dc:date>
    </item>
    <item>
      <title>Great,</title>
      <link>https://community.intel.com/t5/Software-Archive/Cilk-offloading/m-p/945849#M18281</link>
      <description>&lt;P&gt;Great,&lt;/P&gt;

&lt;P&gt;Thanks a lot Kevin.&lt;/P&gt;

&lt;P&gt;Now I have the following from&lt;STRONG&gt; OFFLOAD_REPORT=3&lt;/STRONG&gt;:&lt;/P&gt;

&lt;P&gt;[Offload] [HOST]&amp;nbsp; [State]&amp;nbsp;&amp;nbsp; Initialize logical card 0 = physical card 0&lt;BR /&gt;
	[Offload] [MIC 0] [State]&amp;nbsp;&amp;nbsp; MIC MYO shared table register t_41db1a6c422b8b58b0bd6ddde933a47f_myo_ptr&lt;BR /&gt;
	[Offload] [MIC 0] [State]&amp;nbsp;&amp;nbsp; MIC MYO fptr table register op_fncall_b4e068a4da6dbef9373d8285e48e052a&lt;BR /&gt;
	[Offload] [MIC 0] [State]&amp;nbsp;&amp;nbsp; MIC MYO fptr table register InitTest_1fd31af90aca81305f8009f418bb567d&lt;BR /&gt;
	[Offload] [HOST]&amp;nbsp; [State]&amp;nbsp;&amp;nbsp; Initialize MYO&lt;BR /&gt;
	[Offload] [HOST]&amp;nbsp; [State]&amp;nbsp;&amp;nbsp; MYO shared aligned malloc 8 8&lt;BR /&gt;
	[Offload] [HOST]&amp;nbsp; [State]&amp;nbsp;&amp;nbsp; Register MYO tables&lt;BR /&gt;
	[Offload] [HOST]&amp;nbsp; [State]&amp;nbsp;&amp;nbsp; MYO shared malloc 160&lt;BR /&gt;
	[Offload] [HOST]&amp;nbsp; [State]&amp;nbsp;&amp;nbsp; MYO shared malloc 40&lt;BR /&gt;
	[Offload] [HOST]&amp;nbsp; [State]&amp;nbsp;&amp;nbsp; MYO shared malloc 40&lt;BR /&gt;
	[Offload] [HOST]&amp;nbsp; [State]&amp;nbsp;&amp;nbsp; MYO shared malloc 40&lt;BR /&gt;
	[Offload] [HOST]&amp;nbsp; [State]&amp;nbsp;&amp;nbsp; MYO shared malloc 40&lt;BR /&gt;
	[Offload] [HOST]&amp;nbsp; [State]&amp;nbsp;&amp;nbsp; MYO shared malloc 40&lt;BR /&gt;
	[Offload] [HOST]&amp;nbsp; [State]&amp;nbsp;&amp;nbsp; MYO shared malloc 40&lt;BR /&gt;
	[Offload] [HOST]&amp;nbsp; [State]&amp;nbsp;&amp;nbsp; MYO shared malloc 40&lt;BR /&gt;
	[Offload] [HOST]&amp;nbsp; [State]&amp;nbsp;&amp;nbsp; MYO shared malloc 40&lt;BR /&gt;
	[Offload] [HOST]&amp;nbsp; [State]&amp;nbsp;&amp;nbsp; MYO shared malloc 40&lt;BR /&gt;
	[Offload] [HOST]&amp;nbsp; [State]&amp;nbsp;&amp;nbsp; MYO shared malloc 40&lt;BR /&gt;
	[Offload] [HOST]&amp;nbsp; [State]&amp;nbsp;&amp;nbsp; MYO shared malloc 24&lt;BR /&gt;
	[Offload] [HOST]&amp;nbsp; [State]&amp;nbsp;&amp;nbsp; MYO release&lt;BR /&gt;
	[Offload] [HOST]&amp;nbsp; [State]&amp;nbsp;&amp;nbsp; MYO acquire&lt;BR /&gt;
	[Offload] [HOST]&amp;nbsp; [State]&amp;nbsp;&amp;nbsp; MYO shared free&lt;BR /&gt;
	[Offload] [HOST]&amp;nbsp; [State]&amp;nbsp;&amp;nbsp; Finalize MYO&lt;BR /&gt;
	[Offload] [MIC 0] [State]&amp;nbsp;&amp;nbsp; Unregister data tables&lt;BR /&gt;
	[Offload] [HOST]&amp;nbsp; [State]&amp;nbsp;&amp;nbsp; Unregister data tables&lt;/P&gt;

&lt;P&gt;I am sorry, can we know even more, e.g. &lt;STRONG&gt;synchronization timing&lt;/STRONG&gt;?&lt;/P&gt;</description>
      <pubDate>Wed, 22 Oct 2014 10:19:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Cilk-offloading/m-p/945849#M18281</guid>
      <dc:creator>mohamad_a_</dc:creator>
      <dc:date>2014-10-22T10:19:00Z</dc:date>
    </item>
    <item>
      <title>Any other information for</title>
      <link>https://community.intel.com/t5/Software-Archive/Cilk-offloading/m-p/945850#M18282</link>
      <description>&lt;P&gt;Any other information for virtual shared model except from&lt;/P&gt;

&lt;P&gt;the option &lt;STRONG&gt;-opt-report-phase=offload&lt;/STRONG&gt; or setting the &lt;STRONG&gt;export OFFLOAD_REPORT=3&lt;/STRONG&gt; ?&lt;/P&gt;</description>
      <pubDate>Thu, 23 Oct 2014 10:15:39 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Cilk-offloading/m-p/945850#M18282</guid>
      <dc:creator>mohamad_a_</dc:creator>
      <dc:date>2014-10-23T10:15:39Z</dc:date>
    </item>
    <item>
      <title>No.
	 </title>
      <link>https://community.intel.com/t5/Software-Archive/Cilk-offloading/m-p/945851#M18283</link>
      <description>&lt;P&gt;No.&lt;BR /&gt;
	&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 24 Oct 2014 08:20:24 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Cilk-offloading/m-p/945851#M18283</guid>
      <dc:creator>Kevin_D_Intel</dc:creator>
      <dc:date>2014-10-24T08:20:24Z</dc:date>
    </item>
    <item>
      <title>Thank you
All the best</title>
      <link>https://community.intel.com/t5/Software-Archive/Cilk-offloading/m-p/945852#M18284</link>
      <description>&lt;P&gt;Thanks&lt;/P&gt;

&lt;P&gt;All the best&lt;/P&gt;</description>
      <pubDate>Fri, 24 Oct 2014 12:07:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Cilk-offloading/m-p/945852#M18284</guid>
      <dc:creator>mohamad_a_</dc:creator>
      <dc:date>2014-10-24T12:07:00Z</dc:date>
    </item>
    <item>
      <title>Dear All,</title>
      <link>https://community.intel.com/t5/Software-Archive/Cilk-offloading/m-p/945853#M18285</link>
      <description>&lt;P&gt;Dear All,&lt;/P&gt;

&lt;P&gt;I am a little confused undrestanding the above report from&lt;STRONG&gt; OFFLOAD_REPORT=3&lt;/STRONG&gt; completely,&lt;/P&gt;

&lt;P&gt;especially for these two lines:&lt;/P&gt;

&lt;P&gt;[Offload] [HOST]&amp;nbsp; [State]&amp;nbsp;&amp;nbsp; MYO shared aligned malloc 8 8&lt;BR /&gt;
	[Offload] [HOST]&amp;nbsp; [State]&amp;nbsp;&amp;nbsp; MYO shared malloc 24&lt;/P&gt;

&lt;P&gt;Would you please help me out?&lt;/P&gt;</description>
      <pubDate>Tue, 28 Oct 2014 09:58:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Cilk-offloading/m-p/945853#M18285</guid>
      <dc:creator>mohamad_a_</dc:creator>
      <dc:date>2014-10-28T09:58:00Z</dc:date>
    </item>
    <item>
      <title>Here's an annotation of the</title>
      <link>https://community.intel.com/t5/Software-Archive/Cilk-offloading/m-p/945854#M18286</link>
      <description>&lt;P&gt;Here's an annotation of the report from the 15.0 compiler for the source shown below.&lt;/P&gt;

&lt;PRE class="brush:cpp;"&gt;#include &amp;lt;stdio.h&amp;gt;
#include &amp;lt;stdlib.h&amp;gt;
#include &amp;lt;cilk/cilk.h&amp;gt;
#define ARRAY_SIZE 10
typedef struct test{
 int x;
 float *v;
 } TEST;
void _Cilk_shared InitTest(TEST *t, int n);
_Cilk_shared TEST *_Cilk_shared t;
void _Cilk_shared InitTest(TEST *t, int n)
{
 int i,j;
for(j=0; j&amp;lt;n; j++)
 t-&amp;gt;v&lt;J&gt; = n*j;
}
int main(int argc, char* argv[])
{
 int i, j, k;
i = ARRAY_SIZE;
 if(argc == 2)
 sscanf(argv[1],"%d",&amp;amp;i);
t = (_Cilk_shared TEST *_Cilk_shared)_Offload_shared_malloc(i*sizeof(TEST));
for(j=0; j&amp;lt;i; j++)
 t&lt;J&gt;.v = (float *)_Offload_shared_malloc(i*sizeof(float));
_Cilk_offload _Cilk_for (j=0; j&amp;lt;i; j++)
 {
 InitTest(&amp;amp;t&lt;J&gt;, i);
 }
fflush(0);
for(j=0; j&amp;lt;i; j++)
 {
 for(k=0; k&amp;lt;i; k++)
 printf("t %f",t&lt;J&gt;.v&lt;K&gt;);
 }
return 0;
}&lt;/K&gt;&lt;/J&gt;&lt;/J&gt;&lt;/J&gt;&lt;/J&gt;&lt;/PRE&gt;

&lt;P&gt;Some data table entries displayed by the 14.0 compiler/run-time that were not generally useful were removed in the current release.&lt;/P&gt;

&lt;PRE class="brush:bash;"&gt;$ icpc -V
Intel(R) C++ Intel(R) 64 Compiler XE for applications running on Intel(R) 64, Version 15.0.0.090 Build 20140723
Copyright (C) 1985-2014 Intel Corporation.  All rights reserved.

$ icpc u401262.cpp
$ export OFFLOAD_REPORT=3
$ ./a.out

// Allocation associated with source line 10
// 10:    _Cilk_shared TEST *_Cilk_shared t;

[Offload] [HOST]          [State]           MYO shared aligned malloc 8 8

// Internal MYO tables that support virtual shared memory

[Offload] [HOST]          [State]           Register MYO tables

// Corresponds to malloc on line 23
//   23:  t = (_Cilk_shared TEST *_Cilk_shared)_Offload_shared_malloc(i*sizeof(TEST));

[Offload] [HOST]          [State]           MYO shared malloc 160

// The next malloc series corresponds to the for loop at lines 24-25 including the shared_malloc 

[Offload] [HOST]          [State]           MYO shared malloc 40
[Offload] [HOST]          [State]           MYO shared malloc 40
[Offload] [HOST]          [State]           MYO shared malloc 40
[Offload] [HOST]          [State]           MYO shared malloc 40
[Offload] [HOST]          [State]           MYO shared malloc 40
[Offload] [HOST]          [State]           MYO shared malloc 40
[Offload] [HOST]          [State]           MYO shared malloc 40
[Offload] [HOST]          [State]           MYO shared malloc 40
[Offload] [HOST]          [State]           MYO shared malloc 40
[Offload] [HOST]          [State]           MYO shared malloc 40

// Acquire the coprocessor and initialize for use

[Offload] [HOST]          [State]           Initialize logical card 0 = physical card 0

// Initialize Virtual shared run-time - shared memory allocation and other
// bookkeeping for shared memory management

[Offload] [HOST]          [State]           Initialize MYO

// Internal allocation for passing information for Cilk_shared Cilk_for execution on the coprocessor

[Offload] [HOST]          [State]           MYO shared malloc 24

// At every offload, host notifies coprocessor shared memory can be synced up &lt;STRONG&gt;TO &lt;/STRONG&gt;the coprocessor (MYO release) 
// and after the offload the host memory is synced up &lt;STRONG&gt;FROM &lt;/STRONG&gt;the coprocessor (MYO acquire)

[Offload] [HOST]          [State]           MYO release
[Offload] [HOST]          [State]           MYO acquire

// Free previous internal allocation (malloc 24)

[Offload] [HOST]          [State]           MYO shared free

// User program output per for loop at lines 32-34

t 0.000000t 10.000000t 20.000000t 30.000000t 40.000000t 50.000000t 60.000000t 70.000000t 80.000000t 90.000000t 0.000000t 10.000000
t 20.000000t 30.000000t 40.000000t 50.000000t 60.000000t 70.000000t 80.000000t 90.000000t 0.000000t 10.000000t 20.000000t 30.000000
t 40.000000t 50.000000t 60.000000t 70.000000t 80.000000t 90.000000t 0.000000t 10.000000t 20.000000t 30.000000t 40.000000t 50.000000
t 60.000000t 70.000000t 80.000000t 90.000000t 0.000000t 10.000000t 20.000000t 30.000000t 40.000000t 50.000000t 60.000000t 70.000000
t 80.000000t 90.000000t 0.000000t 10.000000t 20.000000t 30.000000t 40.000000t 50.000000t 60.000000t 70.000000t 80.000000t 90.000000
t 0.000000t 10.000000t 20.000000t 30.000000t 40.000000t 50.000000t 60.000000t 70.000000t 80.000000t 90.000000t 0.000000t 10.000000
t 20.000000t 30.000000t 40.000000t 50.000000t 60.000000t 70.000000t 80.000000t 90.000000t 0.000000t 10.000000t 20.000000t 30.000000
t 40.000000t 50.000000t 60.000000t 70.000000t 80.000000t 90.000000t 0.000000t 10.000000t 20.000000t 30.000000t 40.000000t 50.000000
t 60.000000t 70.000000t 80.000000t 90.000000

// Finalize MYO execution with host program termination

[Offload] [HOST]          [State]           Finalize MYO&lt;/PRE&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Oct 2014 20:01:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Cilk-offloading/m-p/945854#M18286</guid>
      <dc:creator>Kevin_D_Intel</dc:creator>
      <dc:date>2014-10-30T20:01:00Z</dc:date>
    </item>
  </channel>
</rss>

