<?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: Re:Compile error in Intel® oneAPI DPC++/C++ Compiler</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Compile-error/m-p/1518955#M3249</link>
    <description>&lt;P&gt;Sorry, I just noticed that I forgot to turn on the integrated graphics mode of the laptop, which is why the above error occurs.&amp;nbsp;However, the previous error still occurs, the code you gave and the code I wrote have the same error.&lt;/P&gt;&lt;P&gt;Errors:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Darius_Nicholas_1-1693377234060.png" style="width: 999px;"&gt;&lt;img src="https://community.intel.com/t5/image/serverpage/image-id/45126i5A9D2B0651A031B3/image-size/large/is-moderation-mode/true?v=v2&amp;amp;px=999&amp;amp;whitelist-exif-data=Orientation%2CResolution%2COriginalDefaultFinalSize%2CCopyright" role="button" title="Darius_Nicholas_1-1693377234060.png" alt="Darius_Nicholas_1-1693377234060.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Another problem is that the code you gave can run on the UHD630 integrated graphics card, but it cannot run on the UHD730 integrated graphics card, and the above error will appear. Excuse me, what is this question? Sorry to bother you, thank you!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 30 Aug 2023 06:38:02 GMT</pubDate>
    <dc:creator>Darius_Nicholas</dc:creator>
    <dc:date>2023-08-30T06:38:02Z</dc:date>
    <item>
      <title>Compile error</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Compile-error/m-p/1511626#M3203</link>
      <description>&lt;P&gt;OS: Windows&lt;/P&gt;&lt;P&gt;IDE: Visual Studio 2022&lt;/P&gt;&lt;P&gt;I compile a oneapi code on Visual studio, and it compiles with errors.&lt;/P&gt;&lt;P&gt;This is my code.&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="联想截图_20230807151059.png" style="width: 999px;"&gt;&lt;img src="https://community.intel.com/t5/image/serverpage/image-id/44362i6631757708902C9C/image-size/large/is-moderation-mode/true?v=v2&amp;amp;px=999&amp;amp;whitelist-exif-data=Orientation%2CResolution%2COriginalDefaultFinalSize%2CCopyright" role="button" title="联想截图_20230807151059.png" alt="联想截图_20230807151059.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;compile errors：&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="联想截图_20230807151225.png" style="width: 999px;"&gt;&lt;img src="https://community.intel.com/t5/image/serverpage/image-id/44363i7C11BD2E55CAC3D1/image-size/large/is-moderation-mode/true?v=v2&amp;amp;px=999&amp;amp;whitelist-exif-data=Orientation%2CResolution%2COriginalDefaultFinalSize%2CCopyright" role="button" title="联想截图_20230807151225.png" alt="联想截图_20230807151225.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Trouble you again, thank you!&lt;/P&gt;</description>
      <pubDate>Mon, 07 Aug 2023 07:13:46 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Compile-error/m-p/1511626#M3203</guid>
      <dc:creator>Darius_Nicholas</dc:creator>
      <dc:date>2023-08-07T07:13:46Z</dc:date>
    </item>
    <item>
      <title>Re: Compile error</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Compile-error/m-p/1512429#M3208</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for posting in Intel Communities.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We have tried your code by adding a main function and it is working as expected without any errors in Visual studio 2022 Release mode and in oneAPI command prompt.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please find the below full code:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;#include &amp;lt;vector&amp;gt;
#include &amp;lt;iostream&amp;gt;
#include &amp;lt;CL/sycl.hpp&amp;gt;  

