You are not logged in.

#1 2020-08-19 23:24:43

xcabal
Member
Registered: 2012-07-26
Posts: 48

opencl clinfo Segmentation fault

I am going to teach myself how to program using opencl, I followed the wiki and installed NVIDIA's opencl and both Intel's opencl beignet and intel-opencl. I am using the Nvidia as my display card as well.
When I tried to run sudo clinfo I get the following

Number of platforms                               3
  Platform Name                                   NVIDIA CUDA
  Platform Vendor                                 NVIDIA Corporation
  Platform Version                                OpenCL 1.2 CUDA 11.0.210
  Platform Profile                                FULL_PROFILE
  Platform Extensions                             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_fp64 cl_khr_byte_addressable_store cl_khr_icd cl_khr_gl_sharing cl_nv_compiler_options cl_nv_device_attribute_query cl_nv_pragma_unroll cl_nv_copy_opts cl_nv_create_buffer cl_khr_int64_base_atomics cl_khr_int64_extended_atomics
  Platform Extensions function suffix             NV

  Platform Name                                   Intel(R) OpenCL
  Platform Vendor                                 Intel(R) Corporation
  Platform Version                                OpenCL 1.2 
  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
  Platform Extensions function suffix             INTEL

  Platform Name                                   Intel Gen OCL Driver
  Platform Vendor                                 Intel
  Platform Version                                OpenCL 2.0 beignet 1.4 (git-fc5f430c)
  Platform Profile                                FULL_PROFILE
  Platform Extensions                             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_3d_image_writes cl_khr_image2d_from_buffer cl_khr_depth_images cl_khr_spir cl_khr_icd cl_intel_accelerator cl_intel_subgroups cl_intel_subgroups_short cl_intel_required_subgroup_size cl_intel_media_block_io cl_intel_planar_yuv
  Platform Extensions function suffix             Intel
zsh: segmentation fault  sudo clinfo

removing beignet  gives

Number of platforms                               2
  Platform Name                                   NVIDIA CUDA
  Platform Vendor                                 NVIDIA Corporation
  Platform Version                                OpenCL 1.2 CUDA 11.0.210
  Platform Profile                                FULL_PROFILE
  Platform Extensions                             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_fp64 cl_khr_byte_addressable_store cl_khr_icd cl_khr_gl_sharing cl_nv_compiler_options cl_nv_device_attribute_query cl_nv_pragma_unroll cl_nv_copy_opts cl_nv_create_buffer cl_khr_int64_base_atomics cl_khr_int64_extended_atomics
  Platform Extensions function suffix             NV

  Platform Name                                   Intel(R) OpenCL
  Platform Vendor                                 Intel(R) Corporation
  Platform Version                                OpenCL 1.2 
  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
  Platform Extensions function suffix             INTEL

  Platform Name                                   NVIDIA CUDA
