intel / intel-extension-for-tensorflow

Intel® Extension for TensorFlow*
Other
313 stars 39 forks source link

Not detected Intel Arc GPU even after installation following the manual #56

Closed perfectnewer closed 8 months ago

perfectnewer commented 8 months ago

i tried many times and methods. use share gpu to ubuntu 22.04 lxc, pve bare, passthrough gpu to ubuntu22.04 vm. now i use ubuntu22.04 vm with kernel 5.19. i tried hwe-kernel version 6.5 and 6.2 (hwe no 5.19) i remove all packages and fllow Experimental: Intel® Arc™ A-Series GPU Software Installation, and use docker my hardware:

:: initializing oneAPI environment ... -bash: BASH_VERSION = 5.1.16(1)-release args: Using "$@" for setvars.sh arguments: :: advisor -- latest :: ccl -- latest :: compiler -- latest :: dal -- latest :: debugger -- latest :: dev-utilities -- latest :: dnnl -- latest :: dpcpp-ct -- latest :: dpl -- latest :: ipp -- latest :: ippcp -- latest :: mkl -- latest :: mpi -- latest :: tbb -- latest :: vtune -- latest :: oneAPI environment initialized ::

simon@server:~$ sycl-ls [opencl:acc:0] Intel(R) FPGA Emulation Platform for OpenCL(TM), Intel(R) FPGA Emulation Device OpenCL 1.2 [2023.16.12.0.12_195853.xmain-hotfix] [opencl:cpu:1] Intel(R) OpenCL, AMD Ryzen 7 5700G with Radeon Graphics OpenCL 3.0 (Build 0) [2023.16.12.0.12_195853.xmain-hotfix] [opencl:gpu:2] Intel(R) OpenCL Graphics, Intel(R) Arc(TM) A770 Graphics OpenCL 3.0 NEO [23.30.26918.50] [opencl:acc:3] Intel(R) FPGA Emulation Platform for OpenCL(TM), Intel(R) FPGA Emulation Device OpenCL 1.2 [2023.16.12.0.12_195853.xmain-hotfix] [ext_oneapi_level_zero:gpu:0] Intel(R) Level-Zero, Intel(R) Arc(TM) A770 Graphics 1.3 [1.3.26918]

perfectnewer commented 8 months ago

i have only one gpu clinfo on vm

