From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:33189) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1faNJg-0008L1-TQ for guix-patches@gnu.org; Tue, 03 Jul 2018 11:34:11 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1faNJa-0001Qf-SO for guix-patches@gnu.org; Tue, 03 Jul 2018 11:34:08 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:37708) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1faNJa-0001QY-PO for guix-patches@gnu.org; Tue, 03 Jul 2018 11:34:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1faNJa-00020h-HG for guix-patches@gnu.org; Tue, 03 Jul 2018 11:34:02 -0400 Subject: bug#32001: [PATCH] gnu: Add pocl. Resent-To: guix-patches@gnu.org Resent-Message-ID: From: ludo@gnu.org (Ludovic =?UTF-8?Q?Court=C3=A8s?=) References: <87va9xejka.fsf@gnu.org> Date: Tue, 03 Jul 2018 17:33:05 +0200 In-Reply-To: (Gaaming Jyun's message of "Mon, 2 Jul 2018 16:27:43 +0000") Message-ID: <87efgkibbi.fsf@gnu.org> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" 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: Gaaming Jyun Cc: "32001@debbugs.gnu.org" <32001-done@debbugs.gnu.org> --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Gaaming Jyun skribis: > Yes, it fixes the linker issue, on pthread backend. Seems so trivial > ... I still don't know why I would have to read the source code of > ld-wrapper, part of llvm and pocl to come up with this .. :( > > Anyway, all unit tests passed. And I have boost-compute at my own repo > which uses pocl as native-input for testing in store, runs very well. Perfect. Applied with the changes below. Thanks! Ludo=E2=80=99. --=-=-= Content-Type: text/x-patch Content-Disposition: inline diff --git a/gnu/packages/opencl.scm b/gnu/packages/opencl.scm index 14eed5248..42cedd154 100644 --- a/gnu/packages/opencl.scm +++ b/gnu/packages/opencl.scm @@ -327,13 +327,22 @@ back-end for the LLVM compiler framework.") (lambda* (#:key outputs #:allow-other-keys) (let ((out (assoc-ref outputs "out"))) (delete-file-recursively - (string-append out "/include"))))) + (string-append out "/include")) + #t))) (add-before 'check 'set-HOME (lambda _ (setenv "HOME" "/tmp") #t))))) (home-page "http://portablecl.org/") - (synopsis "Portable Computing Language (pocl), is an OpenCL implementation") - (description "Pocl is being developed towards an efficient implementation -of OpenCL standard which can be easily adapted for new targets.") + (synopsis "Portable Computing Language (pocl), an OpenCL implementation") + (description + "Pocl is a portable implementation of the OpenCL standard (1.2 with some +2.0 features supported). This project seeks to improve performance +portability of OpenCL programs with the kernel compiler and the task run-time, +reducing the need for target-dependent manual optimizations. + +pocl uses Clang as an OpenCL C frontend and LLVM for kernel compiler +implementation, and as a portability layer. Thus, if your desired target has +an LLVM backend, it should be able to get OpenCL support easily by using +pocl.") (license license:expat))) --=-=-=--