all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* [PATCH] Add Vc
@ 2016-10-01 22:24 Leo Famulari
  2016-10-01 22:30 ` Leo Famulari
  2016-10-03  8:45 ` Ricardo Wurmus
  0 siblings, 2 replies; 5+ messages in thread
From: Leo Famulari @ 2016-10-01 22:24 UTC (permalink / raw)
  To: guix-devel


[-- Attachment #1.1: Type: text/plain, Size: 27 bytes --]

This is a depend of Krita.

[-- Attachment #1.2: 0001-gnu-Add-Vc.patch --]
[-- Type: text/plain, Size: 2224 bytes --]

From 808b47b3b7a9d769f3a6a873d19a0051f64720f7 Mon Sep 17 00:00:00 2001
From: Leo Famulari <leo@famulari.name>
Date: Fri, 30 Sep 2016 13:38:20 -0400
Subject: [PATCH] gnu: Add Vc.

* gnu/packages/maths.scm (vc): New variable.
---
 gnu/packages/maths.scm | 34 ++++++++++++++++++++++++++++++++++
 1 file changed, 34 insertions(+)

diff --git a/gnu/packages/maths.scm b/gnu/packages/maths.scm
index 0401cd3..c033123 100644
--- a/gnu/packages/maths.scm
+++ b/gnu/packages/maths.scm
@@ -2629,3 +2629,37 @@ the same amount of space as the original point representation.  This is useful
 when using the Gilbert curve as a space filling curve through a
 high-dimensional space where not all demensions have the same cardinality.")
     (license license:lgpl2.1+)))
