[OpenCL] segmentation fault at clBuildProgram

Владимир Крылов volodimir.krylov at gmail.com
Wed Apr 5 14:28:56 UTC 2017


Hello,

I try to use lang/clover but i have a segmentation fault. Can you help me
to solve this problem?

FreeBSD 11.0-RELEASE-p1 #0 r308702

vgapci0 at pci0:1:0:0:     class=0x030000 card=0x220c1458 chip=0x68ba1002
rev=0x00 hdr=0x00
    vendor     = 'Advanced Micro Devices, Inc. [AMD/ATI]'
    device     = 'Juniper XT [Radeon HD 6770]'
    class      = display
    subclass   = VGA

> pkg info | grep 'clover\|clinfo\|ocl-icd'
clinfo-2.1.16.01.12            OpenCL info program like glxinfo is for libGL
clover-13.0.6                  Mesa "Clover" OpenCL library
ocl-icd-2.2.11_1               OpenCL Installable Client Driver

> clinfo
Number of platforms                               1
  Platform Name                                   Clover
  Platform Vendor                                 Mesa
  Platform Version                                OpenCL 1.1 Mesa 13.0.6
  Platform Profile                                FULL_PROFILE
  Platform Extensions                             cl_khr_icd
  Platform Extensions function suffix             MESA

  Platform Name                                   Clover
Number of devices                                 1
  Device Name                                     AMD JUNIPER (DRM 2.29.0 /
11.0-RELEASE-p1, LLVM 3.9.1)
  Device Vendor                                   AMD
  Device Vendor ID                                0x1002
  Device Version                                  OpenCL 1.1 Mesa 13.0.6
  Driver Version                                  13.0.6
  Device OpenCL C Version                         OpenCL C 1.1
  Device Type                                     GPU
  Device Profile                                  FULL_PROFILE
  Max compute units                               1
  Max clock frequency                             0MHz
  Max work item dimensions                        3
  Max work item sizes                             256x256x256
  Max work group size                             256
Ошибка сегментации(core dumped)

>gdb /usr/local/bin/clinfo clinfo.core
(gdb) bt
#0  0x000000080154f254 in std::__1::bad_function_call::~bad_function_call
() from /usr/local/lib/libMesaOpenCL.so.1
#1  0x000000080154e1ee in std::__1::bad_function_call::~bad_function_call
() from /usr/local/lib/libMesaOpenCL.so.1
#2  0x0000000801544d33 in std::__1::bad_function_call::~bad_function_call
() from /usr/local/lib/libMesaOpenCL.so.1
#3  0x000000080152a03d in clIcdGetPlatformIDsKHR () from
/usr/local/lib/libMesaOpenCL.so.1
#4  0x0000000800838347 in clBuildProgram () from
/usr/local/lib/libOpenCL.so.1
#5  0x00000000004021ec in ?? ()
#6  0x0000000000403f7f in ?? ()
#7  0x00000000004072e9 in ?? ()
#8  0x0000000000407d11 in ?? ()
#9  0x00000000004097c4 in ?? ()
#10 0x000000000040151f in ?? ()
#11 0x0000000800630000 in ?? ()
#12 0x0000000000000000 in ?? ()

And the example from math/clfft also has a segmentation fault at
clBuildProgram:
(gdb) bt
#0  0x000000080214f254 in std::__1::bad_function_call::~bad_function_call
() from /usr/local/lib/libMesaOpenCL.so.1
#1  0x000000080214e1ee in std::__1::bad_function_call::~bad_function_call
() from /usr/local/lib/libMesaOpenCL.so.1
#2  0x0000000802144d33 in std::__1::bad_function_call::~bad_function_call
() from /usr/local/lib/libMesaOpenCL.so.1
#3  0x000000080212a03d in clIcdGetPlatformIDsKHR () from
/usr/local/lib/libMesaOpenCL.so.1
#4  0x000000080082b347 in clBuildProgram () from
/usr/local/lib/libOpenCL.so.1
#5  0x0000000800af97aa in FFTAction::compileKernels () from
/usr/local/lib/libclFFT.so.2
#6  0x0000000800a6cd76 in
FFTGeneratedStockhamAction::FFTGeneratedStockhamAction () from
/usr/local/lib/libclFFT.so.2
#7  0x0000000800a57ac6 in selectAction () from /usr/local/lib/libclFFT.so.2
#8  0x0000000800a5863a in clfftBakePlan () from /usr/local/lib/libclFFT.so.2
#9  0x0000000000401504 in main () at clfft.c:133


And I have attached the ocl debug log at running clinfo

Thanks!
-------------- next part --------------
A non-text attachment was scrubbed...
Name: OCL_ICD_DEBUG_7.log
Type: application/octet-stream
Size: 8839 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/freebsd-x11/attachments/20170405/5f83c096/attachment.obj>


More information about the freebsd-x11 mailing list