From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:60908) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fHaZm-0002Nv-Q7 for guix-patches@gnu.org; Sat, 12 May 2018 15:53:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fHaZi-0002rq-N6 for guix-patches@gnu.org; Sat, 12 May 2018 15:53:06 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:51968) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fHaZi-0002rm-Iq for guix-patches@gnu.org; Sat, 12 May 2018 15:53:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1fHaZi-0000Bm-Bk for guix-patches@gnu.org; Sat, 12 May 2018 15:53:02 -0400 Subject: [bug#31436] [PATCH 6/6] gnu: Add pocl. References: In-Reply-To: Resent-Message-ID: From: Fis Trivial Date: Sat, 12 May 2018 19:52:14 +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 (pocl): 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 5346d23ac..fe90a639b 100644 --- a/gnu/packages/opencl.scm +++ b/gnu/packages/opencl.scm @@ -24,12 +24,14 @@ #:use-module (guix packages) #:use-module ((guix licenses) #:prefix license:) #:use-module (gnu packages) + #:use-module (gnu packages autotools) #:use-module (gnu packages bison) #:use-module (gnu packages compression) #:use-module (gnu packages gnupg) #:use-module (gnu packages gl) #:use-module (gnu packages libedit) #:use-module (gnu packages llvm) + #:use-module (gnu packages mpi) #:use-module (gnu packages ncurses) #:use-module (gnu packages pkg-config) #:use-module (gnu packages python) @@ -282,3 +284,44 @@ the system.") (description "Intel's OpenCL framework that works with Intel IvyBridge= GPUs and above.") (license license:lgpl2.1))) + +(define-public pocl + (package + (name "pocl") + (version "1.1") + (source (origin + (method url-fetch) + (uri (string-append + "https://github.com/pocl/pocl/archive/v" + version ".tar.gz")) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "0lrw3hlb0w53xzmrf2hvbda406l70ar4gyadflvlkj4879lx138y")))) + (build-system cmake-build-system) + (native-inputs + `(("pkg-config" ,pkg-config) + ("libltdl" ,libltdl))) + (inputs + `(("llvm" ,llvm) + ("hwloc" ,hwloc "lib") + ("clang" ,clang) + ("ocl-icd" ,ocl-icd))) + (arguments + `(#:configure-flags + '("-DENABLE_ICD=3DON" + "-DENABLE_TESTSUITES=3DOFF" + "-DENABLE_CONFORMANCE=3DOFF") + #:phases + (modify-phases %standard-phases + (add-after 'install 'remove-headers + (lambda* (#:key outputs #:allow-other-keys) + (let ((out (assoc-ref outputs "out"))) + (delete-file-recursively + (string-append out "/include")))))) + #:tests? #f)) ; failed + (home-page "http://portablecl.org/") + (synopsis "Portable Computing Language (pocl)") + (description "pocl is being developed towards an efficient implementat= ion +of OpenCL standard which can be easily adapted for new targets.") + (license license:expat))) --=20 2.14.3