simon@server:~$ clinfo
Number of platforms                               4
  Platform Name                                   Intel(R) OpenCL
  Platform Vendor                                 Intel(R) Corporation
  Platform Version                                OpenCL 3.0 LINUX
  Platform Profile                                FULL_PROFILE
  Platform Extensions                             cl_khr_spirv_linkonce_odr cl_khr_fp64 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_3d_image_writes cl_khr_byte_addressable_store cl_khr_depth_images cl_khr_icd cl_khr_il_program cl_intel_unified_shared_memory cl_khr_subgroup_shuffle cl_khr_subgroup_shuffle_relative cl_khr_subgroup_extended_types cl_khr_subgroup_non_uniform_arithmetic cl_intel_subgroups cl_intel_subgroups_char cl_intel_subgroups_short cl_intel_subgroups_long cl_intel_required_subgroup_size cl_intel_spirv_subgroups cl_khr_int64_base_atomics cl_khr_int64_extended_atomics cl_intel_device_attribute_query cl_intel_exec_by_local_thread cl_intel_vec_len_hint cl_intel_device_partition_by_names cl_khr_spir cl_khr_image2d_from_buffer
  Platform Extensions with Version                cl_khr_spirv_linkonce_odr
   0x400000 (1.0.0)
                                                  cl_khr_fp64
   0x400000 (1.0.0)
                                                  cl_khr_global_int32_base_atomics
   0x400000 (1.0.0)
                                                  cl_khr_global_int32_extended_atomics
   0x400000 (1.0.0)
                                                  cl_khr_local_int32_base_atomics
   0x400000 (1.0.0)
                                                  cl_khr_local_int32_extended_atomics
   0x400000 (1.0.0)
                                                  cl_khr_3d_image_writes
   0x400000 (1.0.0)
                                                  cl_khr_byte_addressable_store
   0x400000 (1.0.0)
                                                  cl_khr_depth_images
   0x400000 (1.0.0)
                                                  cl_khr_icd
   0x400000 (1.0.0)
                                                  cl_khr_il_program
   0x400000 (1.0.0)
                                                  cl_intel_unified_shared_memory
   0x400000 (1.0.0)
                                                  cl_khr_subgroup_shuffle
   0x400000 (1.0.0)
                                                  cl_khr_subgroup_shuffle_relative
   0x400000 (1.0.0)
                                                  cl_khr_subgroup_extended_types
   0x400000 (1.0.0)
                                                  cl_khr_subgroup_non_uniform_arithmetic
   0x400000 (1.0.0)
                                                  cl_intel_subgroups
   0x400000 (1.0.0)
                                                  cl_intel_subgroups_char
   0x400000 (1.0.0)
                                                  cl_intel_subgroups_short
   0x400000 (1.0.0)
                                                  cl_intel_subgroups_long
   0x400000 (1.0.0)
                                                  cl_intel_required_subgroup_size
   0x400000 (1.0.0)
                                                  cl_intel_spirv_subgroups
   0x400000 (1.0.0)
                                                  cl_khr_int64_base_atomics
   0x400000 (1.0.0)
                                                  cl_khr_int64_extended_atomics
   0x400000 (1.0.0)
                                                  cl_intel_device_attribute_query
   0x400000 (1.0.0)
                                                  cl_intel_exec_by_local_thread
   0x400000 (1.0.0)
                                                  cl_intel_vec_len_hint
   0x400000 (1.0.0)
                                                  cl_intel_device_partition_by_names
   0x400000 (1.0.0)
                                                  cl_khr_spir
   0x400000 (1.0.0)
                                                  cl_khr_image2d_from_buffer
   0x400000 (1.0.0)
  Platform Numeric Version                        0xc00000 (3.0.0)
  Platform Extensions function suffix             INTEL
  Platform Host timer resolution                  1ns

  Platform Name                                   Intel(R) OpenCL Graphics
  Platform Vendor                                 Intel(R) Corporation
  Platform Version                                OpenCL 3.0
  Platform Profile                                FULL_PROFILE
  Platform Extensions                             cl_khr_byte_addressable_store cl_khr_device_uuid 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_suggested_local_work_size cl_intel_split_work_group_barrier cl_intel_spirv_media_block_io cl_intel_spirv_subgroups cl_khr_spirv_linkonce_odr cl_khr_spirv_no_integer_wrap_decoration cl_intel_unified_shared_memory cl_khr_mipmap_image cl_khr_mipmap_image_writes cl_ext_float_atomics cl_khr_external_memory cl_intel_planar_yuv cl_intel_packed_yuv 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_bfloat16_conversions cl_intel_create_buffer_with_properties cl_intel_dot_accumulate cl_intel_subgroup_local_block_io cl_intel_subgroup_matrix_multiply_accumulate cl_intel_subgroup_split_matrix_multiply_accumulate cl_khr_integer_dot_product cl_khr_gl_sharing cl_khr_gl_depth_images cl_khr_gl_event cl_khr_gl_msaa_sharing cl_intel_va_api_media_sharing cl_intel_sharing_format_query cl_khr_pci_bus_info
  Platform Extensions with Version                cl_khr_byte_addressable_store
   0x400000 (1.0.0)
                                                  cl_khr_device_uuid
   0x400000 (1.0.0)
                                                  cl_khr_fp16
   0x400000 (1.0.0)
                                                  cl_khr_global_int32_base_atomics
   0x400000 (1.0.0)
                                                  cl_khr_global_int32_extended_atomics
   0x400000 (1.0.0)
                                                  cl_khr_icd
   0x400000 (1.0.0)
                                                  cl_khr_local_int32_base_atomics
   0x400000 (1.0.0)
                                                  cl_khr_local_int32_extended_atomics
   0x400000 (1.0.0)
                                                  cl_intel_command_queue_families
   0x400000 (1.0.0)
                                                  cl_intel_subgroups
   0x400000 (1.0.0)
                                                  cl_intel_required_subgroup_size
   0x400000 (1.0.0)
                                                  cl_intel_subgroups_short
   0x400000 (1.0.0)
                                                  cl_khr_spir
   0x400000 (1.0.0)
                                                  cl_intel_accelerator
   0x400000 (1.0.0)
                                                  cl_intel_driver_diagnostics
   0x400000 (1.0.0)
                                                  cl_khr_priority_hints
   0x400000 (1.0.0)
                                                  cl_khr_throttle_hints
   0x400000 (1.0.0)
                                                  cl_khr_create_command_queue
   0x400000 (1.0.0)
                                                  cl_intel_subgroups_char
   0x400000 (1.0.0)
                                                  cl_intel_subgroups_long
   0x400000 (1.0.0)
                                                  cl_khr_il_program
   0x400000 (1.0.0)
                                                  cl_intel_mem_force_host_memory
   0x400000 (1.0.0)
                                                  cl_khr_subgroup_extended_types
   0x400000 (1.0.0)
                                                  cl_khr_subgroup_non_uniform_vote
   0x400000 (1.0.0)
                                                  cl_khr_subgroup_ballot
   0x400000 (1.0.0)
                                                  cl_khr_subgroup_non_uniform_arithmetic
   0x400000 (1.0.0)
                                                  cl_khr_subgroup_shuffle
   0x400000 (1.0.0)
                                                  cl_khr_subgroup_shuffle_relative
   0x400000 (1.0.0)
                                                  cl_khr_subgroup_clustered_reduce
   0x400000 (1.0.0)
                                                  cl_intel_device_attribute_query
   0x400000 (1.0.0)
                                                  cl_khr_suggested_local_work_size
   0x400000 (1.0.0)
                                                  cl_intel_split_work_group_barrier
   0x400000 (1.0.0)
                                                  cl_intel_spirv_media_block_io
   0x400000 (1.0.0)
                                                  cl_intel_spirv_subgroups
   0x400000 (1.0.0)
                                                  cl_khr_spirv_linkonce_odr
   0x400000 (1.0.0)
                                                  cl_khr_spirv_no_integer_wrap_decoration
   0x400000 (1.0.0)
                                                  cl_intel_unified_shared_memory
   0x400000 (1.0.0)
                                                  cl_khr_mipmap_image
   0x400000 (1.0.0)
                                                  cl_khr_mipmap_image_writes
   0x400000 (1.0.0)
                                                  cl_ext_float_atomics
   0x400000 (1.0.0)
                                                  cl_khr_external_memory
   0x400000 (1.0.0)
                                                  cl_intel_planar_yuv
   0x400000 (1.0.0)
                                                  cl_intel_packed_yuv
   0x400000 (1.0.0)
                                                  cl_khr_int64_base_atomics
   0x400000 (1.0.0)
                                                  cl_khr_int64_extended_atomics
   0x400000 (1.0.0)
                                                  cl_khr_image2d_from_buffer
   0x400000 (1.0.0)
                                                  cl_khr_depth_images
   0x400000 (1.0.0)
                                                  cl_khr_3d_image_writes
   0x400000 (1.0.0)
                                                  cl_intel_media_block_io
   0x400000 (1.0.0)
                                                  cl_intel_bfloat16_conversions
   0x400000 (1.0.0)
                                                  cl_intel_create_buffer_with_properties
   0x400000 (1.0.0)
                                                  cl_intel_dot_accumulate
   0x400000 (1.0.0)
                                                  cl_intel_subgroup_local_block_io
   0x400000 (1.0.0)
                                                  cl_intel_subgroup_matrix_multiply_accumulate
   0x400000 (1.0.0)
                                                  cl_intel_subgroup_split_matrix_multiply_accumulate
   0x400000 (1.0.0)
                                                  cl_khr_integer_dot_product
   0x800000 (2.0.0)
                                                  cl_khr_gl_sharing
   0x400000 (1.0.0)
                                                  cl_khr_gl_depth_images
   0x400000 (1.0.0)
                                                  cl_khr_gl_event
   0x400000 (1.0.0)
                                                  cl_khr_gl_msaa_sharing
   0x400000 (1.0.0)
                                                  cl_intel_va_api_media_sharing
   0x400000 (1.0.0)
                                                  cl_intel_sharing_format_query
   0x400000 (1.0.0)
                                                  cl_khr_pci_bus_info
   0x400000 (1.0.0)
  Platform Numeric Version                        0xc00000 (3.0.0)
  Platform Extensions function suffix             INTEL
  Platform Host timer resolution                  1ns

  Platform Name                                   Intel(R) FPGA Emulation Platform for OpenCL(TM)
  Platform Vendor                                 Intel(R) Corporation
  Platform Version                                OpenCL 1.2 Intel(R) FPGA SDK for OpenCL(TM), Version 20.3
  Platform Profile                                EMBEDDED_PROFILE
  Platform Extensions                             cl_khr_spirv_linkonce_odr cl_khr_fp64 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_3d_image_writes cl_khr_byte_addressable_store cl_khr_depth_images cl_khr_icd cl_khr_il_program cl_intel_unified_shared_memory cl_intel_fpga_host_pipe cl_intel_program_scope_host_pipe cles_khr_int64 cl_intel_channels
  Platform Extensions function suffix             IntelFPGA

  Platform Name                                   Intel(R) FPGA Emulation Platform for OpenCL(TM)
  Platform Vendor                                 Intel(R) Corporation
  Platform Version                                OpenCL 1.2 Intel(R) FPGA SDK for OpenCL(TM), Version 20.3
  Platform Profile                                EMBEDDED_PROFILE
  Platform Extensions                             cl_khr_spirv_linkonce_odr cl_khr_fp64 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_3d_image_writes cl_khr_byte_addressable_store cl_khr_depth_images cl_khr_icd cl_khr_il_program cl_intel_unified_shared_memory cl_intel_fpga_host_pipe cl_intel_program_scope_host_pipe cles_khr_int64 cl_intel_channels
  Platform Extensions function suffix             IntelFPGA

  Platform Name                                   Intel(R) OpenCL