Number of devices                                 1
  Device Name                                     GeForce GTX 970
  Device Vendor                                   NVIDIA Corporation
  Device Vendor ID                                0x10de
  Device Version                                  OpenCL 1.2 CUDA
  Driver Version                                  450.57
  Device OpenCL C Version                         OpenCL C 1.2 
  Device Type                                     GPU
  Device Topology (NV)                            PCI-E, 01:00.0
  Device Profile                                  FULL_PROFILE
  Device Available                                Yes
  Compiler Available                              Yes
  Linker Available                                Yes
  Max compute units                               13
  Max clock frequency                             1279MHz
  Compute Capability (NV)                         5.2
  Device Partition                                (core)
    Max number of sub-devices                     1
    Supported partition types                     None
    Supported affinity domains                    (n/a)
  Max work item dimensions                        3
  Max work item sizes                             1024x1024x64
  Max work group size                             1024
  Preferred work group size multiple              32
  Warp size (NV)                                  32
  Preferred / native vector sizes                 
    char                                                 1 / 1       
    short                                                1 / 1       
    int                                                  1 / 1       
    long                                                 1 / 1       
    half                                                 0 / 0        (n/a)
    float                                                1 / 1       
    double                                               1 / 1        (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                                 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         (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                              4238016512 (3.947GiB)
  Error Correction support                        No
  Max memory allocation                           1059504128 (1010MiB)
  Unified memory for Host and Device              No
  Integrated memory (NV)                          No
  Minimum alignment for any data type             128 bytes
  Alignment of base address                       4096 bits (512 bytes)
  Global Memory cache type                        Read/Write
  Global Memory cache size                        638976 (624KiB)
  Global Memory cache line size                   128 bytes
  Image support                                   Yes
    Max number of samplers per kernel             32
    Max size for 1D images from buffer            268435456 pixels
    Max 1D or 2D image array size                 2048 images
    Max 2D image size                             16384x16384 pixels
    Max 3D image size                             4096x4096x4096 pixels
    Max number of read image args                 256
    Max number of write image args                16
  Local memory type                               Local
  Local memory size                               49152 (48KiB)
  Registers per block (NV)                        65536
  Max number of constant args                     9
  Max constant buffer size                        65536 (64KiB)
  Max size of kernel argument                     4352 (4.25KiB)
  Queue properties                                
    Out-of-order execution                        Yes
    Profiling                                     Yes
  Prefer user sync for interop                    No
  Profiling timer resolution                      1000ns
  Execution capabilities                          
    Run OpenCL kernels                            Yes
    Run native kernels                            No
    Kernel execution timeout (NV)                 Yes
  Concurrent copy and kernel execution (NV)       Yes
    Number of async copy engines                  2
  printf() buffer size                            1048576 (1024KiB)
  Built-in kernels                                (n/a)
  Device Extensions                               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_fp64 cl_khr_byte_addressable_store cl_khr_icd cl_khr_gl_sharing cl_nv_compiler_options cl_nv_device_attribute_query cl_nv_pragma_unroll cl_nv_copy_opts cl_nv_create_buffer cl_khr_int64_base_atomics cl_khr_int64_extended_atomics

  Platform Name                                   Intel(R) OpenCL
Number of devices                                 1
  Device Name                                            Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz
  Device Vendor                                   Intel(R) Corporation
  Device Vendor ID                                0x8086
  Device Version                                  OpenCL 1.2 (Build 475)
  Driver Version                                  1.2.0.475
  Device OpenCL C Version                         OpenCL C 1.2 
  Device Type                                     CPU
  Device Profile                                  FULL_PROFILE
  Device Available                                Yes
  Compiler Available                              Yes
  Linker Available                                Yes
  Max compute units                               4
  Max clock frequency                             3400MHz
  Device Partition                                (core)
    Max number of sub-devices                     4
    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
zsh: segmentation fault  sudo clinfo

ls /etc/OpenCL/vendors gives

intel-beignet.icd  intel-gpu.icd  nvidia.icd

removing both of intel, clinfo works without issue

just in case here is lsmod

Module                  Size  Used by
nvidia_uvm           1146880  0
rfcomm                 94208  16
nvidia_drm             61440  8
nvidia_modeset       1187840  21 nvidia_drm
nvidia              19738624  1092 nvidia_uvm,nvidia_modeset
tun                    61440  2
ccm                    20480  0
hid_logitech_hidpp     53248  0
algif_aead             16384  0
88XXau               2449408  0
cbc                    16384  0
des_generic            16384  0
libdes                 28672  1 des_generic
bnep                   32768  2
ecb                    16384  0
arc4                   16384  0
libarc4                16384  1 arc4
uvcvideo              118784  0
algif_skcipher         16384  2
snd_usb_audio         327680  1
mousedev               24576  0
input_leds             16384  0
joydev                 28672  0
videobuf2_vmalloc      20480  1 uvcvideo
videobuf2_memops       20480  1 videobuf2_vmalloc
btusb                  69632  0
videobuf2_v4l2         32768  1 uvcvideo
btrtl                  28672  1 btusb
btbcm                  16384  1 btusb
snd_usbmidi_lib        49152  1 snd_usb_audio
btintel                32768  1 btusb
videobuf2_common       61440  2 videobuf2_v4l2,uvcvideo
snd_rawmidi            49152  1 snd_usbmidi_lib
cmac                   16384  5
videodev              286720  3 videobuf2_v4l2,uvcvideo,videobuf2_common
bluetooth             757760  43 btrtl,btintel,btbcm,bnep,btusb,rfcomm
cfg80211              929792  1 88XXau
snd_seq_device         16384  1 snd_rawmidi
md4                    16384  0
mc                     69632  5 videodev,snd_usb_audio,videobuf2_v4l2,uvcvideo,videobuf2_common
algif_hash             16384  2
af_alg                 32768  11 algif_hash,algif_skcipher,algif_aead
ecdh_generic           16384  2 bluetooth
rfkill                 32768  7 bluetooth,cfg80211
ecc                    36864  1 ecdh_generic
hid_logitech_dj        28672  0
intel_rapl_msr         20480  0
snd_hda_codec_realtek   155648  1
snd_hda_codec_generic   110592  1 snd_hda_codec_realtek
ledtrig_audio          16384  2 snd_hda_codec_generic,snd_hda_codec_realtek
intel_rapl_common      36864  1 intel_rapl_msr
x86_pkg_temp_thermal    20480  0
intel_powerclamp       20480  0
coretemp               20480  0
kvm_intel             344064  0
hid_generic            16384  0
i915                 2842624  3
snd_hda_codec_hdmi     81920  2
kvm                   929792  1 kvm_intel
mei_hdcp               24576  0
snd_hda_intel          53248  4
nls_iso8859_1          16384  1
snd_intel_dspcfg       24576  1 snd_hda_intel
nls_cp437              20480  1
vfat                   24576  1
fat                    90112  1 vfat
snd_hda_codec         180224  4 snd_hda_codec_generic,snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec_realtek
irqbypass              16384  1 kvm
at24                   24576  0
iTCO_wdt               16384  0
intel_pmc_bxt          16384  1 iTCO_wdt
gpio_ich               16384  0
crct10dif_pclmul       16384  1
crc32_pclmul           16384  0
ghash_clmulni_intel    16384  0
iTCO_vendor_support    16384  1 iTCO_wdt
ppdev                  24576  0
i2c_algo_bit           16384  1 i915
snd_hda_core          114688  5 snd_hda_codec_generic,snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec,snd_hda_codec_realtek
aesni_intel           372736  7
crypto_simd            16384  1 aesni_intel
drm_kms_helper        282624  2 nvidia_drm,i915
snd_hwdep              16384  2 snd_usb_audio,snd_hda_codec
cryptd                 28672  4 crypto_simd,ghash_clmulni_intel
glue_helper            16384  1 aesni_intel
snd_pcm               163840  5 snd_hda_codec_hdmi,snd_hda_intel,snd_usb_audio,snd_hda_codec,snd_hda_core
rapl                   16384  0
intel_cstate           16384  0
usbhid                 65536  1 hid_logitech_dj
intel_uncore          167936  0
cec                    81920  2 drm_kms_helper,i915
snd_timer              45056  1 snd_pcm
snd                   118784  22 snd_hda_codec_generic,snd_seq_device,snd_hda_codec_hdmi,snd_hwdep,snd_hda_intel,snd_usb_audio,snd_usbmidi_lib,snd_hda_codec,snd_hda_codec_realtek,snd_timer,snd_pcm,snd_rawmidi
hid                   151552  4 usbhid,hid_generic,hid_logitech_dj,hid_logitech_hidpp
intel_gtt              24576  1 i915
rc_core                61440  1 cec
syscopyarea            16384  1 drm_kms_helper
mei_me                 49152  1
sysfillrect            16384  1 drm_kms_helper
i2c_i801               36864  0
sysimgblt              16384  1 drm_kms_helper
soundcore              16384  1 snd
fb_sys_fops            16384  1 drm_kms_helper
lpc_ich                28672  0
mei                   131072  3 mei_hdcp,mei_me
i2c_smbus              20480  1 i2c_i801
ie31200_edac           16384  0
wmi                    36864  0
parport_pc             53248  0
parport                69632  2 parport_pc,ppdev
evdev                  24576  9
mac_hid                16384  0
vboxnetflt             32768  0
vboxnetadp             28672  0
vboxdrv               552960  2 vboxnetadp,vboxnetflt
drm                   643072  13 drm_kms_helper,nvidia_drm,i915
pkcs8_key_parser       16384  0
crypto_user            16384  0
agpgart                53248  2 intel_gtt,drm
ip_tables              36864  0
x_tables               57344  1 ip_tables
ext4                  823296  4
crc32c_generic         16384  0
crc16                  16384  2 bluetooth,ext4
mbcache                16384  1 ext4
jbd2                  143360  1 ext4
crc32c_intel           24576  6
xhci_pci               20480  0
xhci_pci_renesas       20480  1 xhci_pci
ehci_pci               20480  0
xhci_hcd              307200  1 xhci_pci
ehci_hcd              106496  1 ehci_pci

Also running hashcat -b with either intel results in segmentation fault and removing both hashcat runs fine

Any help tackling this will be helpful Thanks

Offline

#2 2020-08-25 20:56:54

jui
Member
Registered: 2020-08-25
Posts: 1

Re: opencl clinfo Segmentation fault

After some recent updates, I ran into Darktable segfaulting, and a bit later I found clinfo segfaulting. Some searching led me to https://bugs.archlinux.org/task/63476, with the following info matching at least my case:

Beignet is dead and indeed full of bugs. For newer generation chips, there is Intel Compute Runtime, a.k.a. Neo. For older one, there is no hope.

I did try intel-opencl on AUR, too, but that segfaults as well. So, unfortunately, no help from me, but at least I can confirm it doesn't work. I haven't been using the affected computer often lately, so I have little idea about the update that made beignet not work. Then again, I probably have the working set of packages still in my cache, but can't figure the right ones from the top of my head. I remember it stopped working after upgrading packages in August, but beignet itself was not updated. Out of a hunch, I tried downgrading the kernel but that didn't help. I'm not familiar enough with the OpenCL to have an idea about which dependency affects beignet.

Last edited by jui (2020-08-26 15:18:24)

Offline

#3 2020-08-26 22:50:28

xcabal
Member
Registered: 2012-07-26
Posts: 48

Re: opencl clinfo Segmentation fault

Thanks for the reply JUI.
Damn, well guess I'm stuck using NVIDIA for opencl, not that is a deal breaker for me. I don't want to start compiling everything needed for beignet-git as m.kaburagi suggested. I didn't think it was a package problem but something on my end

Offline

Board footer

Powered by FluxBB