<?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: Open CL Null Platform behaviour in GPU Compute Software</title>
    <link>https://community.intel.com/t5/GPU-Compute-Software/Open-CL-Null-Platform-behaviour/m-p/1301334#M199</link>
    <description>&lt;P&gt;Hi Ben,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for the answer.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Yeah I think I got it now. I was indeed using the&amp;nbsp;&lt;A class="sub_section_element_selectors" href="https://github.com/OCL-dev/ocl-icd" target="_blank" rel="nofollow noopener noreferrer"&gt;https://github.com/OCL-dev/ocl-icd&lt;/A&gt;&amp;nbsp;loader and the uploader helped me out a bit.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I was more worried about Open CL not running the version 3.0 but an earlier one, because I was told the 3.0 version was needed for another program. Just to update the post this is how the end of my clinfo now looks:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;NULL platform behavior
  clGetPlatformInfo(NULL, CL_PLATFORM_NAME, ...)  Intel(R) OpenCL HD Graphics
  clGetDeviceIDs(NULL, CL_DEVICE_TYPE_ALL, ...)   Success [INTEL]
  clCreateContext(NULL, ...) [default]            Success [INTEL]
  clCreateContext(NULL, ...) [other]              �A�;�U
  clCreateContextFromType(NULL, CL_DEVICE_TYPE_DEFAULT)  Success (1)
    Platform Name                                 Intel(R) OpenCL HD Graphics
    Device Name                                   Intel(R) UHD Graphics [0x9bca]
  clCreateContextFromType(NULL, CL_DEVICE_TYPE_CPU)  No devices found in platform
  clCreateContextFromType(NULL, CL_DEVICE_TYPE_GPU)  Success (1)
    Platform Name                                 Intel(R) OpenCL HD Graphics
    Device Name                                   Intel(R) UHD Graphics [0x9bca]
  clCreateContextFromType(NULL, CL_DEVICE_TYPE_ACCELERATOR)  No devices found in platform
  clCreateContextFromType(NULL, CL_DEVICE_TYPE_CUSTOM)  No devices found in platform
  clCreateContextFromType(NULL, CL_DEVICE_TYPE_ALL)  Success (1)
    Platform Name                                 Intel(R) OpenCL HD Graphics
    Device Name                                   Intel(R) UHD Graphics [0x9bca]