Number of devices                                 1
  Device Name                                     AMD Ryzen 7 5700G with Radeon Graphics
  Device Vendor                                   Intel(R) Corporation
  Device Vendor ID                                0x8086
  Device Version                                  OpenCL 3.0 (Build 0)
  Device Numeric Version                          0xc00000 (3.0.0)
  Driver Version                                  2023.16.12.0.12_195853.xmain-hotfix
  Device OpenCL C Version                         OpenCL C 3.0
  Device OpenCL C all versions                    OpenCL C
   0xc00000 (3.0.0)
                                                  OpenCL C
   0x800000 (2.0.0)
                                                  OpenCL C
   0x402000 (1.2.0)
                                                  OpenCL C
   0x401000 (1.1.0)
                                                  OpenCL C
   0x400000 (1.0.0)
  Device OpenCL C features                        __opencl_c_3d_image_writes
   0xc00000 (3.0.0)
                                                  __opencl_c_atomic_order_acq_rel
   0xc00000 (3.0.0)
                                                  __opencl_c_atomic_order_seq_cst
   0xc00000 (3.0.0)
                                                  __opencl_c_atomic_scope_device
   0xc00000 (3.0.0)
                                                  __opencl_c_atomic_scope_all_devices
   0xc00000 (3.0.0)
                                                  __opencl_c_device_enqueue
   0xc00000 (3.0.0)
                                                  __opencl_c_generic_address_space
   0xc00000 (3.0.0)
                                                  __opencl_c_fp64
   0xc00000 (3.0.0)
                                                  __opencl_c_images
   0xc00000 (3.0.0)
                                                  __opencl_c_int64
   0xc00000 (3.0.0)
                                                  __opencl_c_pipes
   0xc00000 (3.0.0)
                                                  __opencl_c_program_scope_global_variables
   0xc00000 (3.0.0)
                                                  __opencl_c_read_write_images
   0xc00000 (3.0.0)
                                                  __opencl_c_subgroups
   0xc00000 (3.0.0)
                                                  __opencl_c_work_group_collective_functions
   0xc00000 (3.0.0)
  Latest comfornace test passed                   v2022-10-05-00
  Device Type                                     CPU
  Device Profile                                  FULL_PROFILE
  Device Available                                Yes
  Compiler Available                              Yes
  Linker Available                                Yes
  Max compute units                               8
  Max clock frequency                             0MHz
  Device Partition                                (core)
    Max number of sub-devices                     8
    Supported partition types                     by counts, equally, by names (Intel)
    Supported affinity domains                    (n/a)
  Max work item dimensions                        3
  Max work item sizes                             8192x8192x8192
  Max work group size                             8192
  Preferred work group size multiple (device)     128
  Preferred work group size multiple (kernel)     128
  Max sub-groups per work group                   2048
  Sub-group sizes (Intel)                         4, 8, 16, 32, 64
  Preferred / native vector sizes
    char                                                 1 / 32
    short                                                1 / 16
    int                                                  1 / 8
    long                                                 1 / 4
    half                                                 0 / 0        (n/a)
    float                                                1 / 8
    double                                               1 / 4        (cl_khr_fp64)
  Half-precision Floating-point support           (n/a)
  Single-precision Floating-point support         (core)
    Denormals                                     Yes
    Infinity and NANs                             Yes
    Round to nearest                              Yes
    Round to zero                                 No
    Round to infinity                             No
    IEEE754-2008 fused multiply-add               No
    Support is emulated in software               No
    Correctly-rounded divide and sqrt operations  No
  Double-precision Floating-point support         (cl_khr_fp64)
    Denormals                                     Yes
    Infinity and NANs                             Yes
    Round to nearest                              Yes
    Round to zero                                 Yes
    Round to infinity                             Yes
    IEEE754-2008 fused multiply-add               Yes
    Support is emulated in software               No
  Address bits                                    64, Little-Endian
  Global memory size                              8281595904 (7.713GiB)
  Error Correction support                        No
  Max memory allocation                           4140797952 (3.856GiB)
  Unified memory for Host and Device              Yes
  Shared Virtual Memory (SVM) capabilities        (core)
    Coarse-grained buffer sharing                 Yes
    Fine-grained buffer sharing                   Yes
    Fine-grained system sharing                   Yes
    Atomics                                       Yes
  Minimum alignment for any data type             128 bytes
  Alignment of base address                       1024 bits (128 bytes)
  Preferred alignment for atomics
    SVM                                           64 bytes
    Global                                        64 bytes
    Local                                         0 bytes
  Atomic memory capabilities                      relaxed, acquire/release, sequentially-consistent, work-group scope, device scope, all-devices scope
  Atomic fence capabilities                       relaxed, acquire/release, sequentially-consistent, work-item scope, work-group scope, device scope, all-devices scope
  Max size for global variable                    65536 (64KiB)
  Preferred total size of global vars             65536 (64KiB)
  Global Memory cache type                        Read/Write
  Global Memory cache size                        524288 (512KiB)
  Global Memory cache line size                   64 bytes
  Image support                                   Yes
    Max number of samplers per kernel             480
    Max size for 1D images from buffer            258799872 pixels
    Max 1D or 2D image array size                 2048 images
    Base address alignment for 2D image buffers   64 bytes
    Pitch alignment for 2D image buffers          64 pixels
    Max 2D image size                             16384x16384 pixels
    Max 3D image size                             2048x2048x2048 pixels
    Max number of read image args                 480
    Max number of write image args                480
    Max number of read/write image args           480
  Pipe support                                    Yes
  Max number of pipe args                         16
  Max active pipe reservations                    32767
  Max pipe packet size                            1024
  Local memory type                               Global
  Local memory size                               32768 (32KiB)
  Max number of constant args                     480
  Max constant buffer size                        131072 (128KiB)
  Generic address space support                   Yes
  Max size of kernel argument                     3840 (3.75KiB)
  Queue properties (on host)
    Out-of-order execution                        Yes
    Profiling                                     Yes
    Local thread execution (Intel)                Yes
  Device enqueue capabilities                     supported, replaceable default queue
  Queue properties (on device)
    Out-of-order execution                        Yes
    Profiling                                     Yes
    Preferred size                                4294967295 (4GiB)
    Max size                                      4294967295 (4GiB)
  Max queues on device                            4294967295
  Max events on device                            4294967295
  Prefer user sync for interop                    No
  Profiling timer resolution                      1ns
  Execution capabilities
    Run OpenCL kernels                            Yes
    Run native kernels                            Yes
    Non-uniform work-groups                       Yes
    Work-group collective functions               Yes
    Sub-group independent forward progress        No
    IL version                                    SPIR-V_1.0
    ILs with version                              SPIR-V
   0x400000 (1.0.0)
    SPIR versions                                 1.2
  printf() buffer size                            1048576 (1024KiB)
  Built-in kernels                                (n/a)
  Built-in kernels with version                   (n/a)
  Device Extensions                               cl_khr_spirv_linkonce_odr cl_khr_fp64 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_3d_image_writes cl_khr_byte_addressable_store cl_khr_depth_images cl_khr_icd cl_khr_il_program cl_intel_unified_shared_memory cl_khr_subgroup_shuffle cl_khr_subgroup_shuffle_relative cl_khr_subgroup_extended_types cl_khr_subgroup_non_uniform_arithmetic cl_intel_subgroups cl_intel_subgroups_char cl_intel_subgroups_short cl_intel_subgroups_long cl_intel_required_subgroup_size cl_intel_spirv_subgroups cl_khr_int64_base_atomics cl_khr_int64_extended_atomics cl_intel_device_attribute_query cl_intel_exec_by_local_thread cl_intel_vec_len_hint cl_intel_device_partition_by_names cl_khr_spir cl_khr_image2d_from_buffer
  Device Extensions with Version                  cl_khr_spirv_linkonce_odr
   0x400000 (1.0.0)
                                                  cl_khr_fp64
   0x400000 (1.0.0)
                                                  cl_khr_global_int32_base_atomics
   0x400000 (1.0.0)
                                                  cl_khr_global_int32_extended_atomics
   0x400000 (1.0.0)
                                                  cl_khr_local_int32_base_atomics
   0x400000 (1.0.0)
                                                  cl_khr_local_int32_extended_atomics
   0x400000 (1.0.0)
                                                  cl_khr_3d_image_writes
   0x400000 (1.0.0)
                                                  cl_khr_byte_addressable_store
   0x400000 (1.0.0)
                                                  cl_khr_depth_images
   0x400000 (1.0.0)
                                                  cl_khr_icd
   0x400000 (1.0.0)
                                                  cl_khr_il_program
   0x400000 (1.0.0)
                                                  cl_intel_unified_shared_memory
   0x400000 (1.0.0)
                                                  cl_khr_subgroup_shuffle
   0x400000 (1.0.0)
                                                  cl_khr_subgroup_shuffle_relative
   0x400000 (1.0.0)
                                                  cl_khr_subgroup_extended_types
   0x400000 (1.0.0)
                                                  cl_khr_subgroup_non_uniform_arithmetic
   0x400000 (1.0.0)
                                                  cl_intel_subgroups
   0x400000 (1.0.0)
                                                  cl_intel_subgroups_char
   0x400000 (1.0.0)
                                                  cl_intel_subgroups_short
   0x400000 (1.0.0)
                                                  cl_intel_subgroups_long
   0x400000 (1.0.0)
                                                  cl_intel_required_subgroup_size
   0x400000 (1.0.0)
                                                  cl_intel_spirv_subgroups
   0x400000 (1.0.0)
                                                  cl_khr_int64_base_atomics
   0x400000 (1.0.0)
                                                  cl_khr_int64_extended_atomics
   0x400000 (1.0.0)
                                                  cl_intel_device_attribute_query
   0x400000 (1.0.0)
                                                  cl_intel_exec_by_local_thread
   0x400000 (1.0.0)
                                                  cl_intel_vec_len_hint
   0x400000 (1.0.0)
                                                  cl_intel_device_partition_by_names
   0x400000 (1.0.0)
                                                  cl_khr_spir
   0x400000 (1.0.0)
                                                  cl_khr_image2d_from_buffer
   0x400000 (1.0.0)

  Platform Name                                   Intel(R) OpenCL Graphics
