From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: Re: Have GPGPU support in guix? Date: Thu, 26 Apr 2018 14:46:07 +0200 Message-ID: <87h8ny3zlc.fsf@gnu.org> References: <87lgdbsbk5.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:39746) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fBgHt-000621-Gw for guix-devel@gnu.org; Thu, 26 Apr 2018 08:46:17 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fBgHq-0007qS-Bm for guix-devel@gnu.org; Thu, 26 Apr 2018 08:46:13 -0400 Received: from hera.aquilenet.fr ([2a0c:e300::1]:50330) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1fBgHq-0007nx-4E for guix-devel@gnu.org; Thu, 26 Apr 2018 08:46:10 -0400 In-Reply-To: (Fis Trivial's message of "Wed, 25 Apr 2018 22:38:32 +0000") List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: Fis Trivial Cc: "guix-devel@gnu.org" , Joshua Branson Hello, Fis Trivial skribis: > Ludovic Court=C3=A8s writes: [...] >> Free software that you might find of interest is POCL, an OpenCL >> implementation (not yet packaged in Guix): >> >> https://github.com/pocl/pocl >> > > I mentioned it in the original mail. But packaging these thing requires > knowledge for kernel space stuffs, like kernel module for GPU, which I > don't have. So, any help is appreciated. Oh sorry, I had overlooked that. You wrote: > However, I wanted to manage all of these with guix so that we can have a > unified dependency tree. Currently there are a few options for OpenCL > runtime. Namely, beignet, neo from Intel, ROCm stack from AMD, the POCL > project and the implementation in mesa. >=20 > I tried to package beignet (an old OpenCL runtime from Intel) but it > wasn't successful due to failed tests (it failed from recognizing > device). > https://github.com/trivialfis/guixpkgs/blob/master/opencl.scm Regarding failed tests, I think that tests that expect GPU devices to be able are likely to fail: it could be that the relevant /dev nodes are inaccessible to the build users, or, more importantly, it could be that we=E2=80=99re building on a GPU-less machine such as our build farm. So th= ese tests would have to be skipped. Anyway, I would very much welcome packages in this area! Ludo=E2=80=99.