std::vector&amp;lt;std::vector&amp;lt;double&amp;gt;&amp;gt; filter2d(const std::vector&amp;lt;double&amp;gt;&amp;amp; b, double a, const std::vector&amp;lt;std::vector&amp;lt;double&amp;gt;&amp;gt;&amp;amp; x) {
    int rows = x.size();
    int cols = x[0].size();
    std::vector&amp;lt;std::vector&amp;lt;double&amp;gt;&amp;gt; y(x.size(), std::vector&amp;lt;double&amp;gt;(x[0].size()));
    auto z = b.size();
    sycl::queue q(sycl::cpu_selector_v);
    sycl::buffer b_buffer(b);
    sycl::buffer y_buffer(y);
    sycl::buffer x_buffer(x);
    q.submit([&amp;amp;](sycl::handler&amp;amp; h) {
        sycl::accessor x_acc(x_buffer, h, sycl::read_only);
        sycl::accessor b_acc(b_buffer, h, sycl::read_only);
        sycl::accessor y_acc(y_buffer, h, sycl::write_only, sycl::no_init);

        h.parallel_for(sycl::range&amp;lt;2&amp;gt;(rows, cols), [=](sycl::item&amp;lt;2&amp;gt; idx) {
            int i = idx[0];
            int j = idx[1];
            y_acc[i][j] = 0.0;
            for (int k = 0; k &amp;lt; z; k++) {
                if (i - k &amp;gt;= 0) {
                    y_acc[i][j] += b_acc[k] * x_acc[i - k][j];
                }
            }
            y_acc[i][j] /= a;
            });
        });
    q.wait();
    return y;
}
int main()
{
    std::vector&amp;lt;double&amp;gt; b = { 1.0, 2.0, 1.0 }; 
    double a = 1.0; 
    std::vector&amp;lt;std::vector&amp;lt;double&amp;gt;&amp;gt; x = {
        { 1.0, 2.0, 3.0 },
        { 4.0, 5.0, 6.0 },
        { 7.0, 8.0, 9.0 }
    }; 

    std::vector&amp;lt;std::vector&amp;lt;double&amp;gt;&amp;gt; y = filter2d(b, a, x);
    for (const auto&amp;amp; row : y) {
        for (const auto&amp;amp; val : row) {
            std::cout &amp;lt;&amp;lt; val &amp;lt;&amp;lt; " ";
        }
        std::cout &amp;lt;&amp;lt; "\n";
    }
    return 0;
}&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please refer to below screenshots for more details:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Visual studio:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="NoorjahanSk_Intel_0-1691582145934.png" style="width: 400px;"&gt;&lt;img src="https://community.intel.com/t5/image/serverpage/image-id/44453i2FF9CDC79FC7A9DA/image-size/medium?v=v2&amp;amp;px=400&amp;amp;whitelist-exif-data=Orientation%2CResolution%2COriginalDefaultFinalSize%2CCopyright" role="button" title="NoorjahanSk_Intel_0-1691582145934.png" alt="NoorjahanSk_Intel_0-1691582145934.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Intel OneAPI Command prompt:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="NoorjahanSk_Intel_1-1691582167176.png" style="width: 400px;"&gt;&lt;img src="https://community.intel.com/t5/image/serverpage/image-id/44454i5933019758CA21CF/image-size/medium?v=v2&amp;amp;px=400&amp;amp;whitelist-exif-data=Orientation%2CResolution%2COriginalDefaultFinalSize%2CCopyright" role="button" title="NoorjahanSk_Intel_1-1691582167176.png" alt="NoorjahanSk_Intel_1-1691582167176.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;
&lt;P&gt;Noorjahan.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Aug 2023 11:56:18 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Compile-error/m-p/1512429#M3208</guid>
      <dc:creator>NoorjahanSk_Intel</dc:creator>
      <dc:date>2023-08-09T11:56:18Z</dc:date>
    </item>
    <item>
      <title>Re: Compile error</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Compile-error/m-p/1512738#M3209</link>
      <description>&lt;P&gt;Thank you! When I switch to release mode, it runs successfully.&amp;nbsp;I'm sorry to bother you again. I have another question. When I specify the GPU as the selector, it runs with an exception, why, and how to solve it?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="联想截图_20230810094731.png" style="width: 381px;"&gt;&lt;img src="https://community.intel.com/t5/image/serverpage/image-id/44503iA15B599B4A1C4508/image-size/large/is-moderation-mode/true?v=v2&amp;amp;px=999&amp;amp;whitelist-exif-data=Orientation%2CResolution%2COriginalDefaultFinalSize%2CCopyright" role="button" title="联想截图_20230810094731.png" alt="联想截图_20230810094731.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Exception:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="联想截图_20230810095033.png" style="width: 999px;"&gt;&lt;img src="https://community.intel.com/t5/image/serverpage/image-id/44504i1B8A5760C574E22D/image-size/large/is-moderation-mode/true?v=v2&amp;amp;px=999&amp;amp;whitelist-exif-data=Orientation%2CResolution%2COriginalDefaultFinalSize%2CCopyright" role="button" title="联想截图_20230810095033.png" alt="联想截图_20230810095033.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I'm sorry to bother you again. Thank you!&lt;/P&gt;</description>
      <pubDate>Thu, 10 Aug 2023 01:51:29 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Compile-error/m-p/1512738#M3209</guid>
      <dc:creator>Darius_Nicholas</dc:creator>
      <dc:date>2023-08-10T01:51:29Z</dc:date>
    </item>
    <item>
      <title>Re: Compile error</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Compile-error/m-p/1514431#M3220</link>
      <description>&lt;P&gt;I have a new problem! I'm sorry to trouble you again. Can you help me solve it? Thank you!&lt;/P&gt;</description>
      <pubDate>Wed, 16 Aug 2023 02:30:30 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Compile-error/m-p/1514431#M3220</guid>
      <dc:creator>Darius_Nicholas</dc:creator>
      <dc:date>2023-08-16T02:30:30Z</dc:date>
    </item>
    <item>
      <title>Re: Compile error</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Compile-error/m-p/1514933#M3226</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please find the below modified code that works with GPU &amp;amp; CPU selector.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;#include &amp;lt;vector&amp;gt;
