<?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:Compiler fails when vectorizing loop with type conversion in OpenCL* for CPU</title>
    <link>https://community.intel.com/t5/OpenCL-for-CPU/Compiler-fails-when-vectorizing-loop-with-type-conversion/m-p/1483928#M7149</link>
    <description>&lt;P&gt;Hi, &lt;/P&gt;&lt;P&gt;​&lt;/P&gt;&lt;P&gt;Can you provide the command you used to compile the kernel code?&lt;/P&gt;&lt;P&gt;BTW, ​have you used other versions of OpenCL CPU RT before? If so, please tell us the OpenCL CPU RT version that can work successfully. &lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;BR /&gt;</description>
    <pubDate>Mon, 08 May 2023 03:07:17 GMT</pubDate>
    <dc:creator>cw_intel</dc:creator>
    <dc:date>2023-05-08T03:07:17Z</dc:date>
    <item>
      <title>Compiler fails when vectorizing loop with type conversion</title>
      <link>https://community.intel.com/t5/OpenCL-for-CPU/Compiler-fails-when-vectorizing-loop-with-type-conversion/m-p/1478894#M7146</link>
      <description>&lt;P&gt;Hi to all.&lt;/P&gt;
&lt;P&gt;I am having the following issue with the Intel CPU Runtime for OpenCL version 23.1.46319:&lt;/P&gt;
&lt;P&gt;This code&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="cpp"&gt;		__kernel void logisticMap(__global const float *params,
		__global const float *initialValues, __global float *result, __global unsigned int *bits, const int numIters, const int k)
		{
			int i = get_global_id(0);
			int j = get_global_id(1);
			int ti = get_local_id(0);
			
			int n = get_global_size(0);
			int nt = get_local_size(0);
			int nb = n / nt;

			const float kpow = pown(10.0f, k);
			float r, s;
			unsigned int w;
			r = initialValues[i];
			s = params[i];
			int cnt = 0;
			w = 0;
//			__attribute__((opencl_unroll_hint))
			for (int ic = 0; ic &amp;lt; numIters; ic++)
			{
				r = s * r * (1.0f - r);
				float t = r * kpow;
				float u = t - floor(t);
				unsigned int x = (unsigned int) step(0.5f, u);
				x ^= 1;
				w |= x &amp;lt;&amp;lt; (ic % 32);
				if (ic % 32 == 31)
				{
					const int index = i * (numIters / 32) + cnt++;
					bits[index] = w;
					w = 0;
				}
			}
			result[i] = r;

		}&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;outputs&lt;/P&gt;
&lt;P&gt;**Internal compiler error** Cannot select: 0x11c67196648: v4f32 = X86ISD::VRNDSCALE contract 0x11c67196568, TargetConstant:i32&amp;lt;1&amp;gt;&lt;BR /&gt;0x11c67196568: v4f32 = fmul 0x11c671969c8, 0x11c67195ed8&lt;BR /&gt;0x11c671969c8: v4f32,ch = CopyFromReg 0x11c5e7119a8, Register:v4f32 %12&lt;BR /&gt;0x11c67196108: v4f32 = Register %12&lt;BR /&gt;0x11c67195ed8: v4f32 = fmul 0x11c6719a1f8, 0x11c6719d878&lt;BR /&gt;0x11c6719a1f8: v4f32 = fmul 0x11c67195b58, 0x11c6719a498&lt;BR /&gt;0x11c67195b58: v4f32,ch = CopyFromReg 0x11c5e7119a8, Register:v4f32 %19&lt;BR /&gt;0x11c6719ddb8: v4f32 = Register %19&lt;BR /&gt;0x11c6719a498: v4f32,ch = CopyFromReg 0x11c5e7119a8, Register:v4f32 %20&lt;BR /&gt;0x11c6719db88: v4f32 = Register %20&lt;BR /&gt;0x11c6719d878: v4f32 = fsub 0x11c6719d9c8, 0x11c6719a498&lt;BR /&gt;0x11c6719d9c8: v4f32,ch = load&amp;lt;(load (s128) from constant-pool)&amp;gt; 0x11c5e7119a8, 0x11c67195e68, undef:i64&lt;BR /&gt;0x11c67195e68: i64 = X86ISD::Wrapper TargetConstantPool:i64&amp;lt;&amp;gt; 0&lt;BR /&gt;0x11c67196958: i64 = TargetConstantPool&amp;lt;&amp;gt; 0&lt;BR /&gt;0x11c6719daa8: i64 = undef&lt;BR /&gt;0x11c6719a498: v4f32,ch = CopyFromReg 0x11c5e7119a8, Register:v4f32 %20&lt;BR /&gt;0x11c6719db88: v4f32 = Register %20&lt;BR /&gt;0x11c67199fc8: i32 = TargetConstant&amp;lt;1&amp;gt;&lt;BR /&gt;In function: logisticMap&lt;/P&gt;
&lt;P&gt;after attempt to compile.&lt;/P&gt;</description>
      <pubDate>Fri, 21 Apr 2023 00:43:27 GMT</pubDate>
      <guid>https://community.intel.com/t5/OpenCL-for-CPU/Compiler-fails-when-vectorizing-loop-with-type-conversion/m-p/1478894#M7146</guid>
      <dc:creator>overnite81</dc:creator>
      <dc:date>2023-04-21T00:43:27Z</dc:date>
    </item>
    <item>
      <title>Re:Compiler fails when vectorizing loop with type conversion</title>
      <link>https://community.intel.com/t5/OpenCL-for-CPU/Compiler-fails-when-vectorizing-loop-with-type-conversion/m-p/1483928#M7149</link>
      <description>&lt;P&gt;Hi, &lt;/P&gt;&lt;P&gt;​&lt;/P&gt;&lt;P&gt;Can you provide the command you used to compile the kernel code?&lt;/P&gt;&lt;P&gt;BTW, ​have you used other versions of OpenCL CPU RT before? If so, please tell us the OpenCL CPU RT version that can work successfully. &lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 08 May 2023 03:07:17 GMT</pubDate>
      <guid>https://community.intel.com/t5/OpenCL-for-CPU/Compiler-fails-when-vectorizing-loop-with-type-conversion/m-p/1483928#M7149</guid>
      <dc:creator>cw_intel</dc:creator>
      <dc:date>2023-05-08T03:07:17Z</dc:date>
    </item>
    <item>
      <title>Re:Compiler fails when vectorizing loop with type conversion</title>
      <link>https://community.intel.com/t5/OpenCL-for-CPU/Compiler-fails-when-vectorizing-loop-with-type-conversion/m-p/1490757#M7154</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11pt; font-family: Calibri;"&gt;We haven't heard back from you for a long time so we are assuming that &lt;/SPAN&gt;you have found a solution on your own and we will no longer respond to this thread.&amp;nbsp;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;Thanks,&lt;/P&gt;&lt;P&gt;Chen&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 29 May 2023 02:23:05 GMT</pubDate>
      <guid>https://community.intel.com/t5/OpenCL-for-CPU/Compiler-fails-when-vectorizing-loop-with-type-conversion/m-p/1490757#M7154</guid>
      <dc:creator>cw_intel</dc:creator>
      <dc:date>2023-05-29T02:23:05Z</dc:date>
    </item>
  </channel>
</rss>

