<?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 Re:Sycl 2020 on devcloud? in Intel® oneAPI DPC++/C++ Compiler</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Sycl-2020-on-devcloud/m-p/1253490#M982</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Thanks for reaching out to us.&lt;/P&gt;&lt;P&gt;If you want more details regarding the SYCL specification and DPC++, then please follow the below link it will give you complete details.&lt;/P&gt;&lt;P&gt;&lt;A href="https://spec.oneapi.com/versions/latest/elements/dpcpp/source/index.html#extensions-table" rel="noopener noreferrer" target="_blank"&gt;https://spec.oneapi.com/versions/latest/elements/dpcpp/source/index.html#extensions-table&lt;/A&gt;&lt;/P&gt;&lt;P&gt;From the error log, it's hard to come up with a conclusion regarding your issue, so if you have any issue regarding the &lt;B&gt;reducer class &lt;/B&gt;which you are trying to use or &lt;B&gt;reduction function &lt;/B&gt;please send us a small reproducer of your code so that we will get more insight into your issue.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Warm Regards,&lt;/P&gt;&lt;P&gt;Abhishek&lt;/P&gt;&lt;BR /&gt;</description>
    <pubDate>Fri, 05 Feb 2021 13:40:00 GMT</pubDate>
    <dc:creator>AbhishekD_Intel</dc:creator>
    <dc:date>2021-02-05T13:40:00Z</dc:date>
    <item>
      <title>Sycl 2020 on devcloud?</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Sycl-2020-on-devcloud/m-p/1252776#M981</link>
      <description>&lt;P&gt;How much of SYCL 2020 is availabe on the devcloud?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;reduct1d.cxx:45:38: error: no member named 'reducer' in namespace 'cl::sycl'
        auto scalar_accessor = sycl::reducer
                               ~~~~~~^
&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 03 Feb 2021 15:11:37 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Sycl-2020-on-devcloud/m-p/1252776#M981</guid>
      <dc:creator>Victor_E_1</dc:creator>
      <dc:date>2021-02-03T15:11:37Z</dc:date>
    </item>
    <item>
      <title>Re:Sycl 2020 on devcloud?</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Sycl-2020-on-devcloud/m-p/1253490#M982</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Thanks for reaching out to us.&lt;/P&gt;&lt;P&gt;If you want more details regarding the SYCL specification and DPC++, then please follow the below link it will give you complete details.&lt;/P&gt;&lt;P&gt;&lt;A href="https://spec.oneapi.com/versions/latest/elements/dpcpp/source/index.html#extensions-table" rel="noopener noreferrer" target="_blank"&gt;https://spec.oneapi.com/versions/latest/elements/dpcpp/source/index.html#extensions-table&lt;/A&gt;&lt;/P&gt;&lt;P&gt;From the error log, it's hard to come up with a conclusion regarding your issue, so if you have any issue regarding the &lt;B&gt;reducer class &lt;/B&gt;which you are trying to use or &lt;B&gt;reduction function &lt;/B&gt;please send us a small reproducer of your code so that we will get more insight into your issue.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Warm Regards,&lt;/P&gt;&lt;P&gt;Abhishek&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 05 Feb 2021 13:40:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Sycl-2020-on-devcloud/m-p/1253490#M982</guid>
      <dc:creator>AbhishekD_Intel</dc:creator>
      <dc:date>2021-02-05T13:40:00Z</dc:date>
    </item>
    <item>
      <title>Re: Re:Sycl 2020 on devcloud?</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Sycl-2020-on-devcloud/m-p/1253552#M983</link>
      <description>&lt;P&gt;Thanks for that table. That is useful. Here is my code and error message:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;dpcpp -c reductscalar.cxx  -std=c++17 -O2 -g
reductscalar.cxx:42:11: error: no member named 'reduction' in namespace 'cl::sycl'
    sycl::reduction( sum_array, static_cast&amp;lt;float&amp;gt;(0.), std::plus&amp;lt;float&amp;gt;() );
    ~~~~~~^
1 error generated.



#include &amp;lt;CL/sycl.hpp&amp;gt;
#include &amp;lt;iostream&amp;gt;
#include &amp;lt;vector&amp;gt;
using std::vector;
#include &amp;lt;cstdio&amp;gt;

using namespace cl;

