<?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 The first thing to check is in OpenCL* for CPU</title>
    <link>https://community.intel.com/t5/OpenCL-for-CPU/pyopencl-RuntimeError-device-not-available/m-p/1050945#M4032</link>
    <description>&lt;P&gt;The first thing to check is that OpenCL is installed and working. &amp;nbsp;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 12px;"&gt;You can try the OpenCL CapsBasic sample:&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://software.intel.com/en-us/articles/caps-basic" style="font-size: 12px;"&gt;https://software.intel.com/en-us/articles/caps-basic&lt;/A&gt;&lt;SPAN style="font-size: 12px;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;This processor does not contain an Intel integrated graphics GPU, so you will need to select a CPU device.&lt;/P&gt;

&lt;P&gt;The implementation of pyopencl is a bit out of our scope, but we can help with getting OpenCL going.&lt;/P&gt;</description>
    <pubDate>Thu, 04 May 2017 18:28:11 GMT</pubDate>
    <dc:creator>Jeffrey_M_Intel1</dc:creator>
    <dc:date>2017-05-04T18:28:11Z</dc:date>
    <item>
      <title>pyopencl.RuntimeError : device not available</title>
      <link>https://community.intel.com/t5/OpenCL-for-CPU/pyopencl-RuntimeError-device-not-available/m-p/1050939#M4026</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;

&lt;P&gt;We have a DELL server PowerEdge M600 with Intel Xeon processor E5450 @ 3.00 GHz running RedHat RHEL6 [2.6.32-573.7.1.el6.x86_64] on 64bit platform.&lt;/P&gt;

&lt;P&gt;ruby and redhat-lsb-core have been installed.&lt;/P&gt;

&lt;P&gt;Has downloaded&amp;nbsp;ocl-icd-2.2.7.tar.gz, untarred and built successfully.&lt;/P&gt;

&lt;P&gt;opencl_runtime_15.1_x64_5.0.0.57.tgz has been installed successfully too.&lt;/P&gt;

&lt;P&gt;when running a simple python script:&lt;/P&gt;

&lt;PRE style="padding: 1em; border: 1px dashed rgb(47, 111, 171); color: rgb(0, 0, 0); line-height: 1.1em; background-color: rgb(249, 249, 249);"&gt;import pyopencl&lt;/PRE&gt;

&lt;PRE style="padding: 1em; border: 1px dashed rgb(47, 111, 171); color: rgb(0, 0, 0); line-height: 1.1em; background-color: rgb(249, 249, 249);"&gt;pyopencl.create_some_context()&lt;/PRE&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;will always get this error message:&lt;/P&gt;

&lt;P&gt;Choose platform:&lt;BR /&gt;
	[0] &amp;lt;pyopencl.Platform 'Intel(R) OpenCL' at 0x1691680&amp;gt;&lt;BR /&gt;
	Choice [0]:&lt;BR /&gt;
	Set the environment variable PYOPENCL_CTX='' to avoid being asked again.&lt;BR /&gt;
	Traceback (most recent call last):&lt;BR /&gt;
	&amp;nbsp; File "&amp;lt;stdin&amp;gt;", line 1, in &amp;lt;module&amp;gt;&lt;BR /&gt;
	&amp;nbsp; File "/test/pyopencl/__init__.py", line 886, in create_some_context&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; return Context(devices)&lt;BR /&gt;
	pyopencl.RuntimeError: Context failed: device not available&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;This problem does not occur on other Dell poweredge server with E5xxx processor.&lt;/P&gt;

&lt;P&gt;Anyone has a clue and solution to this?&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 06 Nov 2015 02:57:10 GMT</pubDate>
      <guid>https://community.intel.com/t5/OpenCL-for-CPU/pyopencl-RuntimeError-device-not-available/m-p/1050939#M4026</guid>
      <dc:creator>Teddy_C_</dc:creator>
      <dc:date>2015-11-06T02:57:10Z</dc:date>
    </item>
    <item>
      <title>Hi Teddy,</title>
      <link>https://community.intel.com/t5/OpenCL-for-CPU/pyopencl-RuntimeError-device-not-available/m-p/1050940#M4027</link>
      <description>&lt;P&gt;Hi Teddy,&lt;/P&gt;

