From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:59670) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fHaTx-0000CA-9V for guix-patches@gnu.org; Sat, 12 May 2018 15:47:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fHaTu-00012s-7G for guix-patches@gnu.org; Sat, 12 May 2018 15:47:05 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:51936) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fHaTu-00012o-37 for guix-patches@gnu.org; Sat, 12 May 2018 15:47:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1fHaTt-0008St-Pp for guix-patches@gnu.org; Sat, 12 May 2018 15:47:01 -0400 Subject: [bug#31436] [PATCH 0/6] gnu: Add opencl related packages. Resent-Message-ID: Received: from eggs.gnu.org ([2001:4830:134:3::10]:59593) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fHaTF-00006E-DF for guix-patches@gnu.org; Sat, 12 May 2018 15:46:22 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fHaTB-0000vk-TO for guix-patches@gnu.org; Sat, 12 May 2018 15:46:21 -0400 Received: from mail-oln040092010051.outbound.protection.outlook.com ([40.92.10.51]:49376 helo=NAM04-CO1-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1fHaTB-0000vQ-JZ for guix-patches@gnu.org; Sat, 12 May 2018 15:46:17 -0400 From: Fis Trivial Date: Sat, 12 May 2018 19:46:15 +0000 Message-ID: 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: 31436@debbugs.gnu.org These patches add basic support for opencl. As noted in the new file opencl.scm, tests can't enabled by now. For the future, maybe we can patch the build system to make test targets installable so that people with right tools can help testing. Or maybe there are some other ways that we can modify the build environment for testing. But that's another day's problem. :) Although testing with packages' unit tests are not enabled. I tried to test them outside the store by simple hello world program, they works fine on my hardware. To make thing a little comfortable, I packaged clinfo, which is a little tool for displaying OpenCL platforms and device information by calling OpenCL host functions. If it works on your device, then at least you can confirm the corresponding implementation is not completely broken. Environment variable `OPENCL_VENDOR_PATH` is used to guide `ocl-icd` loading needed OpenCL implementation library. You need to source it in your profile before you try to use any of the implementation. I wrapped clinfo, notes are put in the package definition. fis (6): gnu: Add opencl-headers. gnu: Add opencl-clhpp. gnu: Add ocl-icd. gnu: Add beignet. gnu: Add clinfo. gnu: Add pocl. gnu/local.mk | 2 + gnu/packages/opencl.scm | 327 +++++++++++++++++++= ++++ gnu/packages/patches/beignet-correct-paths.patch | 41 +++ 3 files changed, 370 insertions(+) create mode 100644 gnu/packages/opencl.scm create mode 100644 gnu/packages/patches/beignet-correct-paths.patch --=20 2.14.3