#include &amp;lt;iostream&amp;gt;
#include &amp;lt;CL/sycl.hpp&amp;gt;
using namespace sycl;
std::vector&amp;lt;std::vector&amp;lt;double&amp;gt;&amp;gt; filter2d(const std::vector&amp;lt;double&amp;gt;&amp;amp; b, double a, const std::vector&amp;lt;std::vector&amp;lt;double&amp;gt;&amp;gt;&amp;amp; x) {
    int rows = x.size();
    int cols = x[0].size();
    std::vector&amp;lt;std::vector&amp;lt;double&amp;gt;&amp;gt; y(x.size(), std::vector&amp;lt;double&amp;gt;(x[0].size()));
    auto z = b.size();
    std::vector&amp;lt;double&amp;gt; flat_y(rows * cols);
    std::vector&amp;lt;double&amp;gt; flat_x(rows * cols);
    for (int i = 0; i &amp;lt; rows; i++)
    {
        for (int j = 0; j &amp;lt; cols; j++)
        {
            flat_x[i * cols + j] = x[i][j];
        }
    }
    for (int i = 0; i &amp;lt; rows; i++)
    {
        for (int j = 0; j &amp;lt; cols; j++)
        {
            flat_y[i * cols + j] = y[i][j];
        }
    }
    sycl::buffer&amp;lt;double,1&amp;gt; b_buffer(b.data(),range&amp;lt;1&amp;gt; (rows));
    sycl::buffer&amp;lt;double,2&amp;gt; x_buffer(flat_x.data(),range&amp;lt;2&amp;gt; (rows,cols));
    sycl::buffer&amp;lt;double,2&amp;gt; y_buffer(flat_y.data(),range&amp;lt;2&amp;gt; (rows,cols));

    sycl::queue q(sycl::gpu_selector_v);
    std::cout&amp;lt;&amp;lt;"Device name: "&amp;lt;&amp;lt; q.get_device().get_info&amp;lt;sycl::info::device::name&amp;gt;();

    q.submit([&amp;amp;](sycl::handler&amp;amp; h) {
                    sycl::accessor x_acc(x_buffer,h);
                    sycl:: accessor y_acc(y_buffer,h);
                    sycl::accessor b_acc(b_buffer,h);

        auto out = sycl::stream(512, 256, h);
        h.parallel_for(sycl::range{static_cast&amp;lt;size_t&amp;gt;(rows),static_cast&amp;lt;size_t&amp;gt;(cols)}, [=](sycl::id&amp;lt;2&amp;gt; idx) {
            int i = idx[0];
            int j = idx[1];
            y_acc[i][j] = 0.0;
            for (int k = 0; k &amp;lt; z; k++)
            {
                if (i - k &amp;gt;= 0)
                {
                    y_acc[i][j] = y_acc[i][j] + b_acc[k] * x_acc[(i - k)][j];
               }
            }
            y_acc[i][j] = y_acc[i][j] / a;
        });
    }).wait();
    sycl::host_accessor y_h(y_buffer);

    for(int i=0;i&amp;lt;rows;i++){
        for(int j=0;j&amp;lt;cols;j++){
                y[i][j]=y_h[i][j];
            }
        }

    return y;
}
int main()
{
    std::vector&amp;lt;double&amp;gt; b = { 1.0, 2.0, 1.0 };
    double a = 1.0;
    std::vector&amp;lt;std::vector&amp;lt;double&amp;gt;&amp;gt; x = {
        { 1.0, 2.0, 3.0 },
        { 4.0, 5.0, 6.0 },
        { 7.0, 8.0, 9.0 }
    };
   auto y = filter2d(b, a, x);
    std::cout&amp;lt;&amp;lt; "\n";
    for (const auto&amp;amp; row : y) {
        for (const auto&amp;amp; val : row) {
            std::cout &amp;lt;&amp;lt; val &amp;lt;&amp;lt; " ";
        }
        std::cout &amp;lt;&amp;lt; "\n";
    }
    return 0;
}
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please refer to below screenshot for more details:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="NoorjahanSk_Intel_0-1697015514340.png" style="width: 400px;"&gt;&lt;img src="https://community.intel.com/t5/image/serverpage/image-id/46664iBE443D480129CAFF/image-size/medium?v=v2&amp;amp;px=400&amp;amp;whitelist-exif-data=Orientation%2CResolution%2COriginalDefaultFinalSize%2CCopyright" role="button" title="NoorjahanSk_Intel_0-1697015514340.png" alt="NoorjahanSk_Intel_0-1697015514340.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please let us know if you still face any issues.&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;&amp;gt;&amp;gt;I have a new problem!&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;Could you please elaborate about your new problem?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;
&lt;P&gt;Noorjahan.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Oct 2023 09:12:05 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Compile-error/m-p/1514933#M3226</guid>
      <dc:creator>NoorjahanSk_Intel</dc:creator>
      <dc:date>2023-10-11T09:12:05Z</dc:date>
    </item>
    <item>
      <title>Re: Compile error</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Compile-error/m-p/1514951#M3227</link>
      <description>&lt;P&gt;I have tried it before, but failed!&lt;/P&gt;&lt;P&gt;OS: Windows 11&lt;/P&gt;&lt;P&gt;IDE: Visual Studio 2022&lt;/P&gt;&lt;P&gt;I'm sorry to bother you again. Thank you!&lt;/P&gt;</description>
      <pubDate>Thu, 17 Aug 2023 11:06:45 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Compile-error/m-p/1514951#M3227</guid>
      <dc:creator>Darius_Nicholas</dc:creator>
      <dc:date>2023-08-17T11:06:45Z</dc:date>
    </item>
    <item>
      <title>Re: Compile error</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Compile-error/m-p/1515385#M3229</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We have tried on Windows 11, visual studio 2022 (17.6.2) with Intel oneAPI 2023.2 and did not observe any issues at our end.&lt;/P&gt;