&lt;P&gt;Could you download and run the following very basic OpenCL sample: &lt;A href="https://software.intel.com/en-us/articles/caps-basic"&gt;https://software.intel.com/en-us/articles/caps-basic&lt;/A&gt; ? Please post the output to this forum. Just want to make sure that your OpenCL is actually installed properly.&lt;/P&gt;</description>
      <pubDate>Sat, 07 Nov 2015 01:04:07 GMT</pubDate>
      <guid>https://community.intel.com/t5/OpenCL-for-CPU/pyopencl-RuntimeError-device-not-available/m-p/1050940#M4027</guid>
      <dc:creator>Robert_I_Intel</dc:creator>
      <dc:date>2015-11-07T01:04:07Z</dc:date>
    </item>
    <item>
      <title>Hi Robert,</title>
      <link>https://community.intel.com/t5/OpenCL-for-CPU/pyopencl-RuntimeError-device-not-available/m-p/1050941#M4028</link>
      <description>&lt;DIV style="color: rgb(34, 34, 34); font-family: arial, sans-serif; font-size: 12.8px; line-height: normal;"&gt;Hi Robert,&lt;/DIV&gt;

&lt;DIV style="color: rgb(34, 34, 34); font-family: arial, sans-serif; font-size: 12.8px; line-height: normal;"&gt;&amp;nbsp;&lt;/DIV&gt;

&lt;DIV style="color: rgb(34, 34, 34); font-family: arial, sans-serif; font-size: 12.8px; line-height: normal;"&gt;Thanks for your post/reply.&lt;/DIV&gt;

&lt;DIV style="color: rgb(34, 34, 34); font-family: arial, sans-serif; font-size: 12.8px; line-height: normal;"&gt;I have downloaded from the link you gave for Linux platform.&lt;/DIV&gt;

&lt;DIV style="color: rgb(34, 34, 34); font-family: arial, sans-serif; font-size: 12.8px; line-height: normal;"&gt;&amp;nbsp;&lt;/DIV&gt;

