OpenCL* for CPU
Ask questions and share information on Intel® SDK for OpenCL™ Applications and OpenCL™ implementations for Intel® CPU.
Announcements
This forum covers OpenCL* for CPU only. OpenCL* for GPU questions can be asked in the GPU Compute Software forum. Intel® FPGA SDK for OpenCL™ questions can be ask in the FPGA Intel® High Level Design forum.

Neo crashes

voznesensky__vladimi
917 Views

OS: Ubuntu 17.10

Gdb clinfo output:

...@...:~$ gdb clinfo  
GNU gdb (Ubuntu 8.0.1-0ubuntu1) 8.0.1
Copyright (C) 2017 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from clinfo...(no debugging symbols found)...done.
(gdb) run
Starting program: /usr/bin/clinfo 
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
Number of platforms                               2
  Platform Name                                   Experimental OpenCL 2.1 CPU Only Platform
  Platform Vendor                                 Intel(R) Corporation
  Platform Version                                OpenCL 2.1 LINUX
  Platform Profile                                FULL_PROFILE
  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 
  Platform Host timer resolution                  1ns
  Platform Extensions function suffix             INTEL

  Platform Name                                   Intel(R) OpenCL HD Graphics
  Platform Vendor                                 Intel(R) Corporation
  Platform Version                                OpenCL 2.1 
  Platform Profile                                FULL_PROFILE
  Platform Extensions                             cl_khr_3d_image_writes cl_khr_byte_addressable_store cl_khr_fp16 cl_khr_depth_images cl_khr_global_int32_base_atomics cl_khr_global_int32_extended_atomics cl_khr_icd cl_khr_image2d_from_buffer cl_khr_local_int32_base_atomics cl_khr_local_int32_extended_atomics cl_intel_subgroups cl_intel_required_subgroup_size cl_intel_subgroups_short cl_khr_spir cl_intel_accelerator cl_intel_media_block_io cl_intel_driver_diagnostics cl_intel_device_side_avc_motion_estimation cl_khr_priority_hints cl_khr_throttle_hints cl_khr_create_command_queue cl_khr_subgroups cl_khr_il_program cl_khr_fp64 cl_intel_planar_yuv cl_intel_packed_yuv cl_intel_motion_estimation cl_intel_advanced_motion_estimation 
  Platform Host timer resolution                  1ns
  Platform Extensions function suffix             INTEL

  Platform Name                                   Experimental OpenCL 2.1 CPU Only Platform
Number of devices                                 1
  Device Name                                     Intel(R) Core(TM) i3-6100 CPU @ 3.70GHz
  Device Vendor                                   Intel(R) Corporation
  Device Vendor ID                                0x8086
  Device Version                                  OpenCL 2.1 (Build 10)
  Driver Version                                  1.2.0.10
  Device OpenCL C Version                         OpenCL C 2.0 
  Device Type                                     CPU
  Device Profile                                  FULL_PROFILE
  Max compute units                               4
  Max clock frequency                             3700MHz
  Device Partition                                (core)
    Max number of sub-devices                     4
    Supported partition types                     by counts, equally, by names (Intel)
  Max work item dimensions                        3
  Max work item sizes                             8192x8192x8192
  Max work group size                             8192
[New Thread 0x7ffef2b3a700 (LWP 14210)]
[New Thread 0x7ffeebfff700 (LWP 14211)]
[New Thread 0x7ffef2739700 (LWP 14212)]
  Preferred work group size multiple              128
  Max sub-groups per work group                   1
  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
    Correctly-rounded divide and sqrt operations  No
  Address bits                                    64, Little-Endian
  Global memory size                              16704724992 (15.56GiB)
  Error Correction support                        No
  Max memory allocation                           4176181248 (3.889GiB)
  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
  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                        262144
  Global Memory cache line                        64 bytes
  Image support                                   Yes
    Max number of samplers per kernel             480
    Max size for 1D images from buffer            261011328 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 bytes
    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
  Max number of pipe args                         16
  Max active pipe reservations                    65535
  Max pipe packet size                            1024
  Local memory type                               Global
  Local memory size                               32768 (32KiB)
  Max constant buffer size                        131072 (128KiB)
  Max number of constant args                     480
  Max size of kernel argument                     3840 (3.75KiB)
  Queue properties (on host)                      
    Out-of-order execution                        Yes
    Profiling                                     Yes
    Local thread execution (Intel)                Yes
  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
    Sub-group independent forward progress        No
    IL version                                    SPIR-V_1.0
    SPIR versions                                 1.2
  printf() buffer size                            1048576 (1024KiB)
  Built-in kernels                                
  Device Available                                Yes
  Compiler Available                              Yes
  Linker Available                                Yes
  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 

  Platform Name                                   Intel(R) OpenCL HD Graphics
Number of devices                                 1
  Device Name                                     Intel(R) Gen9 HD Graphics NEO
  Device Vendor                                   Intel(R) Corporation
  Device Vendor ID                                0x8086
  Device Version                                  OpenCL 2.1 NEO 
  Driver Version                                  1.0
  Device OpenCL C Version                         OpenCL C 2.0 
  Device Type                                     GPU
  Device Profile                                  FULL_PROFILE
  Max compute units                               23
  Max clock frequency                             1050MHz
  Device Partition                                (core)
    Max number of sub-devices                     0
    Supported partition types                     None
  Max work item dimensions                        3
  Max work item sizes                             256x256x256
  Max work group size                             256

