From owner-freebsd-x11@freebsd.org Wed Jan 2 11:14:25 2019 Return-Path: Delivered-To: freebsd-x11@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 1EDDB143F600 for ; Wed, 2 Jan 2019 11:14:25 +0000 (UTC) (envelope-from greg@unrelenting.technology) Received: from out.migadu.com (out.migadu.com [91.121.223.63]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "smtp.migadu.com", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id ED59786E34 for ; Wed, 2 Jan 2019 11:14:22 +0000 (UTC) (envelope-from greg@unrelenting.technology) Received: (Migadu outbound); Wed, 02 Jan 2019 11:14:15 +0000 Received: from [192.168.1.141] ([62.122.208.146]) by out.migadu.com (Haraka/2.8.16) with ESMTPSA id 3100AB23-6CB0-4C20-92A0-337DA503E491.1 envelope-from (authenticated bits=0) (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 verify=FAIL); Wed, 02 Jan 2019 11:14:15 +0000 Date: Wed, 02 Jan 2019 14:14:13 +0300 From: Greg V Subject: Re: AMDGPU RX580 OpenCL To: Tomasz CEDRO Cc: FreeBSD Questions Mailing List , freebsd-x11@freebsd.org Message-Id: <1546427653.1787.0@smtp.migadu.com> In-Reply-To: References: X-Mailer: geary/0.12.4 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed DKIM-Signature: v=1; a=rsa-sha256; bh=JmqVzpdG1sP/Bq8r9mplkl5lg7fIMRCdpFiq6KZeSAI=; c=relaxed/simple; d=unrelenting.technology; h=from:subject:date:to; s=default; b=hXzgYgVghYgO0nyMvMI3y2rKj/Qe07hh3BaBMN6Kt7flp43i865CtZ91pnmdTivppXBcJSp53w93IntbzuH4yCaTz7VTkEqw4B5VrWdBDp8fquuOfIsXP/hOVwqFqEDaNv1/2wgrhXeMVcxqHxgees+KUbj0kMjNiVTqUDw8UvE= X-Rspamd-Queue-Id: ED59786E34 X-Spamd-Bar: ------ Authentication-Results: mx1.freebsd.org; dkim=pass header.d=unrelenting.technology header.s=default header.b=hXzgYgVg; dmarc=pass (policy=none) header.from=unrelenting.technology; spf=pass (mx1.freebsd.org: domain of greg@unrelenting.technology designates 91.121.223.63 as permitted sender) smtp.mailfrom=greg@unrelenting.technology X-Spamd-Result: default: False [-6.60 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_DKIM_ALLOW(-0.20)[unrelenting.technology:s=default]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; R_SPF_ALLOW(-0.20)[+ip4:91.121.223.63]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[text/plain]; TO_DN_SOME(0.00)[]; RCVD_COUNT_THREE(0.00)[3]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[unrelenting.technology:+]; DMARC_POLICY_ALLOW(-0.50)[unrelenting.technology,none]; MX_GOOD(-0.01)[aspmx1.migadu.com,aspmx2.migadu.com]; NEURAL_HAM_SHORT(-0.98)[-0.977,0]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; IP_SCORE(-2.61)[ip: (-9.86), ipnet: 91.121.0.0/16(-3.63), asn: 16276(0.46), country: FR(-0.02)]; ASN(0.00)[asn:16276, ipnet:91.121.0.0/16, country:FR]; RCVD_TLS_ALL(0.00)[] X-BeenThere: freebsd-x11@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: X11 on FreeBSD -- maintaining and support List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 02 Jan 2019 11:14:25 -0000 On Wed, Jan 2, 2019 at 3:35 AM, Tomasz CEDRO wrote: > Hello world in 2019 :-) > > I have recently upgraded 11.2 to 12.0. I made AMDGPU work as my > desktop Xorg driver. However I still did not make it work with > OpenCL.. I have some error messages about kernel code missing.. and I > get the Segmentation Faults at some point in clinfo.. do I miss > anything? > > Did anyone make OpenCL+AMDGPU+RX580 work? Yes, you need two things: - you might have to run OpenCL applications with LD_PRELOAD=/lib/libthr.so.3 (when they're single thread applications like clinfo) https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=214204 - you have to rebuild the kernel driver with this patch https://github.com/FreeBSDDesktop/kms-drm/issues/33#issuecomment-422793245 keep in mind that Clover is not very good. It can't yet handle Blender, doesn't have image support for Darktable, etc.