<?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:OpenMP pragma: omp smid not recognized by dpcpp in Intel® oneAPI DPC++/C++ Compiler</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/OpenMP-pragma-omp-smid-not-recognized-by-dpcpp/m-p/1407907#M2436</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Could you please find the below link where we are able to compile and run OpenMP code with dpcpp compiler:&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.intel.com/content/www/us/en/develop/documentation/oneapi-programming-guide/top/software-development-process/composability/c-c-openmp-and-dpc-composability.html" target="_blank"&gt;https://www.intel.com/content/www/us/en/develop/documentation/oneapi-programming-guide/top/software-development-process/composability/c-c-openmp-and-dpc-composability.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;gt;&amp;gt; thank you for your answer&lt;/EM&gt;&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;Varsha&lt;/P&gt;&lt;BR /&gt;</description>
    <pubDate>Fri, 12 Aug 2022 11:37:32 GMT</pubDate>
    <dc:creator>VarshaS_Intel</dc:creator>
    <dc:date>2022-08-12T11:37:32Z</dc:date>
    <item>
      <title>OpenMP pragma: omp smid not recognized by dpcpp</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/OpenMP-pragma-omp-smid-not-recognized-by-dpcpp/m-p/1402525#M2387</link>
      <description>&lt;P&gt;Hello all.&lt;/P&gt;
&lt;P&gt;dpcpp compiler is warning me about a missing omp directive&lt;/P&gt;
&lt;P&gt;```&lt;/P&gt;
&lt;P&gt;matrixLib.c:395:14: error: expected an OpenMP directive&lt;BR /&gt;#pragma omp smid&lt;BR /&gt;^&lt;/P&gt;
&lt;P&gt;```&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;in the following code&lt;/P&gt;
&lt;P&gt;```&lt;/P&gt;
&lt;P&gt;...&lt;/P&gt;
&lt;P&gt;#pragma omp smid&lt;BR /&gt;for(int i=start; i&amp;lt;=end ; i += step)&lt;BR /&gt;&amp;nbsp;&amp;nbsp; out_vector[midx++] = i;&lt;/P&gt;
&lt;P&gt;```&lt;/P&gt;
&lt;P&gt;But I read here&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.intel.com/content/www/us/en/develop/documentation/oneapi-dpcpp-cpp-compiler-dev-guide-and-reference/top/optimization-and-programming/openmp-support/openmp-pragmas.html" target="_blank"&gt;https://www.intel.com/content/www/us/en/develop/documentation/oneapi-dpcpp-cpp-compiler-dev-guide-and-reference/top/optimization-and-programming/openmp-support/openmp-pragmas.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;that omp smid directive is supported.&lt;/P&gt;
&lt;P&gt;this works if compiled with gcc-9 or g++-9&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you explain me what is the right directive with dpcpp?&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;
&lt;P&gt;Danilo&lt;/P&gt;</description>
      <pubDate>Fri, 22 Jul 2022 09:43:48 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/OpenMP-pragma-omp-smid-not-recognized-by-dpcpp/m-p/1402525#M2387</guid>
      <dc:creator>Tomasoni</dc:creator>
      <dc:date>2022-07-22T09:43:48Z</dc:date>
    </item>
    <item>
      <title>Re: OpenMP pragma: omp smid not recognized by dpcpp</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/OpenMP-pragma-omp-smid-not-recognized-by-dpcpp/m-p/1403077#M2388</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;Could you please try using the 'pragma omp simd' since it is a supported directive with the dpcpp compiler? Please find the below link:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.intel.com/content/www/us/en/develop/documentation/oneapi-dpcpp-cpp-compiler-dev-guide-and-reference/top/optimization-and-programming/openmp-support/openmp-pragmas.html" target="_blank" rel="noopener"&gt;https://www.intel.com/content/www/us/en/develop/documentation/oneapi-dpcpp-cpp-compiler-dev-guide-and-reference/top/optimization-and-programming/openmp-support/openmp-pragmas.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;We have tried a sample code and it worked without any errors. 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="VarshaS_Intel_0-1658751835356.png" style="width: 375px;"&gt;&lt;img src="https://community.intel.com/t5/image/serverpage/image-id/31931iA09C2D6BEFBFA60F/image-dimensions/375x239?v=v2&amp;amp;whitelist-exif-data=Orientation%2CResolution%2COriginalDefaultFinalSize%2CCopyright" width="375" height="239" role="button" title="VarshaS_Intel_0-1658751835356.png" alt="VarshaS_Intel_0-1658751835356.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;&amp;gt;&amp;gt;that omp smid directive&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;Could you please elaborate on how to use 'pragma omp smid'?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And also, could you please let us know the Intel DPCPP compiler version, OS details, and sample reproducer code to investigate more on your issue?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;
&lt;P&gt;Varsha&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 25 Jul 2022 12:25:26 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/OpenMP-pragma-omp-smid-not-recognized-by-dpcpp/m-p/1403077#M2388</guid>
      <dc:creator>VarshaS_Intel</dc:creator>
      <dc:date>2022-07-25T12:25:26Z</dc:date>
    </item>
    <item>
      <title>Re:OpenMP pragma: omp smid not recognized by dpcpp</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/OpenMP-pragma-omp-smid-not-recognized-by-dpcpp/m-p/1405078#M2410</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;We have not 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;Varsha&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 01 Aug 2022 10:40:28 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/OpenMP-pragma-omp-smid-not-recognized-by-dpcpp/m-p/1405078#M2410</guid>
      <dc:creator>VarshaS_Intel</dc:creator>
      <dc:date>2022-08-01T10:40:28Z</dc:date>
    </item>
    <item>
      <title>Rif.: OpenMP pragma: omp smid not recognized by dpcpp</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/OpenMP-pragma-omp-smid-not-recognized-by-dpcpp/m-p/1406756#M2420</link>
      <description>&lt;P&gt;Hello, thank you for your answer. I think I was missing `-qopenmp` while compiling with dscpp&lt;/P&gt;
&lt;P&gt;I couldn't find this in the docs.&lt;/P&gt;
&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Mon, 08 Aug 2022 12:45:30 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/OpenMP-pragma-omp-smid-not-recognized-by-dpcpp/m-p/1406756#M2420</guid>
      <dc:creator>Tomasoni</dc:creator>
      <dc:date>2022-08-08T12:45:30Z</dc:date>
    </item>
    <item>
      <title>Re:OpenMP pragma: omp smid not recognized by dpcpp</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/OpenMP-pragma-omp-smid-not-recognized-by-dpcpp/m-p/1407907#M2436</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Could you please find the below link where we are able to compile and run OpenMP code with dpcpp compiler:&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.intel.com/content/www/us/en/develop/documentation/oneapi-programming-guide/top/software-development-process/composability/c-c-openmp-and-dpc-composability.html" target="_blank"&gt;https://www.intel.com/content/www/us/en/develop/documentation/oneapi-programming-guide/top/software-development-process/composability/c-c-openmp-and-dpc-composability.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;gt;&amp;gt; thank you for your answer&lt;/EM&gt;&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;Varsha&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 12 Aug 2022 11:37:32 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/OpenMP-pragma-omp-smid-not-recognized-by-dpcpp/m-p/1407907#M2436</guid>
      <dc:creator>VarshaS_Intel</dc:creator>
      <dc:date>2022-08-12T11:37:32Z</dc:date>
    </item>
  </channel>
</rss>