Number of devices                                 1
  Device Name                                     Intel(R) Arc(TM) A770 Graphics
  Device Vendor                                   Intel(R) Corporation
  Device Vendor ID                                0x8086
  Device Version                                  OpenCL 3.0 NEO
  Device UUID                                     8680a056-0800-0000-0100-000000000000
  Driver UUID                                     32332e33-302e-3236-3931-382e35300000
  Valid Device LUID                               No
  Device LUID                                     9014-9736fd7f0000
  Device Node Mask                                0
  Device Numeric Version                          0xc00000 (3.0.0)
  Driver Version                                  23.30.26918.50
  Device OpenCL C Version                         OpenCL C 1.2
  Device OpenCL C all versions                    OpenCL C
   0x400000 (1.0.0)
                                                  OpenCL C
   0x401000 (1.1.0)
                                                  OpenCL C
   0x402000 (1.2.0)
                                                  OpenCL C
   0xc00000 (3.0.0)
  Device OpenCL C features                        __opencl_c_int64
   0xc00000 (3.0.0)
                                                  __opencl_c_3d_image_writes
   0xc00000 (3.0.0)
                                                  __opencl_c_images
   0xc00000 (3.0.0)
                                                  __opencl_c_read_write_images
   0xc00000 (3.0.0)
                                                  __opencl_c_atomic_order_acq_rel
   0xc00000 (3.0.0)
                                                  __opencl_c_atomic_order_seq_cst
   0xc00000 (3.0.0)
                                                  __opencl_c_atomic_scope_all_devices
   0xc00000 (3.0.0)
                                                  __opencl_c_atomic_scope_device
   0xc00000 (3.0.0)
                                                  __opencl_c_generic_address_space
   0xc00000 (3.0.0)
                                                  __opencl_c_program_scope_global_variables
   0xc00000 (3.0.0)
                                                  __opencl_c_work_group_collective_functions
   0xc00000 (3.0.0)
                                                  __opencl_c_subgroups
   0xc00000 (3.0.0)
                                                  __opencl_c_ext_fp32_global_atomic_add
   0xc00000 (3.0.0)
                                                  __opencl_c_ext_fp32_local_atomic_add
   0xc00000 (3.0.0)
                                                  __opencl_c_ext_fp32_global_atomic_min_max
   0xc00000 (3.0.0)
                                                  __opencl_c_ext_fp32_local_atomic_min_max
   0xc00000 (3.0.0)
                                                  __opencl_c_ext_fp16_global_atomic_load_store
   0xc00000 (3.0.0)
                                                  __opencl_c_ext_fp16_local_atomic_load_store
   0xc00000 (3.0.0)
                                                  __opencl_c_ext_fp16_global_atomic_min_max
   0xc00000 (3.0.0)
                                                  __opencl_c_ext_fp16_local_atomic_min_max
   0xc00000 (3.0.0)
                                                  __opencl_c_integer_dot_product_input_4x8bit
   0xc00000 (3.0.0)
                                                  __opencl_c_integer_dot_product_input_4x8bit_packed
   0xc00000 (3.0.0)
  Latest comfornace test passed                   v2023-05-16-00
  Device Type                                     GPU
  Device Profile                                  FULL_PROFILE
  Device Available                                Yes
  Compiler Available                              Yes
  Linker Available                                Yes
  Max compute units                               512
  Max clock frequency                             2400MHz
  Device Partition                                (core)
    Max number of sub-devices                     0
    Supported partition types                     None
    Supported affinity domains                    (n/a)
  Max work item dimensions                        3
  Max work item sizes                             1024x1024x1024
  Max work group size                             1024
  Preferred work group size multiple (device)     64
  Preferred work group size multiple (kernel)     64
  Max sub-groups per work group                   128
  Sub-group sizes (Intel)                         8, 16, 32
  Preferred / native vector sizes
    char                                                16 / 16
    short                                                8 / 8
    int                                                  4 / 4
    long                                                 1 / 1
    half                                                 8 / 8        (cl_khr_fp16)
    float                                                1 / 1
    double                                               0 / 0        (n/a)
  Half-precision Floating-point support           (cl_khr_fp16)
    Denormals                                     Yes
    Infinity and NANs                             Yes
    Round to nearest                              Yes
    Round to zero                                 Yes
    Round to infinity                             Yes
    IEEE754-2008 fused multiply-add               Yes
    Support is emulated in software               No
  Single-precision Floating-point support         (core)
    Denormals                                     Yes
    Infinity and NANs                             Yes
    Round to nearest                              Yes
    Round to zero                                 Yes
    Round to infinity                             Yes
    IEEE754-2008 fused multiply-add               Yes
    Support is emulated in software               No
    Correctly-rounded divide and sqrt operations  Yes
  Double-precision Floating-point support         (n/a)
  Address bits                                    64, Little-Endian
  Global memory size                              16225243136 (15.11GiB)
  Error Correction support                        No
  Max memory allocation                           4294959104 (4GiB)
  Unified memory for Host and Device              No
  Shared Virtual Memory (SVM) capabilities        (core)
    Coarse-grained buffer sharing                 Yes
    Fine-grained buffer sharing                   No
    Fine-grained system sharing                   No
    Atomics                                       No
  Minimum alignment for any data type             128 bytes
  Alignment of base address                       1024 bits (128 bytes)
  Preferred alignment for atomics
    SVM                                           64 bytes
    Global                                        64 bytes
    Local                                         64 bytes
  Atomic memory capabilities                      relaxed, acquire/release, sequentially-consistent, work-group scope, device scope, all-devices scope
  Atomic fence capabilities                       relaxed, acquire/release, sequentially-consistent, work-item scope, work-group scope, device scope, all-devices scope
  Max size for global variable                    65536 (64KiB)
  Preferred total size of global vars             4294959104 (4GiB)
  Global Memory cache type                        Read/Write
  Global Memory cache size                        16777216 (16MiB)
  Global Memory cache line size                   64 bytes
  Image support                                   Yes
    Max number of samplers per kernel             16
    Max size for 1D images from buffer            268434944 pixels
    Max 1D or 2D image array size                 2048 images
    Base address alignment for 2D image buffers   4 bytes
    Pitch alignment for 2D image buffers          4 pixels
    Max 2D image size                             16384x16384 pixels
    Max planar YUV image size                     16384x16128 pixels
    Max 3D image size                             16384x16384x2048 pixels
    Max number of read image args                 128
    Max number of write image args                128
    Max number of read/write image args           128
  Pipe support                                    No
  Max number of pipe args                         0
  Max active pipe reservations                    0
  Max pipe packet size                            0
  Local memory type                               Local
  Local memory size                               65536 (64KiB)
  Max number of constant args                     8
  Max constant buffer size                        4294959104 (4GiB)
  Generic address space support                   Yes
  Max size of kernel argument                     2048 (2KiB)
  Queue properties (on host)
    Out-of-order execution                        Yes
    Profiling                                     Yes
  Device enqueue capabilities                     (n/a)
  Queue properties (on device)
    Out-of-order execution                        No
    Profiling                                     No
    Preferred size                                0
    Max size                                      0
  Max queues on device                            0
  Max events on device                            0
  Prefer user sync for interop                    Yes
  Profiling timer resolution                      52ns
  Execution capabilities
    Run OpenCL kernels                            Yes
    Run native kernels                            No
    Non-uniform work-groups                       Yes
    Work-group collective functions               Yes
    Sub-group independent forward progress        No
    IL version                                    SPIR-V_1.2
    ILs with version                              SPIR-V
   0x402000 (1.2.0)
    SPIR versions                                 1.2
  printf() buffer size                            4194304 (4MiB)
  Built-in kernels                                (n/a)
  Built-in kernels with version                   (n/a)
  Device Extensions                               cl_khr_byte_addressable_store cl_khr_device_uuid 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_suggested_local_work_size cl_intel_split_work_group_barrier cl_intel_spirv_media_block_io cl_intel_spirv_subgroups cl_khr_spirv_linkonce_odr cl_khr_spirv_no_integer_wrap_decoration cl_intel_unified_shared_memory cl_khr_mipmap_image cl_khr_mipmap_image_writes cl_ext_float_atomics cl_khr_external_memory cl_intel_planar_yuv cl_intel_packed_yuv 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_bfloat16_conversions cl_intel_create_buffer_with_properties cl_intel_dot_accumulate cl_intel_subgroup_local_block_io cl_intel_subgroup_matrix_multiply_accumulate cl_intel_subgroup_split_matrix_multiply_accumulate cl_khr_integer_dot_product cl_khr_gl_sharing cl_khr_gl_depth_images cl_khr_gl_event cl_khr_gl_msaa_sharing cl_intel_va_api_media_sharing cl_intel_sharing_format_query cl_khr_pci_bus_info
  Device Extensions with Version                  cl_khr_byte_addressable_store
   0x400000 (1.0.0)
                                                  cl_khr_device_uuid
   0x400000 (1.0.0)
                                                  cl_khr_fp16
   0x400000 (1.0.0)
                                                  cl_khr_global_int32_base_atomics
   0x400000 (1.0.0)
                                                  cl_khr_global_int32_extended_atomics
   0x400000 (1.0.0)
                                                  cl_khr_icd
   0x400000 (1.0.0)
                                                  cl_khr_local_int32_base_atomics
   0x400000 (1.0.0)
                                                  cl_khr_local_int32_extended_atomics
   0x400000 (1.0.0)
                                                  cl_intel_command_queue_families
   0x400000 (1.0.0)
                                                  cl_intel_subgroups
   0x400000 (1.0.0)
                                                  cl_intel_required_subgroup_size
   0x400000 (1.0.0)
                                                  cl_intel_subgroups_short
   0x400000 (1.0.0)
                                                  cl_khr_spir
   0x400000 (1.0.0)
                                                  cl_intel_accelerator
   0x400000 (1.0.0)
                                                  cl_intel_driver_diagnostics
   0x400000 (1.0.0)
                                                  cl_khr_priority_hints
   0x400000 (1.0.0)
                                                  cl_khr_throttle_hints
   0x400000 (1.0.0)
                                                  cl_khr_create_command_queue
   0x400000 (1.0.0)
                                                  cl_intel_subgroups_char
   0x400000 (1.0.0)
                                                  cl_intel_subgroups_long
   0x400000 (1.0.0)
                                                  cl_khr_il_program
   0x400000 (1.0.0)
                                                  cl_intel_mem_force_host_memory
   0x400000 (1.0.0)
                                                  cl_khr_subgroup_extended_types
   0x400000 (1.0.0)
                                                  cl_khr_subgroup_non_uniform_vote
   0x400000 (1.0.0)
                                                  cl_khr_subgroup_ballot
   0x400000 (1.0.0)
                                                  cl_khr_subgroup_non_uniform_arithmetic
   0x400000 (1.0.0)
                                                  cl_khr_subgroup_shuffle
   0x400000 (1.0.0)
                                                  cl_khr_subgroup_shuffle_relative
   0x400000 (1.0.0)
                                                  cl_khr_subgroup_clustered_reduce
   0x400000 (1.0.0)
                                                  cl_intel_device_attribute_query
   0x400000 (1.0.0)
                                                  cl_khr_suggested_local_work_size
   0x400000 (1.0.0)
                                                  cl_intel_split_work_group_barrier
   0x400000 (1.0.0)
                                                  cl_intel_spirv_media_block_io
   0x400000 (1.0.0)
                                                  cl_intel_spirv_subgroups
   0x400000 (1.0.0)
                                                  cl_khr_spirv_linkonce_odr
   0x400000 (1.0.0)
                                                  cl_khr_spirv_no_integer_wrap_decoration
   0x400000 (1.0.0)
                                                  cl_intel_unified_shared_memory
   0x400000 (1.0.0)
                                                  cl_khr_mipmap_image
   0x400000 (1.0.0)
                                                  cl_khr_mipmap_image_writes
   0x400000 (1.0.0)
                                                  cl_ext_float_atomics
   0x400000 (1.0.0)
                                                  cl_khr_external_memory
   0x400000 (1.0.0)
                                                  cl_intel_planar_yuv
   0x400000 (1.0.0)
                                                  cl_intel_packed_yuv
   0x400000 (1.0.0)
                                                  cl_khr_int64_base_atomics
   0x400000 (1.0.0)
                                                  cl_khr_int64_extended_atomics
   0x400000 (1.0.0)
                                                  cl_khr_image2d_from_buffer
   0x400000 (1.0.0)
                                                  cl_khr_depth_images
   0x400000 (1.0.0)
                                                  cl_khr_3d_image_writes
   0x400000 (1.0.0)
                                                  cl_intel_media_block_io
   0x400000 (1.0.0)
                                                  cl_intel_bfloat16_conversions
   0x400000 (1.0.0)
                                                  cl_intel_create_buffer_with_properties
   0x400000 (1.0.0)
                                                  cl_intel_dot_accumulate
   0x400000 (1.0.0)
                                                  cl_intel_subgroup_local_block_io
   0x400000 (1.0.0)
                                                  cl_intel_subgroup_matrix_multiply_accumulate
   0x400000 (1.0.0)
                                                  cl_intel_subgroup_split_matrix_multiply_accumulate
   0x400000 (1.0.0)
                                                  cl_khr_integer_dot_product
   0x800000 (2.0.0)
                                                  cl_khr_gl_sharing
   0x400000 (1.0.0)
                                                  cl_khr_gl_depth_images
   0x400000 (1.0.0)
                                                  cl_khr_gl_event
   0x400000 (1.0.0)
                                                  cl_khr_gl_msaa_sharing
   0x400000 (1.0.0)
                                                  cl_intel_va_api_media_sharing
   0x400000 (1.0.0)
                                                  cl_intel_sharing_format_query
   0x400000 (1.0.0)
                                                  cl_khr_pci_bus_info
   0x400000 (1.0.0)

  Platform Name                                   Intel(R) FPGA Emulation Platform for OpenCL(TM)
