From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:42254) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fXtos-0005Sb-Sk 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 1fXtoo-0001Bh-Gj for guix-patches@gnu.org; Tue, 26 Jun 2018 15:40:06 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:56880) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fXtoo-0001B9-CQ for guix-patches@gnu.org; Tue, 26 Jun 2018 15:40:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1fXtoo-00018i-5z for guix-patches@gnu.org; Tue, 26 Jun 2018 15:40:02 -0400 Subject: [bug#31436] [PATCH 2/3] gnu: Add clinfo. Resent-Message-ID: From: Fis Trivial Date: Tue, 26 Jun 2018 19:39:42 +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 (clinfo): New variable. --- gnu/packages/opencl.scm | 43 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) diff --git a/gnu/packages/opencl.scm b/gnu/packages/opencl.scm index b9cca3406..0c2f7d147 100644 --- a/gnu/packages/opencl.scm +++ b/gnu/packages/opencl.scm @@ -155,3 +155,46 @@ Driver)") 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)))) + +(define-public clinfo + (package + (name "clinfo") + (version "2.2.18.04.06") + (source (origin + (method url-fetch) + (uri (string-append + "https://github.com/Oblomov/clinfo/archive/" + version ".tar.gz")) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "0v7cy01irwdgns6lzaprkmm0502pp5a24zhhffydxz1sgfjj2w7p")))) + (build-system gnu-build-system) + (native-inputs + `(("opencl-headers" ,opencl-headers))) + (inputs + `(("ocl-icd" ,ocl-icd))) + (arguments + `(#:phases + (modify-phases %standard-phases + (delete 'configure) + (replace 'build + (lambda _ + (let ((cores (number->string (parallel-job-count)))) + (setenv "CC" "gcc") + (invoke "make" "-j" cores)))) + (delete 'install) + (add-after 'build 'make-install + (lambda* (#:key outputs #:allow-other-keys) + (invoke "make" "install" (string-append + "PREFIX=3D" + (assoc-ref outputs "out")))))) + #:tests? #f)) + (home-page "https://github.com/Oblomov/clinfo") + (synopsis "Print all known information about all available OpenCL plat= forms +and devices in the system") + ;; Only the implementation installed via guix will be detected. + (description "This package is a simple command-line application that +enumerates all possible (known) properties of the OpenCL platform and devi= ces +available on the Guix.") + (license license:non-copyleft))) -- 2.14.4