From owner-freebsd-x11@freebsd.org Sun Aug 27 17:23:23 2017 Return-Path: Delivered-To: freebsd-x11@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 21DEADF4042 for ; Sun, 27 Aug 2017 17:23:23 +0000 (UTC) (envelope-from jbeich@freebsd.org) Received: from freefall.freebsd.org (freefall.freebsd.org [96.47.72.132]) (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 8CD537C111; Sun, 27 Aug 2017 17:23:22 +0000 (UTC) (envelope-from jbeich@freebsd.org) Received: by freefall.freebsd.org (Postfix, from userid 1354) id E55BC11131; Sun, 27 Aug 2017 17:23:21 +0000 (UTC) From: Jan Beich To: Scott Bennett Cc: freebsd-x11@freebsd.org Subject: Re: x11/nvidia-driver-340 and OpenCL References: <201708241205.v7OC5wrR016229@sdf.org> <201708271111.v7RBB7Z8005388@sdf.org> Date: Sun, 27 Aug 2017 19:23:16 +0200 Message-ID: <8ti4-udq3-wny@FreeBSD.org> MIME-Version: 1.0 Content-Type: text/plain X-BeenThere: freebsd-x11@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: X11 on FreeBSD -- maintaining and support List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 27 Aug 2017 17:23:23 -0000 Scott Bennett writes: > Thank you very much for that information, Jan. I will take a look at > that, but if the situation is that chancy and would mean being stuck with > 32-bit emulation, it probably wouldn't be my best option after all. lang/pocl may also be useful, mainly when debugging OpenCL in apps. > Do you know whether a 64-bit driver (for later Nvidia cards, of course) > is in the works with up-to-date features? No. Try pinging upstream on https://devtalk.nvidia.com/default/board/97/ > Or would I do better by buying a more recent Radeon card? Did lang/clover not work on Radeon HD 3870 e.g., with radeonkms + r600g? If so, try upgrading just the kernel to drm-next branch. Personally, I use lang/beignet on Intel Skylake GT2 (iGPU). The performance is decent enough to accelerate some jobs e.g., waifu2x-convert-cpp, ImageMagick, FFmpeg (a few filters but VAAPI encoding also works). X11 display stutters if OpenCL is running on the same GPU, but neither setpriority(2) nor rtprio(2) help. Switching X11 display to NVIDIA Kepler GK107 (dGPU) eliminated the stutter. However, there's probably a better way to schedule jobs on GPU.