Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 13 Jul 2017 09:02:04 -0500
From:      Steven Nikkel <steven_nikkel@ertyu.org>
To:        freebsd-questions@freebsd.org
Subject:   OpenCL Issues
Message-ID:  <b18982c9-54ea-69c2-13d3-b507617cff60@ertyu.org>

next in thread | raw e-mail | index | archive | help
I've been trying to experiment with OpenCL but I just can't get it 
working. I've installed devel/ocl-icd and devel/clinfo. I installed 
lang/beignet on a system with Ivy Bridge graphics and loaded the i915kms 
module. On another system I used the lang/pocl driver instead. Whenever 
I try to use anything OpenCL I get a segfault.

For example:
# clinfo
Number of platforms                               1
   Platform Name                                   Intel Gen OCL Driver
   Platform Vendor                                 Intel
   Platform Version                                OpenCL 1.2 beignet 1.3
   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
   Platform Extensions function suffix             Intel
Segmentation fault (core dumped)

#0  0x00000008025e5064 in drm_intel_bo_set_softpin_offset ()
    from /usr/local/lib/libdrm_intel.so.1
#1  0x00000008018153bf in clGetProgramBuildInfo ()
    from /usr/local/lib/beignet//libcl.so
#2  0x0000000801814e68 in clGetProgramBuildInfo ()
    from /usr/local/lib/beignet//libcl.so
#3  0x000000080180caf7 in clBuildProgram ()
    from /usr/local/lib/beignet//libcl.so
#4  0x00000008018206a5 in process_extension_str ()
    from /usr/local/lib/beignet//libcl.so
#5  0x0000000801820860 in process_extension_str ()
    from /usr/local/lib/beignet//libcl.so
#6  0x000000080083498a in clGetDeviceIDs () from 
/usr/local/lib/libOpenCL.so.1
#7  0x0000000000401fac in ?? ()
#8  0x0000000000409827 in ?? ()
#9  0x000000000040150f in ?? ()
#10 0x000000080062f000 in ?? ()
#11 0x0000000000000000 in ?? ()


What am I missing or doing wrong?



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?b18982c9-54ea-69c2-13d3-b507617cff60>