+
+(define-public vc
+  (package
+    (name "vc")
+    (version "1.2.0")
+    (source
+      (origin (method url-fetch)
+              (uri (string-append "https://github.com/VcDevel/Vc/releases/"
+                                  "download/" version "/Vc-" version ".tar.gz"))
+              (sha256
+               (base32
+                "1rh6dhqar3y07n4xqyml0sa0v48qv3ch9dc3yc2in855hlh4vnqi"))))
+    (build-system cmake-build-system)
+    (arguments
+     '(#:configure-flags
+       '("-DBUILD_TESTING=ON"))) ; Is this the test suite we want?
+    (synopsis "SIMD Vector Classes for C++ ")
+    (description "Vc provides portable, zero-overhead C++ types for explicitly
+data-parallel programming.  It is a library designed to ease explicit
+vectorization of C++ code.  Its types enable explicitly stating data-parallel
+operations on multiple values. The parallelism is therefore added via the type
+system.  Vc has an intuitive API and provides portability between different
+compilers and compiler versions as well as portability between different vector
+instruction sets. Thus, an application written with Vc can be compiled for:
+@enumerate
+@item AVX and AVX2
+@item SSE2 upto SSE4.2 or SSE4a
+@item Scalar
+@item MIC
+@item NEON (in development)
+@item NVIDIA GPUs / CUDA (in development)
+@end enumerate\n")
+    (home-page "https://github.com/VcDevel")
+    (license license:bsd-3)))
-- 
2.10.0


[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 819 bytes --]

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: [PATCH] Add Vc
  2016-10-01 22:24 [PATCH] Add Vc Leo Famulari
@ 2016-10-01 22:30 ` Leo Famulari
  2016-10-03  8:45 ` Ricardo Wurmus
  1 sibling, 0 replies; 5+ messages in thread
From: Leo Famulari @ 2016-10-01 22:30 UTC (permalink / raw)
  To: guix-devel

[-- Attachment #1: Type: text/plain, Size: 581 bytes --]

On Sat, Oct 01, 2016 at 06:24:12PM -0400, Leo Famulari wrote:
> This is a depend of Krita.

... dependency

> From 808b47b3b7a9d769f3a6a873d19a0051f64720f7 Mon Sep 17 00:00:00 2001
> From: Leo Famulari <leo@famulari.name>
> Date: Fri, 30 Sep 2016 13:38:20 -0400
> Subject: [PATCH] gnu: Add Vc.
> 
> * gnu/packages/maths.scm (vc): New variable.

> +    (arguments
> +     '(#:configure-flags
> +       '("-DBUILD_TESTING=ON"))) ; Is this the test suite we want?

I didn't mean to leave this comment in the patch. I do think this is the
right way to run the tests.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 819 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] Add Vc
  2016-10-01 22:24 [PATCH] Add Vc Leo Famulari
  2016-10-01 22:30 ` Leo Famulari
@ 2016-10-03  8:45 ` Ricardo Wurmus
  2016-10-05 20:26   ` Leo Famulari
  1 sibling, 1 reply; 5+ messages in thread
From: Ricardo Wurmus @ 2016-10-03  8:45 UTC (permalink / raw)
  To: Leo Famulari; +Cc: guix-devel


Leo Famulari <leo@famulari.name> writes:

> This is a depend of Krita.

> From 808b47b3b7a9d769f3a6a873d19a0051f64720f7 Mon Sep 17 00:00:00 2001
> From: Leo Famulari <leo@famulari.name>
> Date: Fri, 30 Sep 2016 13:38:20 -0400
> Subject: [PATCH] gnu: Add Vc.

> * gnu/packages/maths.scm (vc): New variable.
> ---
>  gnu/packages/maths.scm | 34 ++++++++++++++++++++++++++++++++++
>  1 file changed, 34 insertions(+)

> diff --git a/gnu/packages/maths.scm b/gnu/packages/maths.scm
> index 0401cd3..c033123 100644
> --- a/gnu/packages/maths.scm
> +++ b/gnu/packages/maths.scm
> @@ -2629,3 +2629,37 @@ the same amount of space as the original point representation.  This is useful
>  when using the Gilbert curve as a space filling curve through a
>  high-dimensional space where not all demensions have the same cardinality.")
>      (license license:lgpl2.1+)))
> +
> +(define-public vc
> +  (package
> +    (name "vc")
> +    (version "1.2.0")
> +    (source
> +      (origin (method url-fetch)
> +              (uri (string-append "https://github.com/VcDevel/Vc/releases/"
> +                                  "download/" version "/Vc-" version ".tar.gz"))
> +              (sha256
> +               (base32
> +                "1rh6dhqar3y07n4xqyml0sa0v48qv3ch9dc3yc2in855hlh4vnqi"))))
> +    (build-system cmake-build-system)
> +    (arguments
> +     '(#:configure-flags
> +       '("-DBUILD_TESTING=ON"))) ; Is this the test suite we want?
> +    (synopsis "SIMD Vector Classes for C++ ")

There’s a trailing space here.  Also, “Vector Classes” probably should
be lowercase.

> +    (description "Vc provides portable, zero-overhead C++ types for explicitly
> +data-parallel programming.  It is a library designed to ease explicit
> +vectorization of C++ code.  Its types enable explicitly stating data-parallel
> +operations on multiple values. The parallelism is therefore added via the type
> +system.  Vc has an intuitive API and provides portability between different
> +compilers and compiler versions as well as portability between different vector
> +instruction sets. Thus, an application written with Vc can be
> compiled for:

Before “Thus” you need an additional space.

> +@enumerate
> +@item AVX and AVX2
> +@item SSE2 upto SSE4.2 or SSE4a
> +@item Scalar
> +@item MIC
> +@item NEON (in development)
> +@item NVIDIA GPUs / CUDA (in development)
> +@end enumerate\n")
> +    (home-page "https://github.com/VcDevel")

Shouldn’t this be https://github.com/VcDevel/Vc ?

> +    (license license:bsd-3)))

The rest looks good to me!  Thanks!

~~ Ricardo

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] Add Vc
  2016-10-03  8:45 ` Ricardo Wurmus
@ 2016-10-05 20:26   ` Leo Famulari
  2016-10-07  7:24     ` Ricardo Wurmus
  0 siblings, 1 reply; 5+ messages in thread
From: Leo Famulari @ 2016-10-05 20:26 UTC (permalink / raw)
  To: Ricardo Wurmus; +Cc: guix-devel

On Mon, Oct 03, 2016 at 10:45:15AM +0200, Ricardo Wurmus wrote:
> The rest looks good to me!  Thanks!

Thanks for the review. Pushed with your suggestions :)

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] Add Vc
  2016-10-05 20:26   ` Leo Famulari
@ 2016-10-07  7:24     ` Ricardo Wurmus
  0 siblings, 0 replies; 5+ messages in thread
From: Ricardo Wurmus @ 2016-10-07  7:24 UTC (permalink / raw)
  To: Leo Famulari; +Cc: guix-devel


Hi Leo,

> On Mon, Oct 03, 2016 at 10:45:15AM +0200, Ricardo Wurmus wrote:
>> The rest looks good to me!  Thanks!
>
> Thanks for the review. Pushed with your suggestions :)

Vc fails its tests on armhf, i686, and x86_64.  Could you please take a
look at this?

~~ Ricardo

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2016-10-07  7:24 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-10-01 22:24 [PATCH] Add Vc Leo Famulari
2016-10-01 22:30 ` Leo Famulari
2016-10-03  8:45 ` Ricardo Wurmus
2016-10-05 20:26   ` Leo Famulari
2016-10-07  7:24     ` Ricardo Wurmus

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.