From owner-freebsd-questions@freebsd.org Thu Jul 13 14:02:07 2017 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 7BD3DDA3873 for ; Thu, 13 Jul 2017 14:02:07 +0000 (UTC) (envelope-from steven_nikkel@ertyu.org) Received: from vmx.ertyu.org (vmx.ertyu.org [IPv6:2001:19f0:5c00:944f:5400:ff:fe1a:d00]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 514557947D for ; Thu, 13 Jul 2017 14:02:07 +0000 (UTC) (envelope-from steven_nikkel@ertyu.org) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=ertyu.org; s=standard; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Date: Message-ID:Subject:From:To:Sender:Reply-To:Cc:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: In-Reply-To:References:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=UwJJTFuj4jwqO6eT56jTsjmCpG1smjk2sznGPyJm9A8=; b=dVqSufUTVXwVJlCJ/wb8EQdcHx WCJkH5g2vc4t5PlHFpRLd4rnr1UOm47J6DqduoEOgpgsNTXIGeD0wg472Ioq3Qfzfaf7yDkvvtiZx AxF3kOOVhjPKqL61OdliJOqFMmg6xKHh8PyDw2LQ5teFq4YhuRVlPZOa9pGVwanPGlMPmGG/hTOXk eGeKpvdzD1I215Pkj/2tY9BOhEBKdqgkduvjnHLUNpKaqWQeFNKBnuI3sZarcTBixWxEeR/rye2iI X0o6Tl3M/x5f6ojxPyw9g6akvum/hC6Ns7yT5rDEJnum1iA3dq3diiAEwn5R/JM9Znba8E5fDtfa1 GVQ45zFw==; To: freebsd-questions@freebsd.org From: Steven Nikkel Subject: OpenCL Issues Message-ID: Date: Thu, 13 Jul 2017 09:02:04 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 13 Jul 2017 14:02:07 -0000 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?