<?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 Intel GPU: OpenMP Hangs on Target Directive in GPU Compute Software</title>
    <link>https://community.intel.com/t5/GPU-Compute-Software/Intel-GPU-OpenMP-Hangs-on-Target-Directive/m-p/1265261#M72</link>
    <description>&lt;P&gt;I'm having trouble running OpenMP on my Intel GPU. My OpenMP application seems to hang as soon as it encounters an OpenMP directive with the "target" clause.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;OS: x86_64 GNU/Linux&lt;BR /&gt;CPU: Intel(R) Xeon(R) CPU&lt;BR /&gt;Accelerator: Intel Iris Xe MAX&lt;BR /&gt;Toolkit: Intel(R) oneAPI DPC++ Compiler 2021.1 (2020.10.0.1113)&lt;/P&gt;
&lt;P&gt;As an example, the following, sourced from Intel design examples:&lt;/P&gt;
&lt;P&gt;Compilation Tested: icpx -fiopenmp -fopenmp-targets=spir64 -D__STRICT_ANSI__ -g matrix_mul_omp.cpp -o matrix_mul_omp&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;#pragma omp target teams distribute parallel for map(to : a, b) \
map(tofrom : c) thread_limit(128)
{
  for (i = 0; i &amp;lt; M; i++) {
    for (k = 0; k &amp;lt; N; k++) {
      // Each element of the product is just the sum 1+2+...+n
      for (j = 0; j &amp;lt; P; j++) {
        c[i][j] += a[i][k] * b[k][j];
      }
    }
  }
}&lt;/LI-CODE&gt;
&lt;P&gt;This example hangs, even with very small input sizes. I've tried other applications/examples and gotten the same results (hangs on first "target" directive). However, when testing using the default configuration on the Intel DevCloud, they execute successfully.&lt;/P&gt;
&lt;P&gt;Any ideas? Let me know if I can add any more information.&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;</description>
    <pubDate>Wed, 17 Mar 2021 20:09:04 GMT</pubDate>
    <dc:creator>lamb</dc:creator>
    <dc:date>2021-03-17T20:09:04Z</dc:date>
    <item>
      <title>Intel GPU: OpenMP Hangs on Target Directive</title>
      <link>https://community.intel.com/t5/GPU-Compute-Software/Intel-GPU-OpenMP-Hangs-on-Target-Directive/m-p/1265261#M72</link>
      <description>&lt;P&gt;I'm having trouble running OpenMP on my Intel GPU. My OpenMP application seems to hang as soon as it encounters an OpenMP directive with the "target" clause.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;OS: x86_64 GNU/Linux&lt;BR /&gt;CPU: Intel(R) Xeon(R) CPU&lt;BR /&gt;Accelerator: Intel Iris Xe MAX&lt;BR /&gt;Toolkit: Intel(R) oneAPI DPC++ Compiler 2021.1 (2020.10.0.1113)&lt;/P&gt;
&lt;P&gt;As an example, the following, sourced from Intel design examples:&lt;/P&gt;
&lt;P&gt;Compilation Tested: icpx -fiopenmp -fopenmp-targets=spir64 -D__STRICT_ANSI__ -g matrix_mul_omp.cpp -o matrix_mul_omp&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;#pragma omp target teams distribute parallel for map(to : a, b) \
map(tofrom : c) thread_limit(128)
{
  for (i = 0; i &amp;lt; M; i++) {
    for (k = 0; k &amp;lt; N; k++) {
      // Each element of the product is just the sum 1+2+...+n
      for (j = 0; j &amp;lt; P; j++) {
        c[i][j] += a[i][k] * b[k][j];
      }
    }
  }
}&lt;/LI-CODE&gt;
&lt;P&gt;This example hangs, even with very small input sizes. I've tried other applications/examples and gotten the same results (hangs on first "target" directive). However, when testing using the default configuration on the Intel DevCloud, they execute successfully.&lt;/P&gt;
&lt;P&gt;Any ideas? Let me know if I can add any more information.&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 17 Mar 2021 20:09:04 GMT</pubDate>
      <guid>https://community.intel.com/t5/GPU-Compute-Software/Intel-GPU-OpenMP-Hangs-on-Target-Directive/m-p/1265261#M72</guid>
      <dc:creator>lamb</dc:creator>
      <dc:date>2021-03-17T20:09:04Z</dc:date>
    </item>
    <item>
      <title>Re:Intel GPU: OpenMP Hangs on Target Directive</title>
      <link>https://community.intel.com/t5/GPU-Compute-Software/Intel-GPU-OpenMP-Hangs-on-Target-Directive/m-p/1265489#M73</link>
      <description>&lt;P&gt;Hi Jacob,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;This was a known issue and has been included in the release notes (&lt;A href="https://software.intel.com/content/www/us/en/develop/articles/intel-oneapi-dpc-c-compiler-release-notes.html" rel="noopener noreferrer" target="_blank"&gt;Intel® oneAPI Toolkits DPC++/C++ Compiler Release Notes&lt;/A&gt;).&lt;/P&gt;&lt;P&gt;The OpenMP offload hangs for Level0 backend.&lt;/P&gt;&lt;P&gt;Intel has released a patch for this as 2021.1.2 if you want to continue with Level0 please install the latest patch and follow the steps mentioned in the release notes.&lt;/P&gt;&lt;P&gt;Else if you can use the OpenCL backend and continue using your current version.&lt;/P&gt;&lt;P&gt;The default backend is Level0 and you can change using this environment variable &lt;B&gt;&lt;I&gt;export LIBOMPTARGET_PLUGIN=OPENCL.&lt;/I&gt;&lt;/B&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Let us know if you face any issues.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Prasanth&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 18 Mar 2021 09:27:43 GMT</pubDate>
      <guid>https://community.intel.com/t5/GPU-Compute-Software/Intel-GPU-OpenMP-Hangs-on-Target-Directive/m-p/1265489#M73</guid>
      <dc:creator>PrasanthD_intel</dc:creator>
      <dc:date>2021-03-18T09:27:43Z</dc:date>
    </item>
    <item>
      <title>Re:Intel GPU: OpenMP Hangs on Target Directive</title>
      <link>https://community.intel.com/t5/GPU-Compute-Software/Intel-GPU-OpenMP-Hangs-on-Target-Directive/m-p/1266011#M74</link>
      <description>&lt;P&gt;Hi Jacob,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Thanks for the confirmation.&lt;/P&gt;&lt;P&gt;As your issue has been resolved, we are closing this thread. If you require additional assistance from Intel, please start a new thread. Any further interaction in this thread will be considered community only&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Prasanth&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 19 Mar 2021 12:20:33 GMT</pubDate>
      <guid>https://community.intel.com/t5/GPU-Compute-Software/Intel-GPU-OpenMP-Hangs-on-Target-Directive/m-p/1266011#M74</guid>
      <dc:creator>PrasanthD_intel</dc:creator>
      <dc:date>2021-03-19T12:20:33Z</dc:date>
    </item>
  </channel>
</rss>