Number of devices                                 1
  Device Name                                     Intel(R) FPGA Emulation Device
  Device Vendor                                   Intel(R) Corporation
  Device Vendor ID                                0x1172
  Device Version                                  OpenCL 1.2
  Driver Version                                  2023.16.12.0.12_195853.xmain-hotfix
  Device OpenCL C Version                         OpenCL C 1.2
  Device Type                                     Accelerator
  Device Profile                                  EMBEDDED_PROFILE
  Device Available                                Yes
  Compiler Available                              Yes
  Linker Available                                Yes
  Max compute units                               8
  Max clock frequency                             0MHz
  Device Partition                                (core)
    Max number of sub-devices                     8
    Supported partition types                     by counts, equally, by names (Intel)
    Supported affinity domains                    (n/a)
  Max work item dimensions                        3
  Max work item sizes                             67108864x67108864x67108864
  Max work group size                             67108864
  Preferred work group size multiple (kernel)     128
  Preferred / native vector sizes
    char                                                 1 / 32
    short                                                1 / 16
    int                                                  1 / 8
    long                                                 1 / 4
    half                                                 0 / 0        (n/a)
    float                                                1 / 8
    double                                               1 / 4        (cl_khr_fp64)
  Half-precision Floating-point support           (n/a)
  Single-precision Floating-point support         (core)
    Denormals                                     Yes
    Infinity and NANs                             Yes
    Round to nearest                              Yes
    Round to zero                                 No
    Round to infinity                             No
    IEEE754-2008 fused multiply-add               No
    Support is emulated in software               No
    Correctly-rounded divide and sqrt operations  No
  Double-precision Floating-point support         (cl_khr_fp64)
    Denormals                                     Yes
    Infinity and NANs                             Yes
    Round to nearest                              Yes
    Round to zero                                 Yes
    Round to infinity                             Yes
    IEEE754-2008 fused multiply-add               Yes
    Support is emulated in software               No
  Address bits                                    64, Little-Endian
  Global memory size                              8281595904 (7.713GiB)
  Error Correction support                        No
  Max memory allocation                           4140797952 (3.856GiB)
  Unified memory for Host and Device              Yes
  Minimum alignment for any data type             128 bytes
  Alignment of base address                       1024 bits (128 bytes)
  Global Memory cache type                        Read/Write
  Global Memory cache size                        524288 (512KiB)
  Global Memory cache line size                   64 bytes
  Image support                                   No
  Local memory type                               Global
  Local memory size                               262144 (256KiB)
  Max number of constant args                     480
  Max constant buffer size                        131072 (128KiB)
  Max size of kernel argument                     3840 (3.75KiB)
  Queue properties
    Out-of-order execution                        Yes
    Profiling                                     Yes
  Prefer user sync for interop                    No
  Profiling timer resolution                      1ns
  Execution capabilities
    Run OpenCL kernels                            Yes
    Run native kernels                            Yes
    IL version                                    SPIR-V_1.0
  printf() buffer size                            1048576 (1024KiB)
  Built-in kernels                                (n/a)
  Device Extensions                               cl_khr_spirv_linkonce_odr cl_khr_fp64 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_3d_image_writes cl_khr_byte_addressable_store cl_khr_depth_images cl_khr_icd cl_khr_il_program cl_intel_unified_shared_memory cl_intel_fpga_host_pipe cl_intel_program_scope_host_pipe cles_khr_int64 cl_intel_channels

  Platform Name                                   Intel(R) FPGA Emulation Platform for OpenCL(TM)
