From mboxrd@z Thu Jan 1 00:00:00 1970 From: Joshua Branson Subject: Re: Have GPGPU support in guix? Date: Tue, 24 Apr 2018 19:29:29 -0400 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:58779) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fB7La-0000jt-9i for guix-devel@gnu.org; Tue, 24 Apr 2018 19:27:43 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fB7LV-0002CV-GZ for guix-devel@gnu.org; Tue, 24 Apr 2018 19:27:42 -0400 Received: from out3-smtp.messagingengine.com ([66.111.4.27]:48207) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1fB7LV-0002Ap-9P for guix-devel@gnu.org; Tue, 24 Apr 2018 19:27:37 -0400 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id B204C20E92 for ; Tue, 24 Apr 2018 19:27:35 -0400 (EDT) Received: from dobby (unknown [72.12.220.132]) by mail.messagingengine.com (Postfix) with ESMTPA id 61E52E4921 for ; Tue, 24 Apr 2018 19:27:35 -0400 (EDT) In-Reply-To: (Fis Trivial's message of "Tue, 24 Apr 2018 23:22:25 +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: guix-devel@gnu.org Fis Trivial writes: > Hi Guixs, this is actually a feature wish. > > I tried to use guix to manage many of my softwares on my system, but > some dependencies are missing which is blocking a full transition to > Guix based system and development environment. Most notably is GPU > computing support. > > My daily routine is doing machine learning, which requires GPU for > computing nowadays. Currently I need to use CUDA from NVidia, as many of > you might know, it's not free software, not even an open source > software. However, it's the de fato toolchain in deep learning > community, so basically it's a must have dependency for most of the > related libraries if you want decent performance. Time passes and > hardwork have been done, now we have some libraries ported to OpenCL or > HIP (from AMD), it's not mature yet but I think we have a pretty good > shot at working them out in near future. Since this is a GNU endorsed distro, guixSD will never have an official way to install or use CUDA. There might eventually be an unofficial way to install it someday via a guile potlock (or is it the guild command). But I wouldn't recommend using it. No one will seriously test it or ensure that it works well. > > 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. This is probably doable. > > 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 > > To support GPU computing, we need a full stack of softwares, from kernel > to user space libraries. When it comes to low level part I got have > litte to no knowledge, so I am hoping someone here can provide some > help/insight for having GPU computing libraries in Guix. > > Thanks.