<?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 DPC++ compilation error in the DPCT migrated LULESH code on Intel DevCloud in Intel® oneAPI DPC++/C++ Compiler</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/DPC-compilation-error-in-the-DPCT-migrated-LULESH-code-on-Intel/m-p/1250751#M923</link>
    <description>&lt;P data-unlink="true"&gt;I'm working on migration CUDA version of LULESH application (&lt;A href="https://github.com/LLNL/LULESH/tree/2.0.2-dev/cuda)" target="_blank"&gt;https://github.com/LLNL/LULESH/tree/2.0.2-dev/cuda)&lt;/A&gt;&amp;nbsp;to DPC++. I was able to successfully convert the CUDA version to DPC++ using DPCT tool. However, while compiling the DPC++ version of the code, I am getting the following compilation error:&amp;nbsp;&lt;STRONG&gt;error: no matching constructor for initialization of 'std::vec tor&amp;lt;double&amp;gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;./vector.h:24:43: &lt;STRONG&gt;error: no matching constructor for initialization of 'std::vec tor&amp;lt;double&amp;gt;'&lt;/STRONG&gt;&lt;BR /&gt;inline Vector_h(const Vector_d&amp;lt;T&amp;gt; &amp;amp;a) : std::vector&amp;lt;T&amp;gt;(a) {}&lt;BR /&gt;^ ~&lt;BR /&gt;lulesh.dp.cpp:4908:26: note: in instantiation of member function 'Vector_h&amp;lt;doubl e&amp;gt;::Vector_h' requested here&lt;BR /&gt;Vector_h&amp;lt;Real_t&amp;gt; x_h = locDom-&amp;gt;x;&lt;BR /&gt;^&lt;BR /&gt;/usr/lib/gcc/x86_64-linux-gnu/7.4.0/../../../../include/c++/7.4.0/bits/stl_vecto r.h:270:7: note: candidate constructor not viable: no known conversion from 'con st Vector_d&amp;lt;double&amp;gt;' to 'const std::vector&amp;lt;double, std::allocator&amp;lt;double&amp;gt;&amp;gt;::allo cator_type' (aka 'const std::allocator&amp;lt;double&amp;gt;') for 1st argument&lt;BR /&gt;vector(const allocator_type&amp;amp; __a) _GLIBCXX_NOEXCEPT&lt;BR /&gt;^&lt;BR /&gt;/usr/lib/gcc/x86_64-linux-gnu/7.4.0/../../../../include/c++/7.4.0/bits/stl_vecto r.h:283:7: note: candidate constructor not viable: no known conversion from 'con st Vector_d&amp;lt;double&amp;gt;' to 'std::vector::size_type' (aka 'unsigned long') for 1st a rgument&lt;BR /&gt;vector(size_type __n, const allocator_type&amp;amp; __a = allocator_type())&lt;BR /&gt;^&lt;BR /&gt;/usr/lib/gcc/x86_64-linux-gnu/7.4.0/../../../../include/c++/7.4.0/bits/stl_vecto r.h:326:7: note: candidate constructor not viable: no known conversion from 'con st Vector_d&amp;lt;double&amp;gt;' to 'const std::vector&amp;lt;double, std::allocator&amp;lt;double&amp;gt;&amp;gt;' for 1st argument&lt;BR /&gt;vector(const vector&amp;amp; __x)&lt;BR /&gt;^&lt;BR /&gt;/usr/lib/gcc/x86_64-linux-gnu/7.4.0/../../../../include/c++/7.4.0/bits/stl_vecto r.h:344:7: note: candidate constructor not viable: no known conversion from 'con st Vector_d&amp;lt;double&amp;gt;' to 'std::vector&amp;lt;double, std::allocator&amp;lt;double&amp;gt;&amp;gt;' for 1st ar gument&lt;BR /&gt;vector(vector&amp;amp;&amp;amp; __x) noexcept&lt;BR /&gt;^&lt;BR /&gt;/usr/lib/gcc/x86_64-linux-gnu/7.4.0/../../../../include/c++/7.4.0/bits/stl_vecto r.h:383:7: note: candidate constructor not viable: no known conversion from 'con st Vector_d&amp;lt;double&amp;gt;' to 'initializer_list&amp;lt;std::vector&amp;lt;double, std::allocator&amp;lt;dou ble&amp;gt;&amp;gt;::value_type&amp;gt;' (aka 'initializer_list&amp;lt;double&amp;gt;') for 1st argument&lt;BR /&gt;vector(initializer_list&amp;lt;value_type&amp;gt; __l,&lt;BR /&gt;^&lt;BR /&gt;/usr/lib/gcc/x86_64-linux-gnu/7.4.0/../../../../include/c++/7.4.0/bits/stl_vecto r.h:259:7: note: candidate constructor not viable: requires 0 arguments, but 1 w as provided&lt;BR /&gt;vector()&lt;BR /&gt;^&lt;BR /&gt;/glob/development-tools/versions/oneapi/gold/inteloneapi/dpcpp-ct/2021.1.1/inclu de/dpct/dpl_extras/vector.h:69:30: note: candidate function [with OtherA = std:: allocator&amp;lt;double&amp;gt;] not viable: 'this' argument has type 'const Vector_d&amp;lt;double&amp;gt;' , but method is not marked const&lt;BR /&gt;template &amp;lt;typename OtherA&amp;gt; operator const std::vector&amp;lt;T, OtherA&amp;gt;() &amp;amp; {&lt;BR /&gt;^&lt;BR /&gt;/usr/lib/gcc/x86_64-linux-gnu/7.4.0/../../../../include/c++/7.4.0/bits/stl_vecto r.h:348:7: note: candidate constructor not viable: requires 2 arguments, but 1 w as provided&lt;BR /&gt;vector(const vector&amp;amp; __x, const allocator_type&amp;amp; __a)&lt;BR /&gt;^&lt;BR /&gt;/usr/lib/gcc/x86_64-linux-gnu/7.4.0/../../../../include/c++/7.4.0/bits/stl_vecto r.h:358:7: note: candidate constructor not viable: requires 2 arguments, but 1 w as provided&lt;BR /&gt;vector(vector&amp;amp;&amp;amp; __rv, const allocator_type&amp;amp; __m)&lt;BR /&gt;^&lt;BR /&gt;/usr/lib/gcc/x86_64-linux-gnu/7.4.0/../../../../include/c++/7.4.0/bits/stl_vecto r.h:295:7: note: candidate constructor not viable: requires at least 2 arguments , but 1 was provided&lt;BR /&gt;vector(size_type __n, const value_type&amp;amp; __value,&lt;BR /&gt;^&lt;BR /&gt;/usr/lib/gcc/x86_64-linux-gnu/7.4.0/../../../../include/c++/7.4.0/bits/stl_vecto r.h:411:2: note: candidate constructor template not viable: requires at least 2 arguments, but 1 was provided&lt;BR /&gt;vector(_InputIterator __first, _InputIterator __last,&lt;BR /&gt;^&lt;BR /&gt;3 warnings and 1 error generated.&lt;BR /&gt;Makefile:13: recipe for target 'lulesh.o' failed&lt;BR /&gt;make: *** [lulesh.o] Error 1&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm not sure if this is an issue with a version of standard library implementation in the devcloud. I'm attaching the makefile and corresponding converted dpc++ files for reference.&lt;/P&gt;</description>
    <pubDate>Thu, 28 Jan 2021 08:13:22 GMT</pubDate>
    <dc:creator>Sai_Chenna</dc:creator>
    <dc:date>2021-01-28T08:13:22Z</dc:date>
    <item>
      <title>DPC++ compilation error in the DPCT migrated LULESH code on Intel DevCloud</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/DPC-compilation-error-in-the-DPCT-migrated-LULESH-code-on-Intel/m-p/1250751#M923</link>
      <description>&lt;P data-unlink="true"&gt;I'm working on migration CUDA version of LULESH application (&lt;A href="https://github.com/LLNL/LULESH/tree/2.0.2-dev/cuda)" target="_blank"&gt;https://github.com/LLNL/LULESH/tree/2.0.2-dev/cuda)&lt;/A&gt;&amp;nbsp;to DPC++. I was able to successfully convert the CUDA version to DPC++ using DPCT tool. However, while compiling the DPC++ version of the code, I am getting the following compilation error:&amp;nbsp;&lt;STRONG&gt;error: no matching constructor for initialization of 'std::vec tor&amp;lt;double&amp;gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;./vector.h:24:43: &lt;STRONG&gt;error: no matching constructor for initialization of 'std::vec tor&amp;lt;double&amp;gt;'&lt;/STRONG&gt;&lt;BR /&gt;inline Vector_h(const Vector_d&amp;lt;T&amp;gt; &amp;amp;a) : std::vector&amp;lt;T&amp;gt;(a) {}&lt;BR /&gt;^ ~&lt;BR /&gt;lulesh.dp.cpp:4908:26: note: in instantiation of member function 'Vector_h&amp;lt;doubl e&amp;gt;::Vector_h' requested here&lt;BR /&gt;Vector_h&amp;lt;Real_t&amp;gt; x_h = locDom-&amp;gt;x;&lt;BR /&gt;^&lt;BR /&gt;/usr/lib/gcc/x86_64-linux-gnu/7.4.0/../../../../include/c++/7.4.0/bits/stl_vecto r.h:270:7: note: candidate constructor not viable: no known conversion from 'con st Vector_d&amp;lt;double&amp;gt;' to 'const std::vector&amp;lt;double, std::allocator&amp;lt;double&amp;gt;&amp;gt;::allo cator_type' (aka 'const std::allocator&amp;lt;double&amp;gt;') for 1st argument&lt;BR /&gt;vector(const allocator_type&amp;amp; __a) _GLIBCXX_NOEXCEPT&lt;BR /&gt;^&lt;BR /&gt;/usr/lib/gcc/x86_64-linux-gnu/7.4.0/../../../../include/c++/7.4.0/bits/stl_vecto r.h:283:7: note: candidate constructor not viable: no known conversion from 'con st Vector_d&amp;lt;double&amp;gt;' to 'std::vector::size_type' (aka 'unsigned long') for 1st a rgument&lt;BR /&gt;vector(size_type __n, const allocator_type&amp;amp; __a = allocator_type())&lt;BR /&gt;^&lt;BR /&gt;/usr/lib/gcc/x86_64-linux-gnu/7.4.0/../../../../include/c++/7.4.0/bits/stl_vecto r.h:326:7: note: candidate constructor not viable: no known conversion from 'con st Vector_d&amp;lt;double&amp;gt;' to 'const std::vector&amp;lt;double, std::allocator&amp;lt;double&amp;gt;&amp;gt;' for 1st argument&lt;BR /&gt;vector(const vector&amp;amp; __x)&lt;BR /&gt;^&lt;BR /&gt;/usr/lib/gcc/x86_64-linux-gnu/7.4.0/../../../../include/c++/7.4.0/bits/stl_vecto r.h:344:7: note: candidate constructor not viable: no known conversion from 'con st Vector_d&amp;lt;double&amp;gt;' to 'std::vector&amp;lt;double, std::allocator&amp;lt;double&amp;gt;&amp;gt;' for 1st ar gument&lt;BR /&gt;vector(vector&amp;amp;&amp;amp; __x) noexcept&lt;BR /&gt;^&lt;BR /&gt;/usr/lib/gcc/x86_64-linux-gnu/7.4.0/../../../../include/c++/7.4.0/bits/stl_vecto r.h:383:7: note: candidate constructor not viable: no known conversion from 'con st Vector_d&amp;lt;double&amp;gt;' to 'initializer_list&amp;lt;std::vector&amp;lt;double, std::allocator&amp;lt;dou ble&amp;gt;&amp;gt;::value_type&amp;gt;' (aka 'initializer_list&amp;lt;double&amp;gt;') for 1st argument&lt;BR /&gt;vector(initializer_list&amp;lt;value_type&amp;gt; __l,&lt;BR /&gt;^&lt;BR /&gt;/usr/lib/gcc/x86_64-linux-gnu/7.4.0/../../../../include/c++/7.4.0/bits/stl_vecto r.h:259:7: note: candidate constructor not viable: requires 0 arguments, but 1 w as provided&lt;BR /&gt;vector()&lt;BR /&gt;^&lt;BR /&gt;/glob/development-tools/versions/oneapi/gold/inteloneapi/dpcpp-ct/2021.1.1/inclu de/dpct/dpl_extras/vector.h:69:30: note: candidate function [with OtherA = std:: allocator&amp;lt;double&amp;gt;] not viable: 'this' argument has type 'const Vector_d&amp;lt;double&amp;gt;' , but method is not marked const&lt;BR /&gt;template &amp;lt;typename OtherA&amp;gt; operator const std::vector&amp;lt;T, OtherA&amp;gt;() &amp;amp; {&lt;BR /&gt;^&lt;BR /&gt;/usr/lib/gcc/x86_64-linux-gnu/7.4.0/../../../../include/c++/7.4.0/bits/stl_vecto r.h:348:7: note: candidate constructor not viable: requires 2 arguments, but 1 w as provided&lt;BR /&gt;vector(const vector&amp;amp; __x, const allocator_type&amp;amp; __a)&lt;BR /&gt;^&lt;BR /&gt;/usr/lib/gcc/x86_64-linux-gnu/7.4.0/../../../../include/c++/7.4.0/bits/stl_vecto r.h:358:7: note: candidate constructor not viable: requires 2 arguments, but 1 w as provided&lt;BR /&gt;vector(vector&amp;amp;&amp;amp; __rv, const allocator_type&amp;amp; __m)&lt;BR /&gt;^&lt;BR /&gt;/usr/lib/gcc/x86_64-linux-gnu/7.4.0/../../../../include/c++/7.4.0/bits/stl_vecto r.h:295:7: note: candidate constructor not viable: requires at least 2 arguments , but 1 was provided&lt;BR /&gt;vector(size_type __n, const value_type&amp;amp; __value,&lt;BR /&gt;^&lt;BR /&gt;/usr/lib/gcc/x86_64-linux-gnu/7.4.0/../../../../include/c++/7.4.0/bits/stl_vecto r.h:411:2: note: candidate constructor template not viable: requires at least 2 arguments, but 1 was provided&lt;BR /&gt;vector(_InputIterator __first, _InputIterator __last,&lt;BR /&gt;^&lt;BR /&gt;3 warnings and 1 error generated.&lt;BR /&gt;Makefile:13: recipe for target 'lulesh.o' failed&lt;BR /&gt;make: *** [lulesh.o] Error 1&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm not sure if this is an issue with a version of standard library implementation in the devcloud. I'm attaching the makefile and corresponding converted dpc++ files for reference.&lt;/P&gt;</description>
      <pubDate>Thu, 28 Jan 2021 08:13:22 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/DPC-compilation-error-in-the-DPCT-migrated-LULESH-code-on-Intel/m-p/1250751#M923</guid>
      <dc:creator>Sai_Chenna</dc:creator>
      <dc:date>2021-01-28T08:13:22Z</dc:date>
    </item>
    <item>
      <title>Re:DPC++ compilation error in the DPCT migrated LULESH code on Intel DevCloud</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/DPC-compilation-error-in-the-DPCT-migrated-LULESH-code-on-Intel/m-p/1251949#M931</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;Please share the commands you followed for migrating your cuda code to dpc++. Also, the makefile is not there in the attached documents.&lt;/P&gt;&lt;P&gt;Do send us complete error logs and the version of basekit you are using to migrate the mentioned project.&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>Mon, 01 Feb 2021 13:17:54 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/DPC-compilation-error-in-the-DPCT-migrated-LULESH-code-on-Intel/m-p/1251949#M931</guid>
      <dc:creator>AbhishekD_Intel</dc:creator>
      <dc:date>2021-02-01T13:17:54Z</dc:date>
    </item>
    <item>
      <title>Re: Re:DPC++ compilation error in the DPCT migrated LULESH code on Intel DevCloud</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/DPC-compilation-error-in-the-DPCT-migrated-LULESH-code-on-Intel/m-p/1252088#M934</link>
      <description>&lt;P&gt;Hello Abhishek,&lt;/P&gt;
&lt;P&gt;I have used the following commands to convert the CUDA code to DPC++ version.&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;intercept-build make&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;dpct -p compile_commands.json --in-root=./ *.cu&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt;dpct --cuda-include-path=/home/uXXXXX/tkit/include -p compile_commands.json --in-root=./ *.cu&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;Once the source code is converted into DPC++ format. I have commented out CUDA error-handling API calls which are not converted by DPCT tool.&amp;nbsp; Now I'm left with one error after compilation, as mentioned below:&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;$ make all&lt;/STRONG&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&lt;STRONG&gt;dpcpp -O2 -g -std=c++17 -c lulesh.dp.cpp -o lulesh.o&lt;/STRONG&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&lt;STRONG&gt;lulesh.dp.cpp:302:98: warning: data argument not used by format string [-Wformat-extra-args]&lt;/STRONG&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&lt;STRONG&gt;fprintf(stderr, "cuda_init(): This implementation of Lulesh requires device SM 3.0+.\n", dev);&lt;/STRONG&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&lt;STRONG&gt;~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^&lt;/STRONG&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&lt;STRONG&gt;lulesh.dp.cpp:947:19: warning: using '%c' format specifier, but argument has boolean value [-Wformat]&lt;/STRONG&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&lt;STRONG&gt;printf("%c\n",fsuccess);//nothing&lt;/STRONG&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&lt;STRONG&gt;~~ ^&lt;/STRONG&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&lt;STRONG&gt;lulesh.dp.cpp:5056:7: warning: 'delete' applied to a pointer that was allocated with 'new[]'; did you mean 'delete[]'? [-Wmismatched-new-delete]&lt;/STRONG&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&lt;STRONG&gt;delete e_all;&lt;/STRONG&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&lt;STRONG&gt;^&lt;/STRONG&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&lt;STRONG&gt;[]&lt;/STRONG&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&lt;STRONG&gt;lulesh.dp.cpp:5040:23: note: allocated with 'new[]' here&lt;/STRONG&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&lt;STRONG&gt;Real_t *e_all = new Real_t[nx * nx];&lt;/STRONG&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&lt;STRONG&gt;^&lt;/STRONG&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&lt;STRONG&gt;In file included from lulesh.dp.cpp:85:&lt;/STRONG&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&lt;STRONG&gt;In file included from ./lulesh.h:3:&lt;/STRONG&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&lt;STRONG&gt;./vector.h:25:43: error: no matching constructor for initialization of 'std::vector&amp;lt;double&amp;gt;'&lt;/STRONG&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&lt;STRONG&gt;inline Vector_h(const Vector_d&amp;lt;T&amp;gt; &amp;amp;a) : std::vector&amp;lt;T&amp;gt;(a) {}&lt;/STRONG&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&lt;STRONG&gt;^ ~&lt;/STRONG&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&lt;STRONG&gt;lulesh.dp.cpp:4908:26: note: in instantiation of member function 'Vector_h&amp;lt;double&amp;gt;::Vector_h' requested here&lt;/STRONG&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&lt;STRONG&gt;Vector_h&amp;lt;Real_t&amp;gt; x_h = locDom-&amp;gt;x;&lt;/STRONG&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&lt;STRONG&gt;^&lt;/STRONG&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&lt;STRONG&gt;/usr/lib/gcc/x86_64-linux-gnu/7.4.0/../../../../include/c++/7.4.0/bits/stl_vector.h:270:7: note: candidate constructor not viable: no known conversion from 'const Vector_d&amp;lt;double&amp;gt;' to 'const std::vector&amp;lt;double, std::allocator&amp;lt;double&amp;gt;&amp;gt;::allocator_type' (aka 'const std::allocator&amp;lt;double&amp;gt;') for 1st argument&lt;/STRONG&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&lt;STRONG&gt;vector(const allocator_type&amp;amp; __a) _GLIBCXX_NOEXCEPT&lt;/STRONG&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&lt;STRONG&gt;^&lt;/STRONG&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&lt;STRONG&gt;/usr/lib/gcc/x86_64-linux-gnu/7.4.0/../../../../include/c++/7.4.0/bits/stl_vector.h:283:7: note: candidate constructor not viable: no known conversion from 'const Vector_d&amp;lt;double&amp;gt;' to 'std::vector::size_type' (aka 'unsigned long') for 1st argument&lt;/STRONG&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&lt;STRONG&gt;vector(size_type __n, const allocator_type&amp;amp; __a = allocator_type())&lt;/STRONG&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&lt;STRONG&gt;^&lt;/STRONG&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&lt;STRONG&gt;/usr/lib/gcc/x86_64-linux-gnu/7.4.0/../../../../include/c++/7.4.0/bits/stl_vector.h:326:7: note: candidate constructor not viable: no known conversion from 'const Vector_d&amp;lt;double&amp;gt;' to 'const std::vector&amp;lt;double, std::allocator&amp;lt;double&amp;gt;&amp;gt;' for 1st argument&lt;/STRONG&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&lt;STRONG&gt;vector(const vector&amp;amp; __x)&lt;/STRONG&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&lt;STRONG&gt;^&lt;/STRONG&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&lt;STRONG&gt;/usr/lib/gcc/x86_64-linux-gnu/7.4.0/../../../../include/c++/7.4.0/bits/stl_vector.h:344:7: note: candidate constructor not viable: no known conversion from 'const Vector_d&amp;lt;double&amp;gt;' to 'std::vector&amp;lt;double, std::allocator&amp;lt;double&amp;gt;&amp;gt;' for 1st argument&lt;/STRONG&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&lt;STRONG&gt;vector(vector&amp;amp;&amp;amp; __x) noexcept&lt;/STRONG&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&lt;STRONG&gt;^&lt;/STRONG&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&lt;STRONG&gt;/usr/lib/gcc/x86_64-linux-gnu/7.4.0/../../../../include/c++/7.4.0/bits/stl_vector.h:383:7: note: candidate constructor not viable: no known conversion from 'const Vector_d&amp;lt;double&amp;gt;' to 'initializer_list&amp;lt;std::vector&amp;lt;double, std::allocator&amp;lt;double&amp;gt;&amp;gt;::value_type&amp;gt;' (aka 'initializer_list&amp;lt;double&amp;gt;') for 1st argument&lt;/STRONG&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&lt;STRONG&gt;vector(initializer_list&amp;lt;value_type&amp;gt; __l,&lt;/STRONG&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&lt;STRONG&gt;^&lt;/STRONG&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&lt;STRONG&gt;/usr/lib/gcc/x86_64-linux-gnu/7.4.0/../../../../include/c++/7.4.0/bits/stl_vector.h:259:7: note: candidate constructor not viable: requires 0 arguments, but 1 was provided&lt;/STRONG&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&lt;STRONG&gt;vector()&lt;/STRONG&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&lt;STRONG&gt;^&lt;/STRONG&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&lt;STRONG&gt;/glob/development-tools/versions/oneapi/gold/inteloneapi/dpcpp-ct/2021.1.1/include/dpct/dpl_extras/vector.h:69:30: note: candidate function [with OtherA = std::allocator&amp;lt;double&amp;gt;] not viable: 'this' argument has type 'const Vector_d&amp;lt;double&amp;gt;', but method is not marked const&lt;/STRONG&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&lt;STRONG&gt;template &amp;lt;typename OtherA&amp;gt; operator const std::vector&amp;lt;T, OtherA&amp;gt;() &amp;amp; {&lt;/STRONG&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&lt;STRONG&gt;^&lt;/STRONG&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&lt;STRONG&gt;/usr/lib/gcc/x86_64-linux-gnu/7.4.0/../../../../include/c++/7.4.0/bits/stl_vector.h:348:7: note: candidate constructor not viable: requires 2 arguments, but 1 was provided&lt;/STRONG&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&lt;STRONG&gt;vector(const vector&amp;amp; __x, const allocator_type&amp;amp; __a)&lt;/STRONG&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&lt;STRONG&gt;^&lt;/STRONG&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&lt;STRONG&gt;/usr/lib/gcc/x86_64-linux-gnu/7.4.0/../../../../include/c++/7.4.0/bits/stl_vector.h:358:7: note: candidate constructor not viable: requires 2 arguments, but 1 was provided&lt;/STRONG&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&lt;STRONG&gt;vector(vector&amp;amp;&amp;amp; __rv, const allocator_type&amp;amp; __m)&lt;/STRONG&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&lt;STRONG&gt;^&lt;/STRONG&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&lt;STRONG&gt;/usr/lib/gcc/x86_64-linux-gnu/7.4.0/../../../../include/c++/7.4.0/bits/stl_vector.h:295:7: note: candidate constructor not viable: requires at least 2 arguments, but 1 was provided&lt;/STRONG&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&lt;STRONG&gt;vector(size_type __n, const value_type&amp;amp; __value,&lt;/STRONG&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&lt;STRONG&gt;^&lt;/STRONG&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&lt;STRONG&gt;/usr/lib/gcc/x86_64-linux-gnu/7.4.0/../../../../include/c++/7.4.0/bits/stl_vector.h:411:2: note: candidate constructor template not viable: requires at least 2 arguments, but 1 was provided&lt;/STRONG&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&lt;STRONG&gt;vector(_InputIterator __first, _InputIterator __last,&lt;/STRONG&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&lt;STRONG&gt;^&lt;/STRONG&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&lt;STRONG&gt;3 warnings and 1 error generated.&lt;/STRONG&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&lt;STRONG&gt;Makefile:13: recipe for target 'lulesh.o' failed&lt;/STRONG&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&lt;STRONG&gt;make: *** [lulesh.o] Error 1&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I couldn't attach the Makefile as the file type is not supported. I'm pasting the content of my Makefile b below:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;CXX = dpcpp&lt;/STRONG&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&lt;STRONG&gt;CXXFLAGS = -O2 -g -std=c++17&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;all: lulesh&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;lulesh: allocator.o lulesh.o lulesh-comms.o lulesh-comms-gpu.o&lt;/STRONG&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&lt;STRONG&gt;$(CXX) $(CXXFLAGS) allocator.o lulesh.o lulesh-comms.o lulesh-comms-gpu.o -o luleshexe&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;allocator.o: allocator.dp.cpp allocator.h&lt;/STRONG&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&lt;STRONG&gt;$(CXX) $(CXXFLAGS) -c allocator.dp.cpp -o allocator.o&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;lulesh.o: lulesh.dp.cpp lulesh.h allocator.h vector.h&lt;/STRONG&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&lt;STRONG&gt;$(CXX) $(CXXFLAGS) -c lulesh.dp.cpp -o lulesh.o&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;lulesh-comms.o: lulesh-comms.dp.cpp lulesh.h&lt;/STRONG&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&lt;STRONG&gt;$(CXX) $(CXXFLAGS) -c lulesh-comms.dp.cpp -o lulesh-comms.o&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;lulesh-comms-gpu.o: lulesh-comms-gpu.dp.cpp lulesh.h&lt;/STRONG&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&lt;STRONG&gt;$(CXX) $(CXXFLAGS) -c lulesh-comms-gpu.dp.cpp -o lulesh-comms-gpu.o&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;clean:&lt;/STRONG&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&lt;STRONG&gt;rm ./luleshexe&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;run:&lt;/STRONG&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&lt;STRONG&gt;./luleshexe&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 01 Feb 2021 21:38:42 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/DPC-compilation-error-in-the-DPCT-migrated-LULESH-code-on-Intel/m-p/1252088#M934</guid>
      <dc:creator>Sai_Chenna</dc:creator>
      <dc:date>2021-02-01T21:38:42Z</dc:date>
    </item>
    <item>
      <title>Re: DPC++ compilation error in the DPCT migrated LULESH code on Intel DevCloud</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/DPC-compilation-error-in-the-DPCT-migrated-LULESH-code-on-Intel/m-p/1253092#M941</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We tried the same application and it got migrated successfully. But at the time of compiling migrated codes, we got the same errors as you have sent to us.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We are looking into this issue and will get back to you as soon we get any updates on this issue. Please post back to us if you have any other issues.&lt;/P&gt;
&lt;P&gt;Warm Regards,&lt;/P&gt;
&lt;P&gt;Abhishek&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 04 Feb 2021 11:56:20 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/DPC-compilation-error-in-the-DPCT-migrated-LULESH-code-on-Intel/m-p/1253092#M941</guid>
      <dc:creator>AbhishekD_Intel</dc:creator>
      <dc:date>2021-02-04T11:56:20Z</dc:date>
    </item>
    <item>
      <title>Re:DPC++ compilation error in the DPCT migrated LULESH code on Intel DevCloud</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/DPC-compilation-error-in-the-DPCT-migrated-LULESH-code-on-Intel/m-p/1254764#M951</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;We tried your application and we feel that it's a bug, so we are forwarding this issue to the concerned team. Thanks for reporting the 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>Wed, 10 Feb 2021 07:13:23 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/DPC-compilation-error-in-the-DPCT-migrated-LULESH-code-on-Intel/m-p/1254764#M951</guid>
      <dc:creator>AbhishekD_Intel</dc:creator>
      <dc:date>2021-02-10T07:13:23Z</dc:date>
    </item>
    <item>
      <title>Re:DPC++ compilation error in the DPCT migrated LULESH code on Intel DevCloud</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/DPC-compilation-error-in-the-DPCT-migrated-LULESH-code-on-Intel/m-p/1255397#M953</link>
      <description>&lt;P&gt;I had a discussion with the Developer. He said: "If you want to inherit the constructors from std::vector, you have to use a 'using' statement."  Link: &lt;A href="https://en.cppreference.com/w/cpp/language/using_declaration#Inheriting_constructors" target="_blank"&gt;https://en.cppreference.com/w/cpp/language/using_declaration#Inheriting_constructors&lt;/A&gt; &lt;/P&gt;&lt;TABLE class="ql-table-blob" align="left"&gt;
 &lt;TBODY&gt;&lt;TR&gt;
  &lt;TD valign="top" align="left" style="padding-top:0in;padding-right:0in;
  padding-bottom:0in;padding-left:0in"&gt;&lt;BR /&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 11 Feb 2021 20:06:08 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/DPC-compilation-error-in-the-DPCT-migrated-LULESH-code-on-Intel/m-p/1255397#M953</guid>
      <dc:creator>Viet_H_Intel</dc:creator>
      <dc:date>2021-02-11T20:06:08Z</dc:date>
    </item>
    <item>
      <title>Re:DPC++ compilation error in the DPCT migrated LULESH code on Intel DevCloud</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/DPC-compilation-error-in-the-DPCT-migrated-LULESH-code-on-Intel/m-p/1257003#M965</link>
      <description>&lt;P&gt;Let us know how it goes after you followed the provided link.&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 18 Feb 2021 00:35:13 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/DPC-compilation-error-in-the-DPCT-migrated-LULESH-code-on-Intel/m-p/1257003#M965</guid>
      <dc:creator>Viet_H_Intel</dc:creator>
      <dc:date>2021-02-18T00:35:13Z</dc:date>
    </item>
    <item>
      <title>Re:DPC++ compilation error in the DPCT migrated LULESH code on Intel DevCloud</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/DPC-compilation-error-in-the-DPCT-migrated-LULESH-code-on-Intel/m-p/1258487#M972</link>
      <description>&lt;P&gt;&lt;SPAN style="font-size: 16px; font-family: intel-clear, tahoma, Helvetica, helvetica, Arial, sans-serif;"&gt;We haven't heard back from you and are considering that your issue has been resolved. Thus, we will no longer respond to this thread. If you need additional assistance from Intel, please start a new thread. Any further interaction in this thread will be considered community only.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 16px; font-family: intel-clear, tahoma, Helvetica, helvetica, Arial, sans-serif;"&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 23 Feb 2021 14:36:36 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/DPC-compilation-error-in-the-DPCT-migrated-LULESH-code-on-Intel/m-p/1258487#M972</guid>
      <dc:creator>Viet_H_Intel</dc:creator>
      <dc:date>2021-02-23T14:36:36Z</dc:date>
    </item>
  </channel>
</rss>