&lt;P&gt;Please find the below screenshot:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="NoorjahanSk_Intel_0-1692353895850.png" style="width: 400px;"&gt;&lt;img src="https://community.intel.com/t5/image/serverpage/image-id/44799i8CA56CFC1C43F351/image-size/medium?v=v2&amp;amp;px=400&amp;amp;whitelist-exif-data=Orientation%2CResolution%2COriginalDefaultFinalSize%2CCopyright" role="button" title="NoorjahanSk_Intel_0-1692353895850.png" alt="NoorjahanSk_Intel_0-1692353895850.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please find the attached complete VS project for more details.&lt;/P&gt;
&lt;P&gt;Please check whether you are using a supported version of Visual Studio. If not please try it on the supported version and let us know if you still face any issues.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.intel.com/content/www/us/en/developer/articles/reference-implementation/intel-compilers-compatibility-with-microsoft-visual-studio-and-xcode.html" target="_blank" rel="noopener"&gt;https://www.intel.com/content/www/us/en/developer/articles/reference-implementation/intel-compilers-compatibility-with-microsoft-visual-studio-and-xcode.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;
&lt;P&gt;Noorjahan&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 18 Aug 2023 10:19:21 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Compile-error/m-p/1515385#M3229</guid>
      <dc:creator>NoorjahanSk_Intel</dc:creator>
      <dc:date>2023-08-18T10:19:21Z</dc:date>
    </item>
    <item>
      <title>Re:Compile error</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Compile-error/m-p/1517568#M3240</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;We haven't heard back from you. Could you please provide an update on your issue?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Noorjahan.&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 25 Aug 2023 07:51:42 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Compile-error/m-p/1517568#M3240</guid>
      <dc:creator>NoorjahanSk_Intel</dc:creator>
      <dc:date>2023-08-25T07:51:42Z</dc:date>
    </item>
    <item>
      <title>Re: Re:Compile error</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Compile-error/m-p/1517576#M3241</link>
      <description>&lt;P&gt;Sorry for taking so long to reply to you! I've tried the code you've given, unfortunately I'm getting the same error as my code was running before. I don't know how to solve this problem.&lt;/P&gt;&lt;P&gt;This is yours:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Darius_Nicholas_0-1692950494564.png" style="width: 578px;"&gt;&lt;img src="https://community.intel.com/t5/image/serverpage/image-id/45011i50C38703F2A370B0/image-dimensions/578x283/is-moderation-mode/true?v=v2&amp;amp;whitelist-exif-data=Orientation%2CResolution%2COriginalDefaultFinalSize%2CCopyright" width="578" height="283" role="button" title="Darius_Nicholas_0-1692950494564.png" alt="Darius_Nicholas_0-1692950494564.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;This is mine:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Darius_Nicholas_1-1692950550421.png" style="width: 579px;"&gt;&lt;img src="https://community.intel.com/t5/image/serverpage/image-id/45012i3B489404741501FE/image-dimensions/579x304/is-moderation-mode/true?v=v2&amp;amp;whitelist-exif-data=Orientation%2CResolution%2COriginalDefaultFinalSize%2CCopyright" width="579" height="304" role="button" title="Darius_Nicholas_1-1692950550421.png" alt="Darius_Nicholas_1-1692950550421.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The version of Visual Studio: Visual Studio(2022） 17.6.4&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;OS: Windows 11&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The version of oneAPI:2023.2.0&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Trouble you again ! I'm sorry! Thank you!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 25 Aug 2023 08:16:56 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Compile-error/m-p/1517576#M3241</guid>
      <dc:creator>Darius_Nicholas</dc:creator>
      <dc:date>2023-08-25T08:16:56Z</dc:date>
    </item>
    <item>
      <title>Re: Re:Compile error</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Compile-error/m-p/1518955#M3249</link>
      <description>&lt;P&gt;Sorry, I just noticed that I forgot to turn on the integrated graphics mode of the laptop, which is why the above error occurs.&amp;nbsp;However, the previous error still occurs, the code you gave and the code I wrote have the same error.&lt;/P&gt;&lt;P&gt;Errors:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Darius_Nicholas_1-1693377234060.png" style="width: 999px;"&gt;&lt;img src="https://community.intel.com/t5/image/serverpage/image-id/45126i5A9D2B0651A031B3/image-size/large/is-moderation-mode/true?v=v2&amp;amp;px=999&amp;amp;whitelist-exif-data=Orientation%2CResolution%2COriginalDefaultFinalSize%2CCopyright" role="button" title="Darius_Nicholas_1-1693377234060.png" alt="Darius_Nicholas_1-1693377234060.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Another problem is that the code you gave can run on the UHD630 integrated graphics card, but it cannot run on the UHD730 integrated graphics card, and the above error will appear. Excuse me, what is this question? Sorry to bother you, thank you!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Aug 2023 06:38:02 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Compile-error/m-p/1518955#M3249</guid>
      <dc:creator>Darius_Nicholas</dc:creator>
      <dc:date>2023-08-30T06:38:02Z</dc:date>
    </item>
    <item>
      <title>Re: Re:Compile error</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Compile-error/m-p/1520522#M3263</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hi Noorjahan：&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; I have found the cause of the above problem. The reason is that the new graphics card does not support the double data type. When I change double to float, the code can run. Thank you very much!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; However, I now encounter a new problem. When the vector is two-dimensional, the code can run. When the vector is one-dimensional, he code will throw an exception.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;Attached is my code！The function func_apod can run successfully, but the function hanning cannot. It's hard for me to find the reason for the exception! So I want your help! I am sorry for disturbing you! Thanks!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Sep 2023 03:21:49 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Compile-error/m-p/1520522#M3263</guid>
      <dc:creator>Darius_Nicholas</dc:creator>
      <dc:date>2023-09-05T03:21:49Z</dc:date>
    </item>
    <item>
      <title>Re: Compile error</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Compile-error/m-p/1520636#M3264</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;&amp;gt;&amp;gt; I have found the cause of the above problem&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;Glad to know that you resolves your issue.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We have tried your code at our end and we observed that the code includes a file (&lt;EM&gt;#include"functions.h"&lt;/EM&gt;) which is not attached along with your code.&lt;/P&gt;
