From owner-freebsd-questions@freebsd.org Mon Jul 17 15:56:46 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 C7A1AD96BC6 for ; Mon, 17 Jul 2017 15:56:46 +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 A70DC65751; Mon, 17 Jul 2017 15:56:46 +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:In-Reply-To: MIME-Version:Date:Message-ID:From:References:Cc:To:Subject:Sender:Reply-To: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=MclVK+3PVGVmNWAQhCIuV0dmSuH+NMLCd45vyzJBZL4=; b=zlS1ZCPUy+Sgd1SAUdk4MtHeZT O6QCjvxeDfOH2A3BTEAbmlIFLiW+BwZrBo83Ip3a9LVUafQ0BuQsIjjVAhn1RF14VyS9twA2E6PMG fHcF3xhuTxvJmGzziIniYfA2E+PKba6/p+g4/EYxJwhQ0UIBmWDn+BeKZ5qkD13vMXhNDfOry7O0A /5qzo6vyb1614f/pq3Y32x+/k9RtsWQaq17zLYn7qfibR7YcFtu/PkqFZ/IXMB3xLlbFxuem7ys5b bngIiwHninkflTYYbL93/7rQoHT/KwAIwKNiHIl5Io1VZYISVYMnmWvLYlzyv5YWnk9dmGYUzDK2c JXEg+kaw==; Subject: Re: OpenCL Issues To: Jan Beich Cc: freebsd-questions@freebsd.org References: <1b3fafb4-1f41-1ef0-dce5-3c97ccb39570@ertyu.org> <8tjn-v9jp-wny@FreeBSD.org> From: Steven Nikkel Message-ID: Date: Mon, 17 Jul 2017 10:56:44 -0500 MIME-Version: 1.0 In-Reply-To: <8tjn-v9jp-wny@FreeBSD.org> 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: Mon, 17 Jul 2017 15:56:46 -0000 On 2017-07-17 1:53 AM, Jan Beich wrote: > 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. > > What does clinfo show? Is cl_amd_media_ops listed in among extensions? > Can you try building against LLVM 3.9 (MESA_LLVM_VER=39) or LLVM 5.0 > (MESA_LLVM_VER=-devel) via lang/beignet/Makefile.local? Can you post > a link to the source, assuming it's an open project? > > I can't reproduce and not familar enough with OpenCL to guess. Maybe bisect. > The cl_amd_media_ops extension isn't listed in clinfo for the working or non working beignet case. This is the specific source generating that error: https://github.com/dcti/dnetc-client-base/blob/master/rc5-72/opencl/rc5-4pipe.cl The overall source isn't currently setup to build in FreeBSD, that is what I'm working on. I noticed it's wrapped in a test to check for the extension before using it. Not sure if that is the correct way or not. Tried building patched beignet with LLVM 3.9, different error message, fails an internal consistency check in the code.