&lt;DIV style="color: rgb(34, 34, 34); font-family: arial, sans-serif; font-size: 12.8px; line-height: normal;"&gt;
	&lt;DIV style="color: rgb(34, 34, 34); font-family: arial, sans-serif; font-size: 12.8px; line-height: normal;"&gt;&lt;SPAN style="font-size: 12.8px;"&gt;This is the result when i ran './capsbasic':&lt;/SPAN&gt;&lt;/DIV&gt;

	&lt;DIV style="color: rgb(34, 34, 34); font-family: arial, sans-serif; font-size: 12.8px; line-height: normal;"&gt;&amp;nbsp;&lt;/DIV&gt;

	&lt;DIV style="color: rgb(34, 34, 34); font-family: arial, sans-serif; font-size: 12.8px; line-height: normal;"&gt;==============================&lt;WBR /&gt;==============================&lt;WBR /&gt;===&lt;/DIV&gt;

	&lt;DIV style="color: rgb(34, 34, 34); font-family: arial, sans-serif; font-size: 12.8px; line-height: normal;"&gt;
		&lt;DIV&gt;Number of available platforms: 1&lt;/DIV&gt;

		&lt;DIV&gt;Platform names:&lt;/DIV&gt;

		&lt;DIV&gt;&amp;nbsp; &amp;nbsp; [0] Intel(R) OpenCL [Selected]&lt;/DIV&gt;

		&lt;DIV&gt;Number of devices available for each type:&lt;/DIV&gt;

		&lt;DIV&gt;&amp;nbsp; &amp;nbsp; CL_DEVICE_TYPE_CPU: 1&lt;/DIV&gt;

		&lt;DIV&gt;&amp;nbsp; &amp;nbsp; CL_DEVICE_TYPE_GPU: 0&lt;/DIV&gt;

		&lt;DIV&gt;&amp;nbsp; &amp;nbsp; CL_DEVICE_TYPE_ACCELERATOR: 0&lt;/DIV&gt;

		&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;

		&lt;DIV&gt;*** Detailed information for each device ***&lt;/DIV&gt;

		&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;

		&lt;DIV&gt;CL_DEVICE_TYPE_CPU[0]&lt;/DIV&gt;

		&lt;DIV&gt;&amp;nbsp; &amp;nbsp; CL_DEVICE_NAME: Intel(R) Xeon(R) CPU &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; E5450 &amp;nbsp;@ 3.00GHz&lt;/DIV&gt;

		&lt;DIV&gt;&amp;nbsp; &amp;nbsp; CL_DEVICE_AVAILABLE: 1&lt;/DIV&gt;

		&lt;DIV&gt;&amp;nbsp; &amp;nbsp; CL_DEVICE_VENDOR: Intel(R) Corporation&lt;/DIV&gt;

		&lt;DIV&gt;&amp;nbsp; &amp;nbsp; CL_DEVICE_PROFILE: FULL_PROFILE&lt;/DIV&gt;

		&lt;DIV&gt;&amp;nbsp; &amp;nbsp; CL_DEVICE_VERSION: OpenCL 1.2 (Build 57)&lt;/DIV&gt;

		&lt;DIV&gt;&amp;nbsp; &amp;nbsp; CL_DRIVER_VERSION: 1.2.0.57&lt;/DIV&gt;

		&lt;DIV&gt;&amp;nbsp; &amp;nbsp; CL_DEVICE_OPENCL_C_VERSION: OpenCL C 1.2&lt;/DIV&gt;

		&lt;DIV&gt;&amp;nbsp; &amp;nbsp; CL_DEVICE_MAX_COMPUTE_UNITS: 8&lt;/DIV&gt;

		&lt;DIV&gt;&amp;nbsp; &amp;nbsp; CL_DEVICE_MAX_CLOCK_FREQUENCY: 3000&lt;/DIV&gt;

		&lt;DIV&gt;&amp;nbsp; &amp;nbsp; CL_DEVICE_MAX_WORK_GROUP_SIZE: 8192&lt;/DIV&gt;

		&lt;DIV&gt;&amp;nbsp; &amp;nbsp; CL_DEVICE_ADDRESS_BITS: 64&lt;/DIV&gt;

		&lt;DIV&gt;&amp;nbsp; &amp;nbsp; CL_DEVICE_MEM_BASE_ADDR_ALIGN: 1024&lt;/DIV&gt;

		&lt;DIV&gt;&amp;nbsp; &amp;nbsp; CL_DEVICE_MAX_MEM_ALLOC_SIZE: 8417054720&lt;/DIV&gt;

		&lt;DIV&gt;&amp;nbsp; &amp;nbsp; CL_DEVICE_GLOBAL_MEM_SIZE: 33668218880&lt;/DIV&gt;

		&lt;DIV&gt;&amp;nbsp; &amp;nbsp; CL_DEVICE_MAX_CONSTANT_BUFFER_&lt;WBR /&gt;SIZE: 131072&lt;/DIV&gt;

		&lt;DIV&gt;&amp;nbsp; &amp;nbsp; CL_DEVICE_GLOBAL_MEM_CACHE_&lt;WBR /&gt;SIZE: 6291456&lt;/DIV&gt;

		&lt;DIV&gt;&amp;nbsp; &amp;nbsp; CL_DEVICE_GLOBAL_MEM_&lt;WBR /&gt;CACHELINE_SIZE: 64&lt;/DIV&gt;

		&lt;DIV&gt;&amp;nbsp; &amp;nbsp; CL_DEVICE_LOCAL_MEM_SIZE: 32768&lt;/DIV&gt;

		&lt;DIV&gt;&amp;nbsp; &amp;nbsp; CL_DEVICE_PROFILING_TIMER_&lt;WBR /&gt;RESOLUTION: 1&lt;/DIV&gt;

		&lt;DIV&gt;&amp;nbsp; &amp;nbsp; CL_DEVICE_IMAGE_SUPPORT: 1&lt;/DIV&gt;

		&lt;DIV&gt;&amp;nbsp; &amp;nbsp; CL_DEVICE_ERROR_CORRECTION_&lt;WBR /&gt;SUPPORT: 0&lt;/DIV&gt;

		&lt;DIV&gt;&amp;nbsp; &amp;nbsp; CL_DEVICE_HOST_UNIFIED_MEMORY: 1&lt;/DIV&gt;

		&lt;DIV&gt;&amp;nbsp; &amp;nbsp; CL_DEVICE_EXTENSIONS: cl_khr_icd cl_khr_global_int32_base_&lt;WBR /&gt;atomics cl_khr_global_int32_extended_&lt;WBR /&gt;atomics cl_khr_local_int32_base_&lt;WBR /&gt;atomics cl_khr_local_int32_extended_&lt;WBR /&gt;atomics cl_khr_byte_addressable_store cl_khr_depth_images cl_khr_3d_image_writes cl_intel_exec_by_local_thread cl_khr_spir cl_khr_fp64&lt;/DIV&gt;

		&lt;DIV&gt;&amp;nbsp; &amp;nbsp; CL_DEVICE_PREFERRED_VECTOR_&lt;WBR /&gt;WIDTH_INT: 1&lt;/DIV&gt;

		&lt;DIV&gt;&amp;nbsp; &amp;nbsp; CL_DEVICE_PREFERRED_VECTOR_&lt;WBR /&gt;WIDTH_LONG: 1&lt;/DIV&gt;

		&lt;DIV&gt;&amp;nbsp; &amp;nbsp; CL_DEVICE_PREFERRED_VECTOR_&lt;WBR /&gt;WIDTH_FLOAT: 1&lt;/DIV&gt;

		&lt;DIV&gt;&amp;nbsp; &amp;nbsp; CL_DEVICE_PREFERRED_VECTOR_&lt;WBR /&gt;WIDTH_DOUBLE: 1&lt;/DIV&gt;

		&lt;DIV&gt;&amp;nbsp; &amp;nbsp; CL_DEVICE_NATIVE_VECTOR_WIDTH_&lt;WBR /&gt;INT: 4&lt;/DIV&gt;

		&lt;DIV&gt;&amp;nbsp; &amp;nbsp; CL_DEVICE_NATIVE_VECTOR_WIDTH_&lt;WBR /&gt;LONG: 2&lt;/DIV&gt;

		&lt;DIV&gt;&amp;nbsp; &amp;nbsp; CL_DEVICE_NATIVE_VECTOR_WIDTH_&lt;WBR /&gt;FLOAT: 4&lt;/DIV&gt;

		&lt;DIV&gt;&amp;nbsp; &amp;nbsp; CL_DEVICE_NATIVE_VECTOR_WIDTH_&lt;WBR /&gt;DOUBLE: 2&lt;/DIV&gt;
	&lt;/DIV&gt;

	&lt;DIV style="color: rgb(34, 34, 34); font-family: arial, sans-serif; font-size: 12.8px; line-height: normal;"&gt;==============================&lt;WBR /&gt;==============================&lt;WBR /&gt;===&lt;/DIV&gt;

	&lt;DIV style="color: rgb(34, 34, 34); font-family: arial, sans-serif; font-size: 12.8px; line-height: normal;"&gt;&amp;nbsp;&lt;/DIV&gt;

	&lt;DIV style="color: rgb(34, 34, 34); font-family: arial, sans-serif; font-size: 12.8px; line-height: normal;"&gt;&amp;nbsp;&lt;/DIV&gt;

	&lt;DIV style="color: rgb(34, 34, 34); font-family: arial, sans-serif; font-size: 12.8px; line-height: normal;"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Mon, 09 Nov 2015 02:25:11 GMT</pubDate>
      <guid>https://community.intel.com/t5/OpenCL-for-CPU/pyopencl-RuntimeError-device-not-available/m-p/1050941#M4028</guid>
      <dc:creator>Teddy_C_</dc:creator>
      <dc:date>2015-11-09T02:25:11Z</dc:date>
    </item>
    <item>
      <title>Hi Teddy,</title>
      <link>https://community.intel.com/t5/OpenCL-for-CPU/pyopencl-RuntimeError-device-not-available/m-p/1050942#M4029</link>
      <description>&lt;P&gt;Hi Teddy,&lt;/P&gt;