ICD loader properties
  ICD loader Name                                 OpenCL ICD Loader
  ICD loader Vendor                               OCL Icd free software
  ICD loader Version                              2.3.0
  ICD loader Profile                              OpenCL 3.0
	NOTE:	your OpenCL library declares to support OpenCL 3.0,
		but it seems to support up to OpenCL 2.2 only.
	NOTE:	your OpenCL library only supports OpenCL 2.2,
		but some installed platforms support OpenCL 3.0.
		Programs using 3.0 features may crash
		or behave unexpectedly&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Mon, 26 Jul 2021 16:25:45 GMT</pubDate>
    <dc:creator>MAMorgado</dc:creator>
    <dc:date>2021-07-26T16:25:45Z</dc:date>
    <item>
      <title>Open CL Null Platform behaviour</title>
      <link>https://community.intel.com/t5/GPU-Compute-Software/Open-CL-Null-Platform-behaviour/m-p/1295011#M181</link>
      <description>&lt;P&gt;Hi!&lt;BR /&gt;There's a problem with my OpenCL... I installed it through Intel's website (&lt;A href="https://software.intel.com/content/www/us/en/develop/articles/opencl-drivers.html" target="_blank"&gt;https://software.intel.com/content/www/us/en/develop/articles/opencl-drivers.html&lt;/A&gt;)&amp;nbsp; Intel® Graphics Technology Runtimes since I have the UHD Comet Lake Graphics.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;After building it I ran clinfo and this were the results. Do you know why in the end I get null platform problems?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Number of platforms 2&lt;BR /&gt;Platform Name Intel(R) OpenCL HD Graphics&lt;BR /&gt;Platform Vendor Intel(R) Corporation&lt;BR /&gt;Platform Version OpenCL 3.0 &lt;BR /&gt;Platform Profile FULL_PROFILE&lt;BR /&gt;Platform Extensions cl_khr_byte_addressable_store cl_khr_fp16 cl_khr_global_int32_base_atomics cl_khr_global_int32_extended_atomics cl_khr_icd cl_khr_local_int32_base_atomics cl_khr_local_int32_extended_atomics cl_intel_command_queue_families cl_intel_subgroups cl_intel_required_subgroup_size cl_intel_subgroups_short cl_khr_spir cl_intel_accelerator cl_intel_driver_diagnostics cl_khr_priority_hints cl_khr_throttle_hints cl_khr_create_command_queue cl_intel_subgroups_char cl_intel_subgroups_long cl_khr_il_program cl_intel_mem_force_host_memory cl_khr_subgroup_extended_types cl_khr_subgroup_non_uniform_vote cl_khr_subgroup_ballot cl_khr_subgroup_non_uniform_arithmetic cl_khr_subgroup_shuffle cl_khr_subgroup_shuffle_relative cl_khr_subgroup_clustered_reduce cl_intel_device_attribute_query cl_khr_fp64 cl_khr_subgroups cl_intel_spirv_device_side_avc_motion_estimation cl_intel_spirv_media_block_io cl_intel_spirv_subgroups cl_khr_spirv_no_integer_wrap_decoration cl_intel_unified_shared_memory_preview cl_khr_mipmap_image cl_khr_mipmap_image_writes cl_intel_planar_yuv cl_intel_packed_yuv cl_intel_motion_estimation cl_intel_device_side_avc_motion_estimation cl_intel_advanced_motion_estimation cl_khr_int64_base_atomics cl_khr_int64_extended_atomics cl_khr_image2d_from_buffer cl_khr_depth_images cl_khr_3d_image_writes cl_intel_media_block_io cl_intel_va_api_media_sharing cl_intel_sharing_format_query cl_khr_pci_bus_info &lt;BR /&gt;Platform Host timer resolution 1ns&lt;BR /&gt;Platform Extensions function suffix INTEL&lt;/P&gt;
&lt;P&gt;Platform Name Intel(R) CPU Runtime for OpenCL(TM) Applications&lt;BR /&gt;Platform Vendor Intel(R) Corporation&lt;BR /&gt;Platform Version OpenCL 2.1 LINUX&lt;BR /&gt;Platform Profile FULL_PROFILE&lt;BR /&gt;Platform Extensions cl_khr_icd cl_khr_global_int32_base_atomics cl_khr_global_int32_extended_atomics cl_khr_local_int32_base_atomics cl_khr_local_int32_extended_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 cl_khr_image2d_from_buffer cl_intel_vec_len_hint &lt;BR /&gt;Platform Host timer resolution 1ns&lt;BR /&gt;Platform Extensions function suffix INTEL&lt;/P&gt;
&lt;P&gt;Platform Name Intel(R) OpenCL HD Graphics&lt;BR /&gt;Number of devices 1&lt;BR /&gt;Device Name Intel(R) UHD Graphics [0x9bca]&lt;BR /&gt;Device Vendor Intel(R) Corporation&lt;BR /&gt;Device Vendor ID 0x8086&lt;BR /&gt;Device Version OpenCL 3.0 NEO &lt;BR /&gt;Driver Version 21.24.20098&lt;BR /&gt;Device OpenCL C Version OpenCL C 3.0 &lt;BR /&gt;Device Type GPU&lt;BR /&gt;Device Profile FULL_PROFILE&lt;BR /&gt;Device Available Yes&lt;BR /&gt;Compiler Available Yes&lt;BR /&gt;Linker Available Yes&lt;BR /&gt;Max compute units 24&lt;BR /&gt;Max clock frequency 1150MHz&lt;BR /&gt;Device Partition (core)&lt;BR /&gt;Max number of sub-devices 0&lt;BR /&gt;Supported partition types None&lt;BR /&gt;Supported affinity domains (n/a)&lt;BR /&gt;Max work item dimensions 3&lt;BR /&gt;Max work item sizes 256x256x256&lt;BR /&gt;Max work group size 256&lt;BR /&gt;Preferred work group size multiple 32&lt;BR /&gt;Max sub-groups per work group 32&lt;BR /&gt;Sub-group sizes (Intel) 8, 16, 32&lt;BR /&gt;Preferred / native vector sizes &lt;BR /&gt;char 16 / 16 &lt;BR /&gt;short 8 / 8 &lt;BR /&gt;int 4 / 4 &lt;BR /&gt;long 1 / 1 &lt;BR /&gt;half 8 / 8 (cl_khr_fp16)&lt;BR /&gt;float 1 / 1 &lt;BR /&gt;double 1 / 1 (cl_khr_fp64)&lt;BR /&gt;Half-precision Floating-point support (cl_khr_fp16)&lt;BR /&gt;Denormals Yes&lt;BR /&gt;Infinity and NANs Yes&lt;BR /&gt;Round to nearest Yes&lt;BR /&gt;Round to zero Yes&lt;BR /&gt;Round to infinity Yes&lt;BR /&gt;IEEE754-2008 fused multiply-add Yes&lt;BR /&gt;Support is emulated in software No&lt;BR /&gt;Single-precision Floating-point support (core)&lt;BR /&gt;Denormals Yes&lt;BR /&gt;Infinity and NANs Yes&lt;BR /&gt;Round to nearest Yes&lt;BR /&gt;Round to zero Yes&lt;BR /&gt;Round to infinity Yes&lt;BR /&gt;IEEE754-2008 fused multiply-add Yes&lt;BR /&gt;Support is emulated in software No&lt;BR /&gt;Correctly-rounded divide and sqrt operations Yes&lt;BR /&gt;Double-precision Floating-point support (cl_khr_fp64)&lt;BR /&gt;Denormals Yes&lt;BR /&gt;Infinity and NANs Yes&lt;BR /&gt;Round to nearest Yes&lt;BR /&gt;Round to zero Yes&lt;BR /&gt;Round to infinity Yes&lt;BR /&gt;IEEE754-2008 fused multiply-add Yes&lt;BR /&gt;Support is emulated in software No&lt;BR /&gt;Address bits 64, Little-Endian&lt;BR /&gt;Global memory size 13188349952 (12.28GiB)&lt;BR /&gt;Error Correction support No&lt;BR /&gt;Max memory allocation 4294959104 (4GiB)&lt;BR /&gt;Unified memory for Host and Device Yes&lt;BR /&gt;Shared Virtual Memory (SVM) capabilities (core)&lt;BR /&gt;Coarse-grained buffer sharing Yes&lt;BR /&gt;Fine-grained buffer sharing No&lt;BR /&gt;Fine-grained system sharing No&lt;BR /&gt;Atomics No&lt;BR /&gt;Minimum alignment for any data type 128 bytes&lt;BR /&gt;Alignment of base address 1024 bits (128 bytes)&lt;BR /&gt;Preferred alignment for atomics &lt;BR /&gt;SVM 64 bytes&lt;BR /&gt;Global 64 bytes&lt;BR /&gt;Local 64 bytes&lt;BR /&gt;Max size for global variable 65536 (64KiB)&lt;BR /&gt;Preferred total size of global vars 4294959104 (4GiB)&lt;BR /&gt;Global Memory cache type Read/Write&lt;BR /&gt;Global Memory cache size 524288 (512KiB)&lt;BR /&gt;Global Memory cache line size 64 bytes&lt;BR /&gt;Image support Yes&lt;BR /&gt;Max number of samplers per kernel 16&lt;BR /&gt;Max size for 1D images from buffer 268434944 pixels&lt;BR /&gt;Max 1D or 2D image array size 2048 images&lt;BR /&gt;Base address alignment for 2D image buffers 4 bytes&lt;BR /&gt;Pitch alignment for 2D image buffers 4 pixels&lt;BR /&gt;Max 2D image size 16384x16384 pixels&lt;BR /&gt;Max planar YUV image size 16384x16352 pixels&lt;BR /&gt;Max 3D image size 16384x16384x2048 pixels&lt;BR /&gt;Max number of read image args 128&lt;BR /&gt;Max number of write image args 128&lt;BR /&gt;Max number of read/write image args 128&lt;BR /&gt;Max number of pipe args 16&lt;BR /&gt;Max active pipe reservations 1&lt;BR /&gt;Max pipe packet size 1024&lt;BR /&gt;Local memory type Local&lt;BR /&gt;Local memory size 65536 (64KiB)&lt;BR /&gt;Max number of constant args 8&lt;BR /&gt;Max constant buffer size 4294959104 (4GiB)&lt;BR /&gt;Max size of kernel argument 2048 (2KiB)&lt;BR /&gt;Queue properties (on host) &lt;BR /&gt;Out-of-order execution Yes&lt;BR /&gt;Profiling Yes&lt;BR /&gt;Queue properties (on device) &lt;BR /&gt;Out-of-order execution Yes&lt;BR /&gt;Profiling Yes&lt;BR /&gt;Preferred size 131072 (128KiB)&lt;BR /&gt;Max size 67108864 (64MiB)&lt;BR /&gt;Max queues on device 1&lt;BR /&gt;Max events on device 1024&lt;BR /&gt;Prefer user sync for interop Yes&lt;BR /&gt;Profiling timer resolution 83ns&lt;BR /&gt;Execution capabilities &lt;BR /&gt;Run OpenCL kernels Yes&lt;BR /&gt;Run native kernels No&lt;BR /&gt;Sub-group independent forward progress Yes&lt;BR /&gt;IL version SPIR-V_1.2 &lt;BR /&gt;SPIR versions 1.2 &lt;BR /&gt;printf() buffer size 4194304 (4MiB)&lt;BR /&gt;Built-in kernels block_motion_estimate_intel;block_advanced_motion_estimate_check_intel;block_advanced_motion_estimate_bidirectional_check_intel;&lt;BR /&gt;Motion Estimation accelerator version (Intel) 2&lt;BR /&gt;Device-side AVC Motion Estimation version 1&lt;BR /&gt;Supports texture sampler use Yes&lt;BR /&gt;Supports preemption No&lt;BR /&gt;Device Extensions cl_khr_byte_addressable_store cl_khr_fp16 cl_khr_global_int32_base_atomics cl_khr_global_int32_extended_atomics cl_khr_icd cl_khr_local_int32_base_atomics cl_khr_local_int32_extended_atomics cl_intel_command_queue_families cl_intel_subgroups cl_intel_required_subgroup_size cl_intel_subgroups_short cl_khr_spir cl_intel_accelerator cl_intel_driver_diagnostics cl_khr_priority_hints cl_khr_throttle_hints cl_khr_create_command_queue cl_intel_subgroups_char cl_intel_subgroups_long cl_khr_il_program cl_intel_mem_force_host_memory cl_khr_subgroup_extended_types cl_khr_subgroup_non_uniform_vote cl_khr_subgroup_ballot cl_khr_subgroup_non_uniform_arithmetic cl_khr_subgroup_shuffle cl_khr_subgroup_shuffle_relative cl_khr_subgroup_clustered_reduce cl_intel_device_attribute_query cl_khr_fp64 cl_khr_subgroups cl_intel_spirv_device_side_avc_motion_estimation cl_intel_spirv_media_block_io cl_intel_spirv_subgroups cl_khr_spirv_no_integer_wrap_decoration cl_intel_unified_shared_memory_preview cl_khr_mipmap_image cl_khr_mipmap_image_writes cl_intel_planar_yuv cl_intel_packed_yuv cl_intel_motion_estimation cl_intel_device_side_avc_motion_estimation cl_intel_advanced_motion_estimation cl_khr_int64_base_atomics cl_khr_int64_extended_atomics cl_khr_image2d_from_buffer cl_khr_depth_images cl_khr_3d_image_writes cl_intel_media_block_io cl_intel_va_api_media_sharing cl_intel_sharing_format_query cl_khr_pci_bus_info&lt;/P&gt;
&lt;P&gt;Platform Name Intel(R) CPU Runtime for OpenCL(TM) Applications&lt;BR /&gt;Number of devices 1&lt;BR /&gt;Device Name Intel(R) Core(TM) i7-10710U CPU @ 1.10GHz&lt;BR /&gt;Device Vendor Intel(R) Corporation&lt;BR /&gt;Device Vendor ID 0x8086&lt;BR /&gt;Device Version OpenCL 2.1 (Build 0)&lt;BR /&gt;Driver Version 18.1.0.0920&lt;BR /&gt;Device OpenCL C Version OpenCL C 2.0 &lt;BR /&gt;Device Type CPU&lt;BR /&gt;Device Profile FULL_PROFILE&lt;BR /&gt;Device Available Yes&lt;BR /&gt;Compiler Available Yes&lt;BR /&gt;Linker Available Yes&lt;BR /&gt;Max compute units 12&lt;BR /&gt;Max clock frequency 1100MHz&lt;BR /&gt;Device Partition (core)&lt;BR /&gt;Max number of sub-devices 12&lt;BR /&gt;Supported partition types by counts, equally, by names (Intel)&lt;BR /&gt;Supported affinity domains (n/a)&lt;BR /&gt;Max work item dimensions 3&lt;BR /&gt;Max work item sizes 8192x8192x8192&lt;BR /&gt;Max work group size 8192&lt;BR /&gt;Preferred work group size multiple 128&lt;BR /&gt;Max sub-groups per work group 1&lt;BR /&gt;Preferred / native vector sizes &lt;BR /&gt;char 1 / 32 &lt;BR /&gt;short 1 / 16 &lt;BR /&gt;int 1 / 8 &lt;BR /&gt;long 1 / 4 &lt;BR /&gt;half 0 / 0 (n/a)&lt;BR /&gt;float 1 / 8 &lt;BR /&gt;double 1 / 4 (cl_khr_fp64)&lt;BR /&gt;Half-precision Floating-point support (n/a)&lt;BR /&gt;Single-precision Floating-point support (core)&lt;BR /&gt;Denormals Yes&lt;BR /&gt;Infinity and NANs Yes&lt;BR /&gt;Round to nearest Yes&lt;BR /&gt;Round to zero No&lt;BR /&gt;Round to infinity No&lt;BR /&gt;IEEE754-2008 fused multiply-add No&lt;BR /&gt;Support is emulated in software No&lt;BR /&gt;Correctly-rounded divide and sqrt operations No&lt;BR /&gt;Double-precision Floating-point support (cl_khr_fp64)&lt;BR /&gt;Denormals Yes&lt;BR /&gt;Infinity and NANs Yes&lt;BR /&gt;Round to nearest Yes&lt;BR /&gt;Round to zero Yes&lt;BR /&gt;Round to infinity Yes&lt;BR /&gt;IEEE754-2008 fused multiply-add Yes&lt;BR /&gt;Support is emulated in software No&lt;BR /&gt;Address bits 64, Little-Endian&lt;BR /&gt;Global memory size 16485441536 (15.35GiB)&lt;BR /&gt;Error Correction support No&lt;BR /&gt;Max memory allocation 4121360384 (3.838GiB)&lt;BR /&gt;Unified memory for Host and Device Yes&lt;BR /&gt;Shared Virtual Memory (SVM) capabilities (core)&lt;BR /&gt;Coarse-grained buffer sharing Yes&lt;BR /&gt;Fine-grained buffer sharing Yes&lt;BR /&gt;Fine-grained system sharing Yes&lt;BR /&gt;Atomics Yes&lt;BR /&gt;Minimum alignment for any data type 128 bytes&lt;BR /&gt;Alignment of base address 1024 bits (128 bytes)&lt;BR /&gt;Preferred alignment for atomics &lt;BR /&gt;SVM 64 bytes&lt;BR /&gt;Global 64 bytes&lt;BR /&gt;Local 0 bytes&lt;BR /&gt;Max size for global variable 65536 (64KiB)&lt;BR /&gt;Preferred total size of global vars 65536 (64KiB)&lt;BR /&gt;Global Memory cache type Read/Write&lt;BR /&gt;Global Memory cache size 262144 (256KiB)&lt;BR /&gt;Global Memory cache line size 64 bytes&lt;BR /&gt;Image support Yes&lt;BR /&gt;Max number of samplers per kernel 480&lt;BR /&gt;Max size for 1D images from buffer 257585024 pixels&lt;BR /&gt;Max 1D or 2D image array size 2048 images&lt;BR /&gt;Base address alignment for 2D image buffers 64 bytes&lt;BR /&gt;Pitch alignment for 2D image buffers 64 pixels&lt;BR /&gt;Max 2D image size 16384x16384 pixels&lt;BR /&gt;Max 3D image size 2048x2048x2048 pixels&lt;BR /&gt;Max number of read image args 480&lt;BR /&gt;Max number of write image args 480&lt;BR /&gt;Max number of read/write image args 480&lt;BR /&gt;Max number of pipe args 16&lt;BR /&gt;Max active pipe reservations 21845&lt;BR /&gt;Max pipe packet size 1024&lt;BR /&gt;Local memory type Global&lt;BR /&gt;Local memory size 32768 (32KiB)&lt;BR /&gt;Max number of constant args 480&lt;BR /&gt;Max constant buffer size 131072 (128KiB)&lt;BR /&gt;Max size of kernel argument 3840 (3.75KiB)&lt;BR /&gt;Queue properties (on host) &lt;BR /&gt;Out-of-order execution Yes&lt;BR /&gt;Profiling Yes&lt;BR /&gt;Local thread execution (Intel) Yes&lt;BR /&gt;Queue properties (on device) &lt;BR /&gt;Out-of-order execution Yes&lt;BR /&gt;Profiling Yes&lt;BR /&gt;Preferred size 4294967295 (4GiB)&lt;BR /&gt;Max size 4294967295 (4GiB)&lt;BR /&gt;Max queues on device 4294967295&lt;BR /&gt;Max events on device 4294967295&lt;BR /&gt;Prefer user sync for interop No&lt;BR /&gt;Profiling timer resolution 1ns&lt;BR /&gt;Execution capabilities &lt;BR /&gt;Run OpenCL kernels Yes&lt;BR /&gt;Run native kernels Yes&lt;BR /&gt;Sub-group independent forward progress No&lt;BR /&gt;IL version SPIR-V_1.0&lt;BR /&gt;SPIR versions 1.2&lt;BR /&gt;printf() buffer size 1048576 (1024KiB)&lt;BR /&gt;Built-in kernels (n/a)&lt;BR /&gt;Device Extensions cl_khr_icd cl_khr_global_int32_base_atomics cl_khr_global_int32_extended_atomics cl_khr_local_int32_base_atomics cl_khr_local_int32_extended_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 cl_khr_image2d_from_buffer cl_intel_vec_len_hint&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;NULL platform behavior&lt;BR /&gt;clGetPlatformInfo(NULL, CL_PLATFORM_NAME, ...) No platform&lt;BR /&gt;clGetDeviceIDs(NULL, CL_DEVICE_TYPE_ALL, ...) No platform&lt;BR /&gt;clCreateContext(NULL, ...) [default] No platform&lt;BR /&gt;clCreateContext(NULL, ...) [other] Success [INTEL]&lt;BR /&gt;clCreateContextFromType(NULL, CL_DEVICE_TYPE_DEFAULT) No platform&lt;BR /&gt;clCreateContextFromType(NULL, CL_DEVICE_TYPE_CPU) No platform&lt;BR /&gt;clCreateContextFromType(NULL, CL_DEVICE_TYPE_GPU) No platform&lt;BR /&gt;clCreateContextFromType(NULL, CL_DEVICE_TYPE_ACCELERATOR) No platform&lt;BR /&gt;clCreateContextFromType(NULL, CL_DEVICE_TYPE_CUSTOM) No platform&lt;BR /&gt;clCreateContextFromType(NULL, CL_DEVICE_TYPE_ALL) No platform&lt;BR /&gt;NOTE: your OpenCL library only supports OpenCL 2.1,&lt;BR /&gt;but some installed platforms support OpenCL 3.0.&lt;BR /&gt;Programs using 3.0 features may crash&lt;BR /&gt;or behave unexpectedly&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you very much,&lt;/P&gt;
&lt;P&gt;MaM&lt;/P&gt;</description>
      <pubDate>Thu, 01 Jul 2021 10:01:17 GMT</pubDate>
      <guid>https://community.intel.com/t5/GPU-Compute-Software/Open-CL-Null-Platform-behaviour/m-p/1295011#M181</guid>
      <dc:creator>MAMorgado</dc:creator>
      <dc:date>2021-07-01T10:01:17Z</dc:date>
    </item>
    <item>
      <title>Re: Open CL Null Platform behaviour</title>
      <link>https://community.intel.com/t5/GPU-Compute-Software/Open-CL-Null-Platform-behaviour/m-p/1300900#M198</link>
      <description>&lt;P&gt;Hi MaM, short answer is that this NULL platform behavior is not something to worry bout and everything is working correctly.&lt;/P&gt;
&lt;P&gt;For many OpenCL APIs the behavior is implementation-defined for a NULL platform.&amp;nbsp; In many cases (like yours) the implementation this is referring to is an OpenCL ICD loader.&amp;nbsp; Essentially, when the OpenCL ICD loader is passed a NULL platform, it has to make a choice, usually something like:&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;It can take an easy way out and return an error code, usually CL_INVALID_PLATFORM.&lt;/LI&gt;
&lt;LI&gt;It can pick one of the installed platforms either arbitrarily or based on some criteria and use it.&lt;/LI&gt;
&lt;LI&gt;It can try more than one of the installed platforms to find one that works.&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;It looks like the ICD loader you have installed is usually picking (1), which is a very reasonable choice.&lt;/P&gt;
&lt;P&gt;Note that the two commonly used ICD loaders are both open source, if you want to dig deeper:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;The ocl-icd loader is most commonly used on Linux and I suspect this is what you are using:&amp;nbsp;&lt;A href="https://github.com/OCL-dev/ocl-icd" target="_blank"&gt;https://github.com/OCL-dev/ocl-icd&lt;/A&gt;&lt;/LI&gt;
&lt;LI&gt;The Khronos OpenCL-ICD-Loader is most commonly used on Windows but works on Linux also:&amp;nbsp;&lt;A href="https://github.com/KhronosGroup/OpenCL-ICD-Loader" target="_blank"&gt;https://github.com/KhronosGroup/OpenCL-ICD-Loader&lt;/A&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;Hope this helps!&lt;/P&gt;</description>
      <pubDate>Fri, 23 Jul 2021 16:21:31 GMT</pubDate>
      <guid>https://community.intel.com/t5/GPU-Compute-Software/Open-CL-Null-Platform-behaviour/m-p/1300900#M198</guid>
      <dc:creator>Ben_A_Intel</dc:creator>
      <dc:date>2021-07-23T16:21:31Z</dc:date>
    </item>
    <item>
      <title>Re: Open CL Null Platform behaviour</title>
      <link>https://community.intel.com/t5/GPU-Compute-Software/Open-CL-Null-Platform-behaviour/m-p/1301334#M199</link>
      <description>&lt;P&gt;Hi Ben,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for the answer.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Yeah I think I got it now. I was indeed using the&amp;nbsp;&lt;A class="sub_section_element_selectors" href="https://github.com/OCL-dev/ocl-icd" target="_blank" rel="nofollow noopener noreferrer"&gt;https://github.com/OCL-dev/ocl-icd&lt;/A&gt;&amp;nbsp;loader and the uploader helped me out a bit.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I was more worried about Open CL not running the version 3.0 but an earlier one, because I was told the 3.0 version was needed for another program. Just to update the post this is how the end of my clinfo now looks:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;NULL platform behavior
  clGetPlatformInfo(NULL, CL_PLATFORM_NAME, ...)  Intel(R) OpenCL HD Graphics
  clGetDeviceIDs(NULL, CL_DEVICE_TYPE_ALL, ...)   Success [INTEL]
  clCreateContext(NULL, ...) [default]            Success [INTEL]
  clCreateContext(NULL, ...) [other]              �A�;�U
  clCreateContextFromType(NULL, CL_DEVICE_TYPE_DEFAULT)  Success (1)
    Platform Name                                 Intel(R) OpenCL HD Graphics
    Device Name                                   Intel(R) UHD Graphics [0x9bca]
  clCreateContextFromType(NULL, CL_DEVICE_TYPE_CPU)  No devices found in platform
  clCreateContextFromType(NULL, CL_DEVICE_TYPE_GPU)  Success (1)
    Platform Name                                 Intel(R) OpenCL HD Graphics
    Device Name                                   Intel(R) UHD Graphics [0x9bca]
  clCreateContextFromType(NULL, CL_DEVICE_TYPE_ACCELERATOR)  No devices found in platform
  clCreateContextFromType(NULL, CL_DEVICE_TYPE_CUSTOM)  No devices found in platform
  clCreateContextFromType(NULL, CL_DEVICE_TYPE_ALL)  Success (1)
    Platform Name                                 Intel(R) OpenCL HD Graphics
    Device Name                                   Intel(R) UHD Graphics [0x9bca]

ICD loader properties
  ICD loader Name                                 OpenCL ICD Loader
  ICD loader Vendor                               OCL Icd free software
  ICD loader Version                              2.3.0
  ICD loader Profile                              OpenCL 3.0
	NOTE:	your OpenCL library declares to support OpenCL 3.0,
		but it seems to support up to OpenCL 2.2 only.
	NOTE:	your OpenCL library only supports OpenCL 2.2,
		but some installed platforms support OpenCL 3.0.
		Programs using 3.0 features may crash
		or behave unexpectedly&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 26 Jul 2021 16:25:45 GMT</pubDate>
      <guid>https://community.intel.com/t5/GPU-Compute-Software/Open-CL-Null-Platform-behaviour/m-p/1301334#M199</guid>
      <dc:creator>MAMorgado</dc:creator>
      <dc:date>2021-07-26T16:25:45Z</dc:date>
    </item>
  </channel>
</rss>

