<?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 Hi Tim,  in Software Archive</title>
    <link>https://community.intel.com/t5/Software-Archive/Send-multiple-signals-in-single-offload/m-p/933183#M15286</link>
    <description>&lt;P&gt;Hi Tim,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I was looking through the compiler reference (&amp;nbsp;&lt;A href="http://software.intel.com/sites/products/documentation/doclib/stdxe/2013/composerxe/compiler/cpp-lin/GUID-EAB414FD-40C6-4054-B094-0BA70824E2A2.htm"&gt;http://software.intel.com/sites/products/documentation/doclib/stdxe/2013/composerxe/compiler/cpp-lin/GUID-EAB414FD-40C6-4054-B094-0BA70824E2A2.htm&lt;/A&gt;) for offload and I noticed that the signal specifier accepts only a single tag and hence I believe that you cannot send multiple signals from the same pragma.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;One possible workaround could be to use an empty offload pragma which sets the signals. For example,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;[cpp]&lt;/P&gt;
&lt;P&gt;#pragma offload target(mic:0) signal(&amp;amp;m2)&lt;BR /&gt; {&lt;BR /&gt; }&lt;/P&gt;
&lt;P&gt;[/cpp]&lt;/P&gt;
&lt;P&gt;Hope this helps.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 19 Sep 2013 15:44:59 GMT</pubDate>
    <dc:creator>Sumedh_N_Intel</dc:creator>
    <dc:date>2013-09-19T15:44:59Z</dc:date>
    <item>
      <title>Send multiple signals in single offload</title>
      <link>https://community.intel.com/t5/Software-Archive/Send-multiple-signals-in-single-offload/m-p/933182#M15285</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Is it possible to send more than one signal with an offload pragma? According to this document:&amp;nbsp;https://www.tacc.utexas.edu/documents/13601/137150/Advanced+Offloading.pdf it is possible, however I get a compiler error using the syntax below, and I cannot have mutiple signal clauses in the offload pragma.&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;[cpp]&lt;/P&gt;
&lt;P&gt;int main(int argc, char* argv[])&lt;BR /&gt;{&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;int sig1, sig2;&lt;BR /&gt;int data = 1;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;#pragma offload_transfer target(mic:0) in(data) signal(&amp;amp;sig1, &amp;amp;sig2)&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;#pragma offload target(mic:0) nocopy(data) wait(&amp;amp;sig1)&lt;BR /&gt;{&lt;BR /&gt;&amp;nbsp; &amp;nbsp; printf("Data: %d",data);&lt;BR /&gt;}&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;return 0;&lt;/P&gt;
&lt;P&gt;}&lt;/P&gt;
&lt;P&gt;[/cpp]&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;If not, is there a way of preinitialising a signal as if it has already been 'signalled'? I have a loop that does various offloads with waits, and I want the signals that are being waited on to be true when i first enter the loop so that the first offloads actually run, as they then send the signal that will be waited on in the next iteration of the loop.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;I do an offload transfer before the loop runs, which I intended to use to transfer some initial parameter data as well as set those first two signals, i understand I could split the transfer in two and send one signal for each to achieve the same goal but is there a cleaner method of doing this with a single transfer?&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Thu, 19 Sep 2013 09:32:37 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Send-multiple-signals-in-single-offload/m-p/933182#M15285</guid>
      <dc:creator>Tim_D_1</dc:creator>
      <dc:date>2013-09-19T09:32:37Z</dc:date>
    </item>
    <item>
      <title>Hi Tim, </title>
      <link>https://community.intel.com/t5/Software-Archive/Send-multiple-signals-in-single-offload/m-p/933183#M15286</link>
      <description>&lt;P&gt;Hi Tim,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I was looking through the compiler reference (&amp;nbsp;&lt;A href="http://software.intel.com/sites/products/documentation/doclib/stdxe/2013/composerxe/compiler/cpp-lin/GUID-EAB414FD-40C6-4054-B094-0BA70824E2A2.htm"&gt;http://software.intel.com/sites/products/documentation/doclib/stdxe/2013/composerxe/compiler/cpp-lin/GUID-EAB414FD-40C6-4054-B094-0BA70824E2A2.htm&lt;/A&gt;) for offload and I noticed that the signal specifier accepts only a single tag and hence I believe that you cannot send multiple signals from the same pragma.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;One possible workaround could be to use an empty offload pragma which sets the signals. For example,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;[cpp]&lt;/P&gt;
&lt;P&gt;#pragma offload target(mic:0) signal(&amp;amp;m2)&lt;BR /&gt; {&lt;BR /&gt; }&lt;/P&gt;
&lt;P&gt;[/cpp]&lt;/P&gt;
&lt;P&gt;Hope this helps.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 19 Sep 2013 15:44:59 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Send-multiple-signals-in-single-offload/m-p/933183#M15286</guid>
      <dc:creator>Sumedh_N_Intel</dc:creator>
      <dc:date>2013-09-19T15:44:59Z</dc:date>
    </item>
    <item>
      <title>Ah okay I should have checked</title>
      <link>https://community.intel.com/t5/Software-Archive/Send-multiple-signals-in-single-offload/m-p/933184#M15287</link>
      <description>&lt;P&gt;Ah okay I should have checked the compiler ref manual, thanks Sumedh. I will use empty offload pragmas to pre-set the signals as you suggest.&lt;/P&gt;</description>
      <pubDate>Thu, 19 Sep 2013 16:38:53 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Send-multiple-signals-in-single-offload/m-p/933184#M15287</guid>
      <dc:creator>Tim_D_1</dc:creator>
      <dc:date>2013-09-19T16:38:53Z</dc:date>
    </item>
  </channel>
</rss>

