From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:42255) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fXtos-0005Sc-T2 for guix-patches@gnu.org; Tue, 26 Jun 2018 15:40:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fXton-0001AR-Vf for guix-patches@gnu.org; Tue, 26 Jun 2018 15:40:06 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:56879) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fXton-0001A9-SK for guix-patches@gnu.org; Tue, 26 Jun 2018 15:40:01 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1fXton-00018b-LV for guix-patches@gnu.org; Tue, 26 Jun 2018 15:40:01 -0400 Subject: [bug#31436] [PATCH 1/3] gnu: Add ocl-icd. Resent-Message-ID: From: Fis Trivial Date: Tue, 26 Jun 2018 19:39:04 +0000 Message-ID: References: <87o9fyr502.fsf@gnu.org> <87in654q79.fsf@gnu.org> In-Reply-To: <87in654q79.fsf@gnu.org> Content-Language: en-US Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: Ludovic =?UTF-8?Q?Court=C3=A8s?= Cc: "31436@debbugs.gnu.org" <31436@debbugs.gnu.org> * gnu/packages/opencl.scm (ocl-icd): New variable. --- gnu/packages/opencl.scm | 39 ++++++++++++++++++++++++++++++++++++++- 1 file changed, 38 insertions(+), 1 deletion(-) diff --git a/gnu/packages/opencl.scm b/gnu/packages/opencl.scm index b31fa0947..b9cca3406 100644 --- a/gnu/packages/opencl.scm +++ b/gnu/packages/opencl.scm @@ -23,7 +23,9 @@ #:use-module (guix git-download) #:use-module (guix packages) #:use-module ((guix licenses) #:prefix license:) - #:use-module (gnu packages python)) + #:use-module (gnu packages gnupg) + #:use-module (gnu packages python) + #:use-module (gnu packages ruby)) =20 ;; This file adds OpenCL implementation related packages. Due to the fact = that ;; OpenCL devices are not available during build (store environment), test= s are @@ -118,3 +120,38 @@ programming.") (description "This package provides the @dfn{host API} C++ headers for OpenCL.") (license license:expat))) + +(define-public ocl-icd + (package + (name "ocl-icd") + (version "2.2.12") + (source (origin + (method url-fetch) + (uri (string-append + "https://forge.imag.fr/frs/download.php/836/ocl-icd-" + version ".tar.gz")) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "1x2dr8p4dkfds56r38av360i3nv1y3326jmshxvjngaf6mlg6rbn")))) + (native-inputs + `(("opencl-headers" ,opencl-headers) + ("ruby" ,ruby))) + (inputs + `(("libgcrypt" ,libgcrypt))) + (build-system gnu-build-system) + (arguments + '(#:configure-flags + '("DEBUG_OCL_ICD=3D1"))) + (native-search-paths + (list (search-path-specification + (variable "OPENCL_VENDOR_PATH") + (files '("etc/OpenCL/vendors"))))) + (search-paths native-search-paths) + (home-page "https://forge.imag.fr/projects/ocl-icd/") + (synopsis "OpenCL implementations are provided as ICD (Installable Cli= ent +Driver)") + (description "OpenCL implementations are provided as ICD (Installable = Client +Driver). An OpenCL program can use several ICD thanks to the use of an IC= D +Loader as provided by this project. This free ICD Loader can load any ICD= .") + (license (list license:gpl2 license:ruby)))) --=20 2.14.4