<?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 device queue Intel Iris Xe Graphics in OpenCL* for CPU</title>
    <link>https://community.intel.com/t5/OpenCL-for-CPU/device-queue-Intel-Iris-Xe-Graphics/m-p/1389783#M7049</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;I writing opencl program where i use "enqueue_kernel" command. this command need as parameter device queue.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;if i call :&lt;/P&gt;
&lt;P&gt;cl_command_queue_properties properties = {CL_QUEUE_PROPERTIES, CL_QUEUE_ON_DEVICE | CL_QUEUE_ON_DEVICE_DEFAULT, CL_QUEUE_SIZE, 20000,0};&lt;BR /&gt;&lt;BR /&gt;cl_queue_properties queue_properties[] = {&lt;BR /&gt;CL_QUEUE_PROPERTIES, properties, 0 };&lt;BR /&gt;wsp_p-&amp;gt;queue = clCreateCommandQueueWithProperties (wsp_p-&amp;gt;opencl-&amp;gt;ctx, wsp_p-&amp;gt;opencl-&amp;gt;device,queue_properties, &amp;amp;err);&lt;/P&gt;
&lt;P&gt;queue are created , and some kernels(without enqueue_kernel() call) are executed.&lt;/P&gt;
&lt;P&gt;but if i call&lt;/P&gt;
&lt;P&gt;clSetKernelArg (ocl_prog-&amp;gt;kernel, 3, sizeof(cl_command_queue),&lt;BR /&gt;&amp;amp;ocl_data-&amp;gt;queue);&lt;/P&gt;
&lt;P&gt;it return -70 (invalid device queue).&lt;/P&gt;
&lt;P&gt;It seems, that always host side command queue are created&lt;/P&gt;
&lt;P&gt;I read the number of max device queues via :&lt;/P&gt;
&lt;P&gt;err = clGetDeviceInfo (ocldev.device, CL_DEVICE_MAX_ON_DEVICE_QUEUES,&lt;BR /&gt;sizeof(cl_uint), &amp;amp;c,&lt;BR /&gt;&amp;amp;ret_param_size);&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;but the result is 0.&lt;/P&gt;
&lt;P&gt;I am wondering , because the opencl spec says :&lt;/P&gt;
&lt;P&gt;&lt;CODE&gt;CL_​DEVICE_​MAX_​ON_​DEVICE_​QUEUES&lt;/CODE&gt; :&lt;/P&gt;
&lt;P class="tableblock"&gt;The maximum number of device queues that can be created for this device in a single context.&lt;/P&gt;
&lt;P class="tableblock"&gt;&lt;STRONG&gt;The minimum value is 1.&lt;/STRONG&gt;&lt;/P&gt;
&lt;P class="tableblock"&gt;attached is the log of clinfo.&lt;/P&gt;
&lt;P class="tableblock"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="tableblock"&gt;any idea ?&lt;/P&gt;
&lt;P class="tableblock"&gt;best regards&lt;/P&gt;
&lt;P class="tableblock"&gt;Andreas&lt;/P&gt;
&lt;P class="tableblock"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 03 Jun 2022 07:08:49 GMT</pubDate>
    <dc:creator>Andreas4</dc:creator>
    <dc:date>2022-06-03T07:08:49Z</dc:date>
    <item>
      <title>device queue Intel Iris Xe Graphics</title>
      <link>https://community.intel.com/t5/OpenCL-for-CPU/device-queue-Intel-Iris-Xe-Graphics/m-p/1389783#M7049</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;I writing opencl program where i use "enqueue_kernel" command. this command need as parameter device queue.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;if i call :&lt;/P&gt;
&lt;P&gt;cl_command_queue_properties properties = {CL_QUEUE_PROPERTIES, CL_QUEUE_ON_DEVICE | CL_QUEUE_ON_DEVICE_DEFAULT, CL_QUEUE_SIZE, 20000,0};&lt;BR /&gt;&lt;BR /&gt;cl_queue_properties queue_properties[] = {&lt;BR /&gt;CL_QUEUE_PROPERTIES, properties, 0 };&lt;BR /&gt;wsp_p-&amp;gt;queue = clCreateCommandQueueWithProperties (wsp_p-&amp;gt;opencl-&amp;gt;ctx, wsp_p-&amp;gt;opencl-&amp;gt;device,queue_properties, &amp;amp;err);&lt;/P&gt;
&lt;P&gt;queue are created , and some kernels(without enqueue_kernel() call) are executed.&lt;/P&gt;
&lt;P&gt;but if i call&lt;/P&gt;
&lt;P&gt;clSetKernelArg (ocl_prog-&amp;gt;kernel, 3, sizeof(cl_command_queue),&lt;BR /&gt;&amp;amp;ocl_data-&amp;gt;queue);&lt;/P&gt;
&lt;P&gt;it return -70 (invalid device queue).&lt;/P&gt;
&lt;P&gt;It seems, that always host side command queue are created&lt;/P&gt;
&lt;P&gt;I read the number of max device queues via :&lt;/P&gt;
&lt;P&gt;err = clGetDeviceInfo (ocldev.device, CL_DEVICE_MAX_ON_DEVICE_QUEUES,&lt;BR /&gt;sizeof(cl_uint), &amp;amp;c,&lt;BR /&gt;&amp;amp;ret_param_size);&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;but the result is 0.&lt;/P&gt;
&lt;P&gt;I am wondering , because the opencl spec says :&lt;/P&gt;
&lt;P&gt;&lt;CODE&gt;CL_​DEVICE_​MAX_​ON_​DEVICE_​QUEUES&lt;/CODE&gt; :&lt;/P&gt;
&lt;P class="tableblock"&gt;The maximum number of device queues that can be created for this device in a single context.&lt;/P&gt;
&lt;P class="tableblock"&gt;&lt;STRONG&gt;The minimum value is 1.&lt;/STRONG&gt;&lt;/P&gt;
&lt;P class="tableblock"&gt;attached is the log of clinfo.&lt;/P&gt;
&lt;P class="tableblock"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="tableblock"&gt;any idea ?&lt;/P&gt;
&lt;P class="tableblock"&gt;best regards&lt;/P&gt;
&lt;P class="tableblock"&gt;Andreas&lt;/P&gt;
&lt;P class="tableblock"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 03 Jun 2022 07:08:49 GMT</pubDate>
      <guid>https://community.intel.com/t5/OpenCL-for-CPU/device-queue-Intel-Iris-Xe-Graphics/m-p/1389783#M7049</guid>
      <dc:creator>Andreas4</dc:creator>
      <dc:date>2022-06-03T07:08:49Z</dc:date>
    </item>
    <item>
      <title>Re: device queue Intel Iris Xe Graphics</title>
      <link>https://community.intel.com/t5/OpenCL-for-CPU/device-queue-Intel-Iris-Xe-Graphics/m-p/1389788#M7050</link>
      <description>&lt;P&gt;I wrote this to wrong forum. I added it to the GPU forum.&lt;/P&gt;</description>
      <pubDate>Fri, 03 Jun 2022 07:19:10 GMT</pubDate>
      <guid>https://community.intel.com/t5/OpenCL-for-CPU/device-queue-Intel-Iris-Xe-Graphics/m-p/1389788#M7050</guid>
      <dc:creator>Andreas4</dc:creator>
      <dc:date>2022-06-03T07:19:10Z</dc:date>
    </item>
  </channel>
</rss>