&lt;P&gt;Please refer to the below screenshot for more details on the error we observed at our end:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="NoorjahanSk_Intel_0-1693909742302.png" style="width: 400px;"&gt;&lt;img src="https://community.intel.com/t5/image/serverpage/image-id/45311iC01CC3407BD8893E/image-size/medium?v=v2&amp;amp;px=400&amp;amp;whitelist-exif-data=Orientation%2CResolution%2COriginalDefaultFinalSize%2CCopyright" role="button" title="NoorjahanSk_Intel_0-1693909742302.png" alt="NoorjahanSk_Intel_0-1693909742302.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Could you please share us the complete code files(.h) so that we can try it from our side?&lt;/P&gt;
&lt;P&gt;Also please share the error log/ Exception you have observed.&lt;/P&gt;
&lt;P&gt;Also please let us know whether you observe this exception on both UHD730 and UHD630 integrated graphics.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;
&lt;P&gt;Noorjahan.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Sep 2023 10:29:25 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Compile-error/m-p/1520636#M3264</guid>
      <dc:creator>NoorjahanSk_Intel</dc:creator>
      <dc:date>2023-09-05T10:29:25Z</dc:date>
    </item>
    <item>
      <title>Re: Compile error</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Compile-error/m-p/1520639#M3265</link>
      <description>&lt;P&gt;Sorry, it was my mistake. header files can be ignored. You can comment out #include "functions.h". This does not affect code execution.&lt;/P&gt;&lt;P&gt;As for M_PI, it is directly defined as 3.1415926.&lt;/P&gt;&lt;P&gt;code: const float M_PI=3.1415926&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Darius_Nicholas_0-1693992508638.png" style="width: 774px;"&gt;&lt;img src="https://community.intel.com/t5/image/serverpage/image-id/45364i9BAFBD67F609654D/image-dimensions/774x417/is-moderation-mode/true?v=v2&amp;amp;whitelist-exif-data=Orientation%2CResolution%2COriginalDefaultFinalSize%2CCopyright" width="774" height="417" role="button" title="Darius_Nicholas_0-1693992508638.png" alt="Darius_Nicholas_0-1693992508638.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;This exception can be observed&amp;nbsp;&lt;SPAN&gt;on both UHD730 and UHD630 integrated graphics.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Sep 2023 09:29:28 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Compile-error/m-p/1520639#M3265</guid>
      <dc:creator>Darius_Nicholas</dc:creator>
      <dc:date>2023-09-06T09:29:28Z</dc:date>
    </item>
    <item>
      <title>Re:Compile error</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Compile-error/m-p/1523249#M3279</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;We are working on your issue. We will get back to you soon.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Noorjahan.&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 13 Sep 2023 06:31:10 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Compile-error/m-p/1523249#M3279</guid>
      <dc:creator>NoorjahanSk_Intel</dc:creator>
      <dc:date>2023-09-13T06:31:10Z</dc:date>
    </item>
    <item>
      <title>Re:Compile error</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Compile-error/m-p/1527991#M3305</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;We have reported this issue to the concerned development team. They are looking into your issue.  We will get back to you soon.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Noorjahan.&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 27 Sep 2023 06:19:19 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Compile-error/m-p/1527991#M3305</guid>
      <dc:creator>NoorjahanSk_Intel</dc:creator>
      <dc:date>2023-09-27T06:19:19Z</dc:date>
    </item>
    <item>
      <title>Re:Compile error</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Compile-error/m-p/1530551#M3317</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Thanks for your patiecnce.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;gt;&amp;gt; I now encounter a new problem. When the vector is two-dimensional, the code can run. When the vector is one-dimensional, he code will throw an exception.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Could you please provide working code when vector is two dimensional so that we can investigate more on this issue?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;gt;&amp;gt;The function func_apod can run successfully, but the function hanning cannot.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Also please let us know what do you mean here by func_apod running successfully but not hanning?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Noorjahan.&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 05 Oct 2023 06:12:14 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Compile-error/m-p/1530551#M3317</guid>
      <dc:creator>NoorjahanSk_Intel</dc:creator>
      <dc:date>2023-10-05T06:12:14Z</dc:date>
    </item>
    <item>
      <title>Re: Re:Compile error</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Compile-error/m-p/1530560#M3318</link>
      <description>&lt;P&gt;terribly sorry! I already know the solution to the problem. I defined M_PI in the header file, and it is of double data type, so the data type returned by the cos function in hanning is also double, so the function cannot run. The new graphics card does not support the double data type. We said this before. Sorry to have delayed you for so long.&amp;nbsp;The problem I encountered has always been that the graphics card does not support the double data type, but I did not pay attention to the definition and cos function in the header file. Really sorry.&lt;/P&gt;</description>
      <pubDate>Thu, 05 Oct 2023 06:49:18 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Compile-error/m-p/1530560#M3318</guid>
      <dc:creator>Darius_Nicholas</dc:creator>
      <dc:date>2023-10-05T06:49:18Z</dc:date>
    </item>
    <item>
      <title>Re:Compile error</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Compile-error/m-p/1530642#M3319</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Thank you for sharing the solution with us.&lt;/P&gt;&lt;P&gt;Glad to know that your issue is resolved. If you need any additional information, please post a new question as this thread will no longer be monitored by Intel.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Noorjahan.&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 05 Oct 2023 11:23:07 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Compile-error/m-p/1530642#M3319</guid>
      <dc:creator>NoorjahanSk_Intel</dc:creator>
      <dc:date>2023-10-05T11:23:07Z</dc:date>
    </item>
  </channel>
</rss>