Number of devices                                 1
  Device Name                                     Intel(R) FPGA Emulation Device
  Device Vendor                                   Intel(R) Corporation
  Device Vendor ID                                0x1172
  Device Version                                  OpenCL 1.2
  Driver Version                                  2023.16.12.0.12_195853.xmain-hotfix
  Device OpenCL C Version                         OpenCL C 1.2
  Device Type                                     Accelerator
  Device Profile                                  EMBEDDED_PROFILE
  Device Available                                Yes
  Compiler Available                              Yes
  Linker Available                                Yes
  Max compute units                               8
  Max clock frequency                             0MHz
  Device Partition                                (core)
    Max number of sub-devices                     8
    Supported partition types                     by counts, equally, by names (Intel)
    Supported affinity domains                    (n/a)
  Max work item dimensions                        3
  Max work item sizes                             67108864x67108864x67108864
  Max work group size                             67108864
  Preferred work group size multiple (kernel)     128
  Preferred / native vector sizes
    char                                                 1 / 32
    short                                                1 / 16
    int                                                  1 / 8
    long                                                 1 / 4
    half                                                 0 / 0        (n/a)
    float                                                1 / 8
    double                                               1 / 4        (cl_khr_fp64)
  Half-precision Floating-point support           (n/a)
  Single-precision Floating-point support         (core)
    Denormals                                     Yes
    Infinity and NANs                             Yes
    Round to nearest                              Yes
    Round to zero                                 No
    Round to infinity                             No
    IEEE754-2008 fused multiply-add               No
    Support is emulated in software               No
    Correctly-rounded divide and sqrt operations  No
  Double-precision Floating-point support         (cl_khr_fp64)
    Denormals                                     Yes
    Infinity and NANs                             Yes
    Round to nearest                              Yes
    Round to zero                                 Yes
    Round to infinity                             Yes
    IEEE754-2008 fused multiply-add               Yes
    Support is emulated in software               No
  Address bits                                    64, Little-Endian
  Global memory size                              8281595904 (7.713GiB)
  Error Correction support                        No
  Max memory allocation                           4140797952 (3.856GiB)
  Unified memory for Host and Device              Yes
  Minimum alignment for any data type             128 bytes
  Alignment of base address                       1024 bits (128 bytes)
  Global Memory cache type                        Read/Write
  Global Memory cache size                        524288 (512KiB)
  Global Memory cache line size                   64 bytes
  Image support                                   No
  Local memory type                               Global
  Local memory size                               262144 (256KiB)
  Max number of constant args                     480
  Max constant buffer size                        131072 (128KiB)
  Max size of kernel argument                     3840 (3.75KiB)
  Queue properties
    Out-of-order execution                        Yes
    Profiling                                     Yes
  Prefer user sync for interop                    No
  Profiling timer resolution                      1ns
  Execution capabilities
    Run OpenCL kernels                            Yes
    Run native kernels                            Yes
    IL version                                    SPIR-V_1.0
  printf() buffer size                            1048576 (1024KiB)
  Built-in kernels                                (n/a)
  Device Extensions                               cl_khr_spirv_linkonce_odr cl_khr_fp64 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_3d_image_writes cl_khr_byte_addressable_store cl_khr_depth_images cl_khr_icd cl_khr_il_program cl_intel_unified_shared_memory cl_intel_fpga_host_pipe cl_intel_program_scope_host_pipe cles_khr_int64 cl_intel_channels