&lt;P&gt;I am suspecting that what's happening is that you are by default trying to select a GPU device, which is not available for your platform. Try to explicitly select a&amp;nbsp;CPU device:&lt;/P&gt;

&lt;P&gt;&lt;FONT size="1"&gt;import pyopencl as cl&lt;/FONT&gt;&lt;/P&gt;

&lt;P&gt;&lt;FONT size="1"&gt;platform = cl.get_platforms()[0]&lt;/FONT&gt;&lt;/P&gt;

&lt;P&gt;&lt;FONT size="1"&gt;device = platform.get_devices()[0]&lt;/FONT&gt;&lt;/P&gt;

&lt;P&gt;&lt;FONT size="1"&gt;print(device)&lt;/FONT&gt;&lt;/P&gt;

&lt;P&gt;Let me know if that worked for you.&lt;/P&gt;</description>
      <pubDate>Mon, 09 Nov 2015 22:53:07 GMT</pubDate>
      <guid>https://community.intel.com/t5/OpenCL-for-CPU/pyopencl-RuntimeError-device-not-available/m-p/1050942#M4029</guid>
      <dc:creator>Robert_I_Intel</dc:creator>
      <dc:date>2015-11-09T22:53:07Z</dc:date>
    </item>
    <item>
      <title>Hi Robert,</title>
      <link>https://community.intel.com/t5/OpenCL-for-CPU/pyopencl-RuntimeError-device-not-available/m-p/1050943#M4030</link>
      <description>&lt;P&gt;Hi Robert,&lt;/P&gt;

