[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] Port Arrayfire to GNU Guix

From: Ludovic Courtès
Subject: Re: [PATCH] Port Arrayfire to GNU Guix
Date: Mon, 04 Apr 2016 23:18:52 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux)


Dennis Mungai <address@hidden> skribis:

> The patch attached adds Arrayfire, a software library for GPU computing.
> For compliance with the GPL licenses, I've configured the package not
> to build with CUDA support, and the OpenCL backend builds with the
> open source OpenCL ICD and the standard Khronos OpenCL headers for
> vendor neutrality.

Sorry for the late reply, and thanks for your work!

> From c25732b9beb99a0788349c086f460d45f228dd74 Mon Sep 17 00:00:00 2001
> From: Dennis Mungai <address@hidden>
> Date: Sun, 20 Mar 2016 04:51:15 +0300
> Subject: [PATCH] Ported ArrayFire to GNU Guix
> ---
>  arrayfire.scm | 362 
> ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Could you:

  1. Send a patch against Guix ‘master’, where this file should be
     called gnu/packages/opencl.scm?  (I think ‘opencl’ is more
     appropriate than ‘arrayfire’.)

  2. Send one patch per package, to simply the review workflow?

  3. Run ‘guix lint’ for each package and address any problems it raises
     (hopefully simple to do, but feel free to ask for help on #guix).

  4. Provide ChangeLog-style commit logs, as noted at

That’s a bit of extra work, but it will really help us!

Some more specific comments:

> +(define-module (gn packages arrayfire)


> +(define-public arrayfire
> +(package
> +    (name "arrayfire")

Please try to indent as in the other files.

> +       ("cmake" ,cmake)))
> +    (build-system cmake-build-system)

CMake is not needed in ‘inputs’ when using ‘cmake-build-system’.

> +    (arguments 
> +     `(#:configure-flags '("-DBUILD_OPENCL=ON" "-DBUILD_CUDA=OFF" 
> +       #:tests? #f))     

Please add a comment above #:tests? #f to justify why tests are skipped.

> +    (synopsis "ArrayFire: a general purpose GPU library. 
> +    (description "ArrayFire is a high performance software library for 
> parallel computing with an easy-to-use API. Its array based function set 
> makes parallel programming simple.Now on Guix")

‘guix lint’ will suggest some changes here.  :-)

> +    (home-page "";)
> +    (license (list license:gpl2 
> +                   license:gpl2+ 
> +                   license:gpl3 
> +                   license:gpl3+))))

What does it mean?  Please add a comment above explaining what the
license list is about.

> +    (synopsis "glfw is an Open Source, multi-platform library for creating 
> windows with OpenGL contexts and receiving input and events.")
> +    (description "glfw is an Open Source, multi-platform library for 
> creating windows with OpenGL contexts and receiving input and events.")

s/Open Source//g

The GNU project focuses on free software, not “open source” (see
<>), and
since every package in Guix is free, we don’t mention it in synopses.

Also, please see
on the kind of synopses/descriptions we try to provide to our users.

> +(define-public clBLAS
> +  (package
> +    (name "clBLAS")

Variable and package names should be lower-case.

> +    (version "v2.10")

No “v”.

> +    (native-inputs `(("autoconf" ,autoconf)
> +        ("automake" ,automake)


> +(define-public opencl-headers
> +(let ((commit "c1770dc"))
> +  (package


Could you send updated patches, preferably using ‘git send-email’?

Thank you!


reply via email to

[Prev in Thread] Current Thread [Next in Thread]