NULL platform behavior
  clGetPlatformInfo(NULL, CL_PLATFORM_NAME, ...)  No platform
  clGetDeviceIDs(NULL, CL_DEVICE_TYPE_ALL, ...)   No platform
  clCreateContext(NULL, ...) [default]            No platform
  clCreateContext(NULL, ...) [other]              Success [INTEL]
  clCreateContextFromType(NULL, CL_DEVICE_TYPE_DEFAULT)  Success (1)
    Platform Name                                 Intel(R) OpenCL
    Device Name                                   AMD Ryzen 7 5700G with Radeon Graphics
  clCreateContextFromType(NULL, CL_DEVICE_TYPE_CPU)  Success (1)
    Platform Name                                 Intel(R) OpenCL
    Device Name                                   AMD Ryzen 7 5700G with Radeon Graphics
  clCreateContextFromType(NULL, CL_DEVICE_TYPE_GPU)  No devices found in platform
  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
    Device Name                                   AMD Ryzen 7 5700G with Radeon Graphics

ICD loader properties
  ICD loader Name                                 Khronos OpenCL ICD Loader
  ICD loader Vendor                               Khronos Group
  ICD loader Version                              3.0.5
  ICD loader Profile                              OpenCL 3.0
perfectnewer commented 8 months ago

env check in docker

simon@server:~$ docker run -it --rm -p 8888:8888  --privileged --device=/dev/dri --ipc=host  intel/intel-extension-for-tensorflow:2.14.0.1-xpu bash
root@6443beb650aa:/# export OCL_ICD_ENABLE_TRACE=1
root@6443beb650aa:/# export OCL_ICD_DEBUG=2
root@6443beb650aa:/# export path_to_site_packages=`python -c "import site; print(site.getsitepackages()[0])"`
root@6443beb650aa:/# bash ${path_to_site_packages}/intel_extension_for_tensorflow/tools/env_check.sh

    Check Environment for Intel(R) Extension for TensorFlow*...

========================  Check Python  ========================

 python3.10 is installed.

====================  Check Python Passed  =====================

==========================  Check OS  ==========================

 OS ubuntu:22.04 is Supported.

======================  Check OS Passed  =======================

======================  Check Tensorflow  ======================

 Tensorflow2.14 is installed.

==================  Check Tensorflow Passed  ===================

===================  Check Intel GPU Driver  ===================

 Intel(R) graphics runtime intel-level-zero-gpu-1.3.26918.50-736 is installed, but is not recommended .
 Intel(R) graphics runtime intel-opencl-icd-23.30.26918.50-736 is installed, but is not recommended .
 Intel(R) graphics runtime level-zero-1.13.1-719 is installed, but is not recommended .
 Intel(R) graphics runtime libigc1-1.0.14828.26-736 is installed, but is not recommended .
 Intel(R) graphics runtime libigdfcl1-1.0.14828.26-736 is installed, but is not recommended .
 Intel(R) graphics runtime libigdgmm12-22.3.10-712 is installed, but is not recommended .

===============  Check Intel GPU Driver Finshed  ================

=====================  Check Intel oneAPI  =====================

 Intel(R) oneAPI DPC++/C++ Compiler is installed.
 Intel(R) oneAPI Math Kernel Library is installed.

=================  Check Intel oneAPI Passed  ==================

==========================  Check Devices Availability  ==========================

2023-12-29 05:57:02.552233: I tensorflow/tsl/cuda/cudart_stub.cc:28] Could not find cuda drivers on your machine, GPU will not be used.
2023-12-29 05:57:02.578567: E tensorflow/compiler/xla/stream_executor/cuda/cuda_dnn.cc:9342] Unable to register cuDNN factory: Attempting to register factory for plugin cuDNN when one has already been registered
2023-12-29 05:57:02.578624: E tensorflow/compiler/xla/stream_executor/cuda/cuda_fft.cc:609] Unable to register cuFFT factory: Attempting to register factory for plugin cuFFT when one has already been registered
2023-12-29 05:57:02.578651: E tensorflow/compiler/xla/stream_executor/cuda/cuda_blas.cc:1518] Unable to register cuBLAS factory: Attempting to register factory for plugin cuBLAS when one has already been registered
2023-12-29 05:57:02.584247: I tensorflow/tsl/cuda/cudart_stub.cc:28] Could not find cuda drivers on your machine, GPU will not be used.
2023-12-29 05:57:02.584520: I tensorflow/core/platform/cpu_feature_guard.cc:182] This TensorFlow binary is optimized to use available CPU instructions in performance-critical operations.
To enable the following instructions: AVX2 FMA, in other operations, rebuild TensorFlow with the appropriate compiler flags.
2023-12-29 05:57:03.493742: W tensorflow/compiler/tf2tensorrt/utils/py_utils.cc:38] TF-TRT Warning: Could not find TensorRT
2023-12-29 05:57:03.881817: I itex/core/wrapper/itex_cpu_wrapper.cc:70] Intel Extension for Tensorflow* AVX2 CPU backend is loaded.
KHR ICD trace at /netbatch/donb00014_00/dir/workspace/NIT/xmain-rel/LX/xmainefi2linux_release/ws/icsws/builds/xmainefi2linux_pgouse_sreleaseusingrelease/llvm/_deps/ocl-icd-src/loader/icd.c:71: attempting to add vendor /usr/lib/x86_64-linux-gnu/intel-opencl/libigdrcl.so...
KHR ICD trace at /netbatch/donb00014_00/dir/workspace/NIT/xmain-rel/LX/xmainefi2linux_release/ws/icsws/builds/xmainefi2linux_pgouse_sreleaseusingrelease/llvm/_deps/ocl-icd-src/loader/icd.c:197: successfully added vendor /usr/lib/x86_64-linux-gnu/intel-opencl/libigdrcl.so with suffix INTEL
KHR ICD trace at /netbatch/donb00014_00/dir/workspace/NIT/xmain-rel/LX/xmainefi2linux_release/ws/icsws/builds/xmainefi2linux_pgouse_sreleaseusingrelease/llvm/_deps/ocl-icd-src/loader/icd.c:71: attempting to add vendor /opt/intel/oneapi/redist/lib/libintelocl.so...
KHR ICD trace at /netbatch/donb00014_00/dir/workspace/NIT/xmain-rel/LX/xmainefi2linux_release/ws/icsws/builds/xmainefi2linux_pgouse_sreleaseusingrelease/llvm/_deps/ocl-icd-src/loader/linux/icd_linux.c:247: Failed to load driver because libxml2.so.2: cannot open shared object file: No such file or directory.
KHR ICD trace at /netbatch/donb00014_00/dir/workspace/NIT/xmain-rel/LX/xmainefi2linux_release/ws/icsws/builds/xmainefi2linux_pgouse_sreleaseusingrelease/llvm/_deps/ocl-icd-src/loader/icd.c:77: failed to load library /opt/intel/oneapi/redist/lib/libintelocl.so
KHR ICD trace at /netbatch/donb00014_00/dir/workspace/NIT/xmain-rel/LX/xmainefi2linux_release/ws/icsws/builds/xmainefi2linux_pgouse_sreleaseusingrelease/llvm/_deps/ocl-icd-src/loader/icd.c:71: attempting to add vendor /opt/intel/oneapi/redist/lib/libintelocl_emu.so...
KHR ICD trace at /netbatch/donb00014_00/dir/workspace/NIT/xmain-rel/LX/xmainefi2linux_release/ws/icsws/builds/xmainefi2linux_pgouse_sreleaseusingrelease/llvm/_deps/ocl-icd-src/loader/linux/icd_linux.c:247: Failed to load driver because libxml2.so.2: cannot open shared object file: No such file or directory.
KHR ICD trace at /netbatch/donb00014_00/dir/workspace/NIT/xmain-rel/LX/xmainefi2linux_release/ws/icsws/builds/xmainefi2linux_pgouse_sreleaseusingrelease/llvm/_deps/ocl-icd-src/loader/icd.c:77: failed to load library /opt/intel/oneapi/redist/lib/libintelocl_emu.so
KHR ICD trace at /netbatch/donb00014_00/dir/workspace/NIT/xmain-rel/LX/xmainefi2linux_release/ws/icsws/builds/xmainefi2linux_pgouse_sreleaseusingrelease/llvm/_deps/ocl-icd-src/loader/linux/icd_linux.c:150: Failed to open path /etc/OpenCL/layers, continuing
2023-12-29 05:57:04.289483: I itex/core/wrapper/itex_gpu_wrapper.cc:35] Intel Extension for Tensorflow* GPU backend is loaded.
2023-12-29 05:57:04.345143: I itex/core/devices/gpu/itex_gpu_runtime.cc:129] Selected platform: Intel(R) Level-Zero
2023-12-29 05:57:04.345199: I itex/core/devices/gpu/itex_gpu_runtime.cc:154] number of sub-devices is zero, expose root device.