&lt;P&gt;Thanks for the codes, it works.&lt;/P&gt;

&lt;P&gt;But its strange that the previous codes dont work on that particular machine, others are fine.&lt;/P&gt;</description>
      <pubDate>Wed, 11 Nov 2015 03:41:40 GMT</pubDate>
      <guid>https://community.intel.com/t5/OpenCL-for-CPU/pyopencl-RuntimeError-device-not-available/m-p/1050943#M4030</guid>
      <dc:creator>Teddy_C_</dc:creator>
      <dc:date>2015-11-11T03:41:40Z</dc:date>
    </item>
    <item>
      <title>Dear all.</title>
      <link>https://community.intel.com/t5/OpenCL-for-CPU/pyopencl-RuntimeError-device-not-available/m-p/1050944#M4031</link>
      <description>&lt;P&gt;Dear all.&lt;/P&gt;

&lt;P&gt;I have the same problem and i can't find a solution.&lt;/P&gt;

&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper"&gt;&lt;img src="https://community.intel.com/t5/image/serverpage/image-id/8183i147D8B4528FAD847/image-size/large?v=v2&amp;amp;px=999&amp;amp;whitelist-exif-data=Orientation%2CResolution%2COriginalDefaultFinalSize%2CCopyright" title="Screenshot_2.png" alt="Screenshot_2.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper"&gt;&lt;img src="https://community.intel.com/t5/image/serverpage/image-id/8184iECF9BA602F06F9C8/image-size/large?v=v2&amp;amp;px=999&amp;amp;whitelist-exif-data=Orientation%2CResolution%2COriginalDefaultFinalSize%2CCopyright" title="Screenshot_1.png" alt="Screenshot_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 03 May 2017 15:06:40 GMT</pubDate>
      <guid>https://community.intel.com/t5/OpenCL-for-CPU/pyopencl-RuntimeError-device-not-available/m-p/1050944#M4031</guid>
      <dc:creator>Tony_C_</dc:creator>
      <dc:date>2017-05-03T15:06:40Z</dc:date>
    </item>
    <item>
      <title>The first thing to check is</title>
      <link>https://community.intel.com/t5/OpenCL-for-CPU/pyopencl-RuntimeError-device-not-available/m-p/1050945#M4032</link>
      <description>&lt;P&gt;The first thing to check is that OpenCL is installed and working. &amp;nbsp;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 12px;"&gt;You can try the OpenCL CapsBasic sample:&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://software.intel.com/en-us/articles/caps-basic" style="font-size: 12px;"&gt;https://software.intel.com/en-us/articles/caps-basic&lt;/A&gt;&lt;SPAN style="font-size: 12px;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;This processor does not contain an Intel integrated graphics GPU, so you will need to select a CPU device.&lt;/P&gt;

&lt;P&gt;The implementation of pyopencl is a bit out of our scope, but we can help with getting OpenCL going.&lt;/P&gt;</description>
      <pubDate>Thu, 04 May 2017 18:28:11 GMT</pubDate>
      <guid>https://community.intel.com/t5/OpenCL-for-CPU/pyopencl-RuntimeError-device-not-available/m-p/1050945#M4032</guid>
      <dc:creator>Jeffrey_M_Intel1</dc:creator>
      <dc:date>2017-05-04T18:28:11Z</dc:date>
    </item>
  </channel>
</rss>