Thread 1 "clinfo" received signal SIGSEGV, Segmentation fault.
TC::Utils::FillOutputArgs (pFEBinaryResult=0x0, pOutputArgs=0x7fffffffd940, exceptString="") at /home/.../neo/igc/IGC/OCLFE/igd_fcl_mcl/source/clang_tb.cpp:139
139                             pOutputArgs->ErrorStringSize = (uint32_t)strlen(pFEBinaryResult->GetErrorLog());
(gdb) bt
#0  TC::Utils::FillOutputArgs (pFEBinaryResult=0x0, pOutputArgs=0x7fffffffd940, exceptString="") at /home/.../neo/igc/IGC/OCLFE/igd_fcl_mcl/source/clang_tb.cpp:139
#1  0x00007ffef2c8dde6 in TC::CClangTranslationBlock::TranslateClang (this=this@entry=0x170ab00, pInputArgs=pInputArgs@entry=0x7fffffffd7c0, 
    pOutputArgs=pOutputArgs@entry=0x7fffffffd940, exceptString="", 
    pInternalOptions=0xbae6f0 "-ocl-version=210 -fpreserve-vec3-type -cl-ext=-all,+cl_khr_3d_image_writes,+cl_khr_byte_addressable_store,+cl_khr_fp16,+cl_khr_depth_images,+cl_khr_global_int32_base_atomics,+cl_khr_global_int32_exten"...) at /home/.../neo/igc/IGC/OCLFE/igd_fcl_mcl/source/clang_tb.cpp:824
#2  0x00007ffef2c8fe73 in TC::CClangTranslationBlock::Translate (this=0x170ab00, pInputArgs=0x7fffffffd970, pOutputArgs=0x7fffffffd940)
    at /home/.../neo/igc/IGC/OCLFE/igd_fcl_mcl/source/clang_tb.cpp:1055
#3  0x00007ffef2c93a96 in IGC::FclOclTranslationCtx<0ul>::Impl::Translate (tracingOptionsCount=0, tracingOptions=0x0, internalOptions=0x637b50, options=0x16ebaa0, 
    src=<optimized out>, outVersion=1, this=0x17797a0) at /home/.../neo/igc/IGC/AdaptorOCL/ocl_igc_interface/impl/fcl_ocl_translation_ctx_impl.h:115
#4  IGC::FclOclTranslationCtx<1ul>::TranslateImpl (this=<optimized out>, outVersion=1, src=<optimized out>, options=0x16ebaa0, internalOptions=0x637b50, 
    tracingOptions=0x0, tracingOptionsCount=0) at /home/.../neo/igc/IGC/AdaptorOCL/ocl_igc_interface/impl/fcl_ocl_translation_ctx_impl.cpp:42
#5  0x00007ffff539eef4 in OCLRT::CompilerInterface::build(OCLRT::Program&, OCLRT::TranslationArgs const&, bool) () from /opt/intel/opencl/libigdrcl.so
#6  0x00007ffff53d24c3 in OCLRT::Program::build(unsigned int, _cl_device_id* const*, char const*, void (*)(_cl_program*, void*), void*, bool) ()
   from /opt/intel/opencl/libigdrcl.so
#7  0x00007ffff5375156 in clBuildProgram () from /opt/intel/opencl/libigdrcl.so
#8  0x00000000004057f8 in ?? ()
#9  0x0000000000405d0c in ?? ()
#10 0x0000000000406a57 in ?? ()
#11 0x0000000000407642 in ?? ()
#12 0x00000000004014c4 in ?? ()
#13 0x00007ffff760a1c1 in __libc_start_main (main=0x401180, argc=1, argv=0x7fffffffdff8, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, 
    stack_end=0x7fffffffdfe8) at ../csu/libc-start.c:308
#14 0x00000000004015a9 in ?? ()
(gdb) 

Ask your questions, please.

0 Kudos
2 Replies
Alexey_B_Intel1
Employee
917 Views

Hi Vladimir,

I think you have two conflicting OpenCL installations: experimental OpenCL CPU and NEO.

See this issue with NEO here: https://github.com/intel/compute-runtime/issues/21.

- Alexey

0 Kudos
Michael_C_Intel1
Moderator
917 Views

VladimirV,

Thanks for the report of your issue and providing the clinfo output along with the stack trace. This kind of feedback can lead to very helpful discussion.

At the current time, if users observe issues with new neo deployments on systems with existing ocl implementations a few recommendations:

1) Consider if you really need to run an opencl build that comes from the SRB5.0 package at the same time you're running NEO. Consider removing older implementations that you don't plan to use.

2) Check for an update to the source tree located on github. The developers have been making a ton of updates since the github repo went live. The linked example is a good example of an issue where developers have checkins suggestive of mitigation. (https://github.com/intel/compute-runtime/issues/21).

For context, the NEO opencl driver development tree is divergent from previous SRB releases. As products move toward a NEO driver stack, we'll have more coverage for how they coexist. Reports like this will help. Going forward, closed source opencl cpu runtime and opencl sdk teams have committed to validating along side NEO builds as appropriate.

If you have any changes to your configuration... please share your experience with the thread. Thanks.

 

0 Kudos
Reply