From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:60091) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fHaWr-00016w-HQ for guix-patches@gnu.org; Sat, 12 May 2018 15:50:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fHaWo-0001bE-FJ for guix-patches@gnu.org; Sat, 12 May 2018 15:50:05 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:51947) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fHaWo-0001b8-C6 for guix-patches@gnu.org; Sat, 12 May 2018 15:50:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1fHaWo-00006D-56 for guix-patches@gnu.org; Sat, 12 May 2018 15:50:02 -0400 Subject: [bug#31436] [PATCH 2/6] gnu: Add opencl-clhpp. References: In-Reply-To: Resent-Message-ID: From: Fis Trivial Date: Sat, 12 May 2018 19:49:36 +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" <31436@debbugs.gnu.org> * gnu/packages/opencl.scm (opencl-clhpp): 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 25f5cb5a1..996171713 100644 --- a/gnu/packages/opencl.scm +++ b/gnu/packages/opencl.scm @@ -18,9 +18,12 @@ =20 (define-module (gnu packages opencl) #:use-module (guix build-system gnu) + #:use-module (guix build-system cmake) + #:use-module (guix download) #:use-module (guix git-download) #:use-module (guix packages) - #:use-module ((guix licenses) #:prefix license:)) + #:use-module ((guix licenses) #:prefix license:) + #:use-module (gnu packages python)) =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 @@ -78,3 +81,37 @@ (make-opencl-headers "1" "0")) =20 (define-public opencl-headers opencl-headers-2.2) + +(define-public opencl-clhpp + (package + (name "opencl-clhpp") + (version "2.0.10") + (source (origin + (method url-fetch) + (uri (string-append + "https://github.com/KhronosGroup/OpenCL-CLHPP/archive/= v" + version ".tar.gz")) + (sha256 + (base32 + "0awg6yznbz3h285kmnd47fykx2qa34a07sr4x1657yn3jmi4a9zs")) + (file-name (string-append name "-" version ".tar.gz")))) + (native-inputs + `(("python" ,python-wrapper))) + (propagated-inputs + `(("opencl-headers" ,opencl-headers))) + (arguments + `(#:configure-flags + (let ((out (assoc-ref %outputs "out"))) + (list + "-DBUILD_EXAMPLES=3DOFF" + "-DBUILD_TESTS=3DOFF" + (string-append "-DCMAKE_INSTALL_PREFIX=3D" + (assoc-ref %outputs "out") + "/include"))) + ;; regression tests requires a lot more dependencies + #:tests? #f)) + (build-system cmake-build-system) + (home-page "http://github.khronos.org/OpenCL-CLHPP/") + (synopsis "Khronos OpenCL-CLHPP") + (description "OpenCL Host API C++ bindings cl2.hpp.") + (license license:expat))) --=20 2.14.3