<?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 **Internal compiler error** Program used external function '__umodti3' which could not be resolved! in OpenCL* for CPU</title>
    <link>https://community.intel.com/t5/OpenCL-for-CPU/Internal-compiler-error-Program-used-external-function-umodti3/m-p/1369877#M6967</link>
    <description>&lt;P&gt;Hey guys,&lt;/P&gt;
&lt;P&gt;Working on a kernel that uses the OpenCL 128-bit '&lt;EM&gt;unsigned long long'&lt;/EM&gt; datatype, the compiler errors out when fed too many XOR-swap with modulus operations using operands of this type.&lt;/P&gt;
&lt;P&gt;Proof of concept kernel:&lt;/P&gt;
&lt;LI-CODE lang="cpp"&gt;__kernel void test(__private const uint test) {

    // 128-bit unsigned integers.
    __private unsigned long long a, b;

    a = 15;
    b = 103;

    while (a != 0) {

        // XOR-swap.
        a ^= b;
        b ^= a;
        a ^= b;

        // MOD.
        a %= b;
    }
}
&lt;/LI-CODE&gt;
&lt;P&gt;Output when compiling (Intel OpenCL CPU Runtime 18.1, Linux):&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;**Internal compiler error** Program used external function '__umodti3' which could not be resolved!
Please report the issue on Intel OpenCL forum
https://software.intel.com/en-us/forums/opencl for assistance.
 Aborted (core dumped)
&lt;/LI-CODE&gt;
&lt;P&gt;Kernels not using 'unsigned long long' run fine on same system. &lt;/P&gt;
&lt;P&gt;Any help is appreciated &lt;LI-EMOJI id="lia_slightly-smiling-face" title=":slightly_smiling_face:"&gt;&lt;/LI-EMOJI&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 18 Mar 2022 00:33:25 GMT</pubDate>
    <dc:creator>kzwarthoed</dc:creator>
    <dc:date>2022-03-18T00:33:25Z</dc:date>
    <item>
      <title>**Internal compiler error** Program used external function '__umodti3' which could not be resolved!</title>
      <link>https://community.intel.com/t5/OpenCL-for-CPU/Internal-compiler-error-Program-used-external-function-umodti3/m-p/1369877#M6967</link>
      <description>&lt;P&gt;Hey guys,&lt;/P&gt;
&lt;P&gt;Working on a kernel that uses the OpenCL 128-bit '&lt;EM&gt;unsigned long long'&lt;/EM&gt; datatype, the compiler errors out when fed too many XOR-swap with modulus operations using operands of this type.&lt;/P&gt;
&lt;P&gt;Proof of concept kernel:&lt;/P&gt;
&lt;LI-CODE lang="cpp"&gt;__kernel void test(__private const uint test) {

    // 128-bit unsigned integers.
    __private unsigned long long a, b;

    a = 15;
    b = 103;

    while (a != 0) {

        // XOR-swap.
        a ^= b;
        b ^= a;
        a ^= b;

        // MOD.
        a %= b;
    }
}
&lt;/LI-CODE&gt;
&lt;P&gt;Output when compiling (Intel OpenCL CPU Runtime 18.1, Linux):&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;**Internal compiler error** Program used external function '__umodti3' which could not be resolved!
Please report the issue on Intel OpenCL forum
https://software.intel.com/en-us/forums/opencl for assistance.
 Aborted (core dumped)
&lt;/LI-CODE&gt;
&lt;P&gt;Kernels not using 'unsigned long long' run fine on same system. &lt;/P&gt;
&lt;P&gt;Any help is appreciated &lt;LI-EMOJI id="lia_slightly-smiling-face" title=":slightly_smiling_face:"&gt;&lt;/LI-EMOJI&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 18 Mar 2022 00:33:25 GMT</pubDate>
      <guid>https://community.intel.com/t5/OpenCL-for-CPU/Internal-compiler-error-Program-used-external-function-umodti3/m-p/1369877#M6967</guid>
      <dc:creator>kzwarthoed</dc:creator>
      <dc:date>2022-03-18T00:33:25Z</dc:date>
    </item>
    <item>
      <title>Re:**Internal compiler error** Program used external function '__umodti3' which could not be resolved!</title>
      <link>https://community.intel.com/t5/OpenCL-for-CPU/Internal-compiler-error-Program-used-external-function-umodti3/m-p/1374711#M6996</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Can you try the latest OpenCL CPU RT 2022.0? You can download it from &lt;A href="https://www.intel.com/content/www/us/en/developer/articles/technical/intel-cpu-runtime-for-opencl-applications-with-sycl-support.html" target="_blank"&gt;https://www.intel.com/content/www/us/en/developer/articles/technical/intel-cpu-runtime-for-opencl-applications-with-sycl-support.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 06 Apr 2022 07:07:20 GMT</pubDate>
      <guid>https://community.intel.com/t5/OpenCL-for-CPU/Internal-compiler-error-Program-used-external-function-umodti3/m-p/1374711#M6996</guid>
      <dc:creator>cw_intel</dc:creator>
      <dc:date>2022-04-06T07:07:20Z</dc:date>
    </item>
    <item>
      <title>Re:**Internal compiler error** Program used external function '__umodti3' which could not be resolved!</title>
      <link>https://community.intel.com/t5/OpenCL-for-CPU/Internal-compiler-error-Program-used-external-function-umodti3/m-p/1394415#M7060</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 for a long time so we are assuming that the provided details helped you in solving your problem. If you require additional assistance from Intel, please start a new thread.&amp;nbsp;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;Thanks&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 22 Jun 2022 06:31:06 GMT</pubDate>
      <guid>https://community.intel.com/t5/OpenCL-for-CPU/Internal-compiler-error-Program-used-external-function-umodti3/m-p/1394415#M7060</guid>
      <dc:creator>cw_intel</dc:creator>
      <dc:date>2022-06-22T06:31:06Z</dc:date>
    </item>
  </channel>
</rss>