int main() {

  sycl::cpu_selector selector;
  sycl::queue myqueue(selector);

  auto ctx = myqueue.get_context();
  auto dev = myqueue.get_device();

  int array_size; std::cin &amp;gt;&amp;gt; array_size;
  float *shared_array = (float*) malloc_shared( array_size*sizeof(float),dev,ctx );
  float *sum_array = (float*) malloc_shared( sizeof(float),dev,ctx );
  float check_sum = 0.;
  for (int i=0; i&amp;lt;array_size; i++) {
    shared_array[i] = static_cast&amp;lt;float&amp;gt;(i);
    check_sum += shared_array[i];
  }

  sycl::range&amp;lt;1&amp;gt; array_range{static_cast&amp;lt;size_t&amp;gt;(array_size)};
  //codesnippet syclsumreduct
  auto reduce_to_sum =
    sycl::reduction( sum_array, static_cast&amp;lt;float&amp;gt;(0.), std::plus&amp;lt;float&amp;gt;() );
  myqueue.parallel_for// parallel_for&amp;lt;reduction_kernel&amp;lt;T,BinaryOp,__LINE__&amp;gt;&amp;gt;
    ( array_range,    // sycl::range&amp;lt;1&amp;gt;(input_size),
      reduce_to_sum,  // sycl::reduction(output, identity, op),
      [=] (sycl::id&amp;lt;1&amp;gt; idx, auto&amp;amp; reducer) { // type of reducer is impl-dependent, so use auto
      reducer.combine(shared_array[idx[0]]); //(input[idx[0]]);
      //reducer += shared_array[idx[0]]; // see line 216: add_reducer += input0[idx[0]];
    } ).wait();
  //codesnippet end

  printf("Sum= %e, s/b=%e\n",sum_array[0],check_sum);

  return 0;
}&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 05 Feb 2021 17:42:57 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Sycl-2020-on-devcloud/m-p/1253552#M983</guid>
      <dc:creator>Victor_E_1</dc:creator>
      <dc:date>2021-02-05T17:42:57Z</dc:date>
    </item>
    <item>
      <title>Re:Sycl 2020 on devcloud?</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Sycl-2020-on-devcloud/m-p/1255171#M984</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Thanks for the code snippet. We can see that you are trying to access reduction from &lt;B&gt;sycl &lt;/B&gt;namespace, but the &lt;B&gt;reduction &lt;/B&gt;functionality is present in a different namespace. &lt;/P&gt;&lt;P&gt;As you are trying to run your code on the Devcloud the &lt;B&gt;SYCL_COMPILER_VERSION&lt;/B&gt; is greater than  &lt;B&gt;20200827&lt;/B&gt;,&lt;B&gt; &lt;/B&gt;so try using &lt;B&gt;sycl::ONEAPI::reduction(....)&lt;/B&gt;, this will not give the error on reduction function.&lt;/P&gt;&lt;P&gt;There is one more issue with your code, you are just using &lt;B&gt;range with index &lt;/B&gt;with a reduction, but the reduction should be used with &lt;B&gt;nd_range&lt;/B&gt; and &lt;B&gt;nd_item &lt;/B&gt;in the data-parallel kernel. &lt;/P&gt;&lt;P&gt;You can follow the below syntax for reference.&lt;/P&gt;&lt;P class="ql-indent-1"&gt;&lt;B&gt;using namespace sycl;&lt;/B&gt;&lt;/P&gt;&lt;P class="ql-indent-1"&gt;&lt;B&gt;handler.parallel_for(&lt;/B&gt;&lt;/P&gt;&lt;P class="ql-indent-1"&gt;&lt;B&gt;nd_range&amp;lt;1&amp;gt;{global_range, local_range},&lt;/B&gt;&lt;/P&gt;&lt;P class="ql-indent-1"&gt;&lt;B&gt;ONEAPI::reduction(sum, plus&amp;lt;&amp;gt;()),&lt;/B&gt;&lt;/P&gt;&lt;P class="ql-indent-1"&gt;&lt;B&gt;[=](nd_item&amp;lt;1&amp;gt; it, auto&amp;amp; sum) {&lt;/B&gt;&lt;/P&gt;&lt;P class="ql-indent-2"&gt;&lt;B&gt;int i = it.get_global_id(0);&lt;/B&gt;&lt;/P&gt;&lt;P class="ql-indent-2"&gt;&lt;B&gt;sum += data[i];&lt;/B&gt;&lt;/P&gt;&lt;P class="ql-indent-1"&gt;&lt;B&gt;});&lt;/B&gt;&lt;/P&gt;&lt;P class="ql-indent-1"&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;For more details please refer to the below OneAPI Samples (GSimulation.cpp)&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/oneapi-src/oneAPI-samples/tree/master/DirectProgramming/DPC%2B%2B/N-BodyMethods/Nbody" target="_blank"&gt;https://github.com/oneapi-src/oneAPI-samples/tree/master/DirectProgramming/DPC%2B%2B/N-BodyMethods/Nbody&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Hope the provided details will solve your issue.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Warm Regards,&lt;/P&gt;&lt;P&gt;Abhishek&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 11 Feb 2021 06:47:36 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Sycl-2020-on-devcloud/m-p/1255171#M984</guid>
      <dc:creator>AbhishekD_Intel</dc:creator>
      <dc:date>2021-02-11T06:47:36Z</dc:date>
    </item>
    <item>
      <title>Re:Sycl 2020 on devcloud?</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Sycl-2020-on-devcloud/m-p/1257157#M985</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Please give us an update on the provided details and do let us know if it had solved your issue.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Warm Regards,&lt;/P&gt;&lt;P&gt;Abhishek&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 18 Feb 2021 10:32:47 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Sycl-2020-on-devcloud/m-p/1257157#M985</guid>
      <dc:creator>AbhishekD_Intel</dc:creator>
      <dc:date>2021-02-18T10:32:47Z</dc:date>
    </item>
    <item>
      <title>Re: Re:Sycl 2020 on devcloud?</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Sycl-2020-on-devcloud/m-p/1257382#M986</link>
      <description>&lt;P&gt;Abhishek,&lt;/P&gt;
