From owner-freebsd-questions@freebsd.org Fri Oct 6 22:54:03 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 9BD13E439EF for ; Fri, 6 Oct 2017 22:54:03 +0000 (UTC) (envelope-from jbeich@freebsd.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2610:1c1:1:6074::16:84]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "freefall.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 73E2C72FE6; Fri, 6 Oct 2017 22:54:03 +0000 (UTC) (envelope-from jbeich@freebsd.org) Received: by freefall.freebsd.org (Postfix, from userid 1354) id 854FAA784; Fri, 6 Oct 2017 22:54:02 +0000 (UTC) From: Jan Beich To: Steven Nikkel Cc: freebsd-questions@freebsd.org Subject: Re: OpenCL Issues References: <1b3fafb4-1f41-1ef0-dce5-3c97ccb39570@ertyu.org> Date: Sat, 07 Oct 2017 00:53:58 +0200 In-Reply-To: (Steven Nikkel's message of "Fri, 14 Jul 2017 19:21:21 -0500") Message-ID: MIME-Version: 1.0 Content-Type: text/plain 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: Fri, 06 Oct 2017 22:54:03 -0000 Steven Nikkel writes: > On 2017-07-14 6:11 PM, Jan Beich wrote: > >> Steven Nikkel writes: >> >>> On 2017-07-14 8:13 AM, Jan Beich wrote: >>>> See https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=217635 >>>> >>> >>> Thanks, work around from the bug report solves my issue with beignet >>> and I can successfully use OpenCL on that host. >> ^^^^^^^^^^^ >> >> Awesome! I'd like to update the port to a snapshot to pick up the fix in >> question upstream, LLVM 4.0 support, more optimizations and catch >> regressions early. Can you give it a try? >> >> https://reviews.freebsd.org/D11377 (see Download Raw Diff) >> > > The update builds and installs. It runs clinfo fine, but I'm getting > errors in my CL app, looks like it can't find the cl_amd_media_ops > extension. Not sure where that error comes from as it's fine in the > 1.3.1 from the existing port. > > Error building cl program on device 0 > Error code -11, message: Program build failure > Build log returned 624 bytes > Build Log: > stringInput.cl:56:17: warning: implicit declaration of function > 'amd_byteal ... > stringInput.cl:12:19: note: expanded from macro 'SWAP' > stringInput.cl:56:17: error: function with no prototype cannot use the > spir ... > stringInput.cl:12:19: note: expanded from macro 'SWAP' > stringInput.cl:58:12: warning: implicit declaration of function > 'amd_bitali ... > stringInput.cl:11:20: note: expanded from macro 'ROTL' > stringInput.cl:58:12: error: function with no prototype cannot use the > spir ... > stringInput.cl:11:20: note: expanded from macro 'ROTL' I've updated the port to a release branch snapshot 52 commits after 1.3.1. It fixed some regressions since 1.3.0 and got LLVM support up to 5.0. Can you check if your app now works fine or not?