======================  Check Devices Availability Passed  =======================
root@6443beb650aa:/#
root@6443beb650aa:/#
root@6443beb650aa:/# python -c "import tensorflow as tf; print(tf.config.experimental.list_physical_devices())"
2023-12-29 05:59:19.634982: I tensorflow/tsl/cuda/cudart_stub.cc:28] Could not find cuda drivers on your machine, GPU will not be used.
2023-12-29 05:59:19.661104: E tensorflow/compiler/xla/stream_executor/cuda/cuda_dnn.cc:9342] Unable to register cuDNN factory: Attempting to register factory for plugin cuDNN when one has already been registered
2023-12-29 05:59:19.661170: E tensorflow/compiler/xla/stream_executor/cuda/cuda_fft.cc:609] Unable to register cuFFT factory: Attempting to register factory for plugin cuFFT when one has already been registered
2023-12-29 05:59:19.661192: E tensorflow/compiler/xla/stream_executor/cuda/cuda_blas.cc:1518] Unable to register cuBLAS factory: Attempting to register factory for plugin cuBLAS when one has already been registered
2023-12-29 05:59:19.666170: I tensorflow/tsl/cuda/cudart_stub.cc:28] Could not find cuda drivers on your machine, GPU will not be used.
2023-12-29 05:59:19.666363: I tensorflow/core/platform/cpu_feature_guard.cc:182] This TensorFlow binary is optimized to use available CPU instructions in performance-critical operations.
To enable the following instructions: AVX2 FMA, in other operations, rebuild TensorFlow with the appropriate compiler flags.
2023-12-29 05:59:20.399036: W tensorflow/compiler/tf2tensorrt/utils/py_utils.cc:38] TF-TRT Warning: Could not find TensorRT
2023-12-29 05:59:20.779868: I itex/core/wrapper/itex_cpu_wrapper.cc:70] Intel Extension for Tensorflow* AVX2 CPU backend is loaded.
KHR ICD trace at /netbatch/donb00014_00/dir/workspace/NIT/xmain-rel/LX/xmainefi2linux_release/ws/icsws/builds/xmainefi2linux_pgouse_sreleaseusingrelease/llvm/_deps/ocl-icd-src/loader/icd.c:71: attempting to add vendor /usr/lib/x86_64-linux-gnu/intel-opencl/libigdrcl.so...
KHR ICD trace at /netbatch/donb00014_00/dir/workspace/NIT/xmain-rel/LX/xmainefi2linux_release/ws/icsws/builds/xmainefi2linux_pgouse_sreleaseusingrelease/llvm/_deps/ocl-icd-src/loader/icd.c:197: successfully added vendor /usr/lib/x86_64-linux-gnu/intel-opencl/libigdrcl.so with suffix INTEL
KHR ICD trace at /netbatch/donb00014_00/dir/workspace/NIT/xmain-rel/LX/xmainefi2linux_release/ws/icsws/builds/xmainefi2linux_pgouse_sreleaseusingrelease/llvm/_deps/ocl-icd-src/loader/icd.c:71: attempting to add vendor /opt/intel/oneapi/redist/lib/libintelocl.so...
KHR ICD trace at /netbatch/donb00014_00/dir/workspace/NIT/xmain-rel/LX/xmainefi2linux_release/ws/icsws/builds/xmainefi2linux_pgouse_sreleaseusingrelease/llvm/_deps/ocl-icd-src/loader/linux/icd_linux.c:247: Failed to load driver because libxml2.so.2: cannot open shared object file: No such file or directory.
KHR ICD trace at /netbatch/donb00014_00/dir/workspace/NIT/xmain-rel/LX/xmainefi2linux_release/ws/icsws/builds/xmainefi2linux_pgouse_sreleaseusingrelease/llvm/_deps/ocl-icd-src/loader/icd.c:77: failed to load library /opt/intel/oneapi/redist/lib/libintelocl.so
KHR ICD trace at /netbatch/donb00014_00/dir/workspace/NIT/xmain-rel/LX/xmainefi2linux_release/ws/icsws/builds/xmainefi2linux_pgouse_sreleaseusingrelease/llvm/_deps/ocl-icd-src/loader/icd.c:71: attempting to add vendor /opt/intel/oneapi/redist/lib/libintelocl_emu.so...
KHR ICD trace at /netbatch/donb00014_00/dir/workspace/NIT/xmain-rel/LX/xmainefi2linux_release/ws/icsws/builds/xmainefi2linux_pgouse_sreleaseusingrelease/llvm/_deps/ocl-icd-src/loader/linux/icd_linux.c:247: Failed to load driver because libxml2.so.2: cannot open shared object file: No such file or directory.
KHR ICD trace at /netbatch/donb00014_00/dir/workspace/NIT/xmain-rel/LX/xmainefi2linux_release/ws/icsws/builds/xmainefi2linux_pgouse_sreleaseusingrelease/llvm/_deps/ocl-icd-src/loader/icd.c:77: failed to load library /opt/intel/oneapi/redist/lib/libintelocl_emu.so
KHR ICD trace at /netbatch/donb00014_00/dir/workspace/NIT/xmain-rel/LX/xmainefi2linux_release/ws/icsws/builds/xmainefi2linux_pgouse_sreleaseusingrelease/llvm/_deps/ocl-icd-src/loader/linux/icd_linux.c:150: Failed to open path /etc/OpenCL/layers, continuing
2023-12-29 05:59:21.186694: I itex/core/wrapper/itex_gpu_wrapper.cc:35] Intel Extension for Tensorflow* GPU backend is loaded.
2023-12-29 05:59:21.247259: I itex/core/devices/gpu/itex_gpu_runtime.cc:129] Selected platform: Intel(R) Level-Zero
2023-12-29 05:59:21.247334: I itex/core/devices/gpu/itex_gpu_runtime.cc:154] number of sub-devices is zero, expose root device.
[PhysicalDevice(name='/physical_device:CPU:0', device_type='CPU'), PhysicalDevice(name='/physical_device:XPU:0', device_type='XPU')]
srinarayan-srikanthan commented 8 months ago

Hi @perfectnewer, I see in the docker container tf detecting the XPU. Can you please provide the step where the device is not detected.

perfectnewer commented 8 months ago

@srinarayan-srikanthan sorry,due to previous failures,i only noticed 2023-12-29 05:57:04.345199: I itex/core/devices/gpu/itex_gpu_runtime.cc:154] number of sub-devices is zero, expose root device. and 2023-12-29 05:59:19.661104: E *. after i update vladmandic/automatic,it works now