&lt;P&gt;the Sycl 2020 standard just came out, so I'm reluctant to use solutions that are based on Intel-only namespaces.&lt;/P&gt;
&lt;P&gt;What are the plans for implementing the 2020 standard?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Victor.&lt;/P&gt;</description>
      <pubDate>Fri, 19 Feb 2021 00:56:13 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Sycl-2020-on-devcloud/m-p/1257382#M986</guid>
      <dc:creator>Victor_E_1</dc:creator>
      <dc:date>2021-02-19T00:56:13Z</dc:date>
    </item>
    <item>
      <title>Re:Sycl 2020 on devcloud?</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Sycl-2020-on-devcloud/m-p/1258830#M987</link>
      <description>&lt;P&gt;Hi Victor,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;I will forward your question to the subject matter expert for more details regarding the implementation of the latest SYCL standard.&lt;/P&gt;&lt;P&gt;Please expect a reply in this same thread.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Warm Regards,&lt;/P&gt;&lt;P&gt;Abhishek&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 24 Feb 2021 13:27:31 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Sycl-2020-on-devcloud/m-p/1258830#M987</guid>
      <dc:creator>AbhishekD_Intel</dc:creator>
      <dc:date>2021-02-24T13:27:31Z</dc:date>
    </item>
    <item>
      <title>Re:Sycl 2020 on devcloud?</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Sycl-2020-on-devcloud/m-p/1261182#M994</link>
      <description>&lt;P&gt;&lt;SPAN style="font-family: &amp;quot;Segoe UI&amp;quot;, sans-serif; font-size: 10pt;"&gt;some of the SYCL2020 features are already in DPC++ Compiler initial release and we will continue to add support for more in future releases. A comprehensive list will be released soon. &lt;/SPAN&gt;&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 03 Mar 2021 22:11:09 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Sycl-2020-on-devcloud/m-p/1261182#M994</guid>
      <dc:creator>Varsha_M_Intel</dc:creator>
      <dc:date>2021-03-03T22:11:09Z</dc:date>
    </item>
    <item>
      <title>Re:Sycl 2020 on devcloud?</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Sycl-2020-on-devcloud/m-p/1282765#M1162</link>
      <description>&lt;P&gt;Please find the below as list of SYCL 2020 features with oneAPI.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13px;"&gt;&lt;A href="https://software.intel.com/content/www/us/en/develop/articles/sycl-2020-features-dpc-language-oneapi-c.html" target="_blank"&gt;https://software.intel.com/content/www/us/en/develop/articles/sycl-2020-features-dpc-language-oneapi-c.html&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 19 May 2021 15:33:46 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Sycl-2020-on-devcloud/m-p/1282765#M1162</guid>
      <dc:creator>Varsha_M_Intel</dc:creator>
      <dc:date>2021-05-19T15:33:46Z</dc:date>
    </item>
  </channel>
</rss>

