Send Beginners mailing list submissions to
        beginners@haskell.org

To subscribe or unsubscribe via the World Wide Web, visit
        http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners
or, via email, send a message with subject or body 'help' to
        beginners-requ...@haskell.org

You can reach the person managing the list at
        beginners-ow...@haskell.org

When replying, please edit your Subject line so it is more specific
than "Re: Contents of Beginners digest..."


Today's Topics:

   1. Re:  Parallel Processing in Libraries? (Leonhard Applis)
   2. Re:  Parallel Processing in Libraries? (David McBride)


----------------------------------------------------------------------

Message: 1
Date: Mon, 20 Jan 2020 13:23:40 +0000
From: Leonhard Applis <leonhard.app...@protonmail.com>
To: "beginners@haskell.org" <beginners@haskell.org>
Subject: Re: [Haskell-beginners] Parallel Processing in Libraries?
Message-ID:
        
<gnZE9285TmZccNFQV0a3VqnLDqjddgfqcxmTp9dCeIxag4_JXhrIs_iGjLQiWGwOMNOjxBYoBOahF8CarvwxhbgjFJ_yaWyjH6d52ncJQ1I=@protonmail.com>
        
Content-Type: text/plain; charset="utf-8"

Thank you Akhra,
Thank you Sebastian, 


I appreciate your help and feedback. 

However my Question was maybe not clear enough. 


So in general my task is perfectly fit for Control.Parallel and 

if I'd make a program including the Code I want I could just put 
control.parallel in the right places and run the program threaded. 

Lets call this Application A. 

However for separation I'd like to have my primary code, the one which should 
be run parallel in a separate library, call it Library A. 

Library A should be utilizing Control.Parallel.
I then want to have Application B using Library A with multiple Cores.

The code of Library A has still all the control.parallel in place which worked 
perfectly fine when run running Application A threaded. 

When I run Application B only one core seems to be utilized. 

I also don't see any kind of parallel Code in popular frameworks such as 
QuickCheck2 (which seems very fit for parallel approaches) 

which makes me wonder if what I want is "not possible" the way I want it. 


I'd like to get Application B (and potential more Application C,D) to utilize 
library A properly.
 

I am at the moment not looking for mitigations or parallel-enabling 
frameworks/libraries. 


thank you in advance and best regards
Leonhard

-------------- next part --------------
A non-text attachment was scrubbed...
Name: publickey - leonhard.app...@protonmail.com - 0x807FDDF3.asc
Type: application/pgp-keys
Size: 1843 bytes
Desc: not available
URL: 
<http://mail.haskell.org/pipermail/beginners/attachments/20200120/cac4f22c/attachment-0001.key>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 477 bytes
Desc: OpenPGP digital signature
URL: 
<http://mail.haskell.org/pipermail/beginners/attachments/20200120/cac4f22c/attachment-0001.sig>

------------------------------

Message: 2
Date: Mon, 20 Jan 2020 10:58:40 -0500
From: David McBride <toa...@gmail.com>
To: Leonhard Applis <leonhard.app...@protonmail.com>,  The
        Haskell-Beginners Mailing List - Discussion of primarily
        beginner-level topics related to Haskell <beginners@haskell.org>
Subject: Re: [Haskell-beginners] Parallel Processing in Libraries?
Message-ID:
        <can+tr41zcguncwwfdt2ocx6f+wj0jnqlnsbs8spn7rrsyyo...@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"

It is not clear to me exactly what you are doing, but I believe in order to
use Control.Parallel, you must pass "-threaded" and then some rts options
at run time in order to declare options like the number of cores, etc.  It
is possible that you are running it in two different ways, threaded while
developing the library and non threaded while developing your application.

I would say that if you can eliminate that from consideration you might get
more thorough answers from the haskell-cafe mailing list, as the topic of
parallelism is a bit above the beginners list.

On Mon, Jan 20, 2020 at 8:24 AM Leonhard Applis <
leonhard.app...@protonmail.com> wrote:

> Thank you Akhra,
> Thank you Sebastian,
>
>
> I appreciate your help and feedback.
>
> However my Question was maybe not clear enough.
>
>
> So in general my task is perfectly fit for Control.Parallel and
>
> if I'd make a program including the Code I want I could just put
> control.parallel in the right places and run the program threaded.
>
> Lets call this Application A.
>
> However for separation I'd like to have my primary code, the one which
> should be run parallel in a separate library, call it Library A.
>
> Library A should be utilizing Control.Parallel.
> I then want to have Application B using Library A with multiple Cores.
>
> The code of Library A has still all the control.parallel in place which
> worked perfectly fine when run running Application A threaded.
>
> When I run Application B only one core seems to be utilized.
>
> I also don't see any kind of parallel Code in popular frameworks such as
> QuickCheck2 (which seems very fit for parallel approaches)
>
> which makes me wonder if what I want is "not possible" the way I want it.
>
>
> I'd like to get Application B (and potential more Application C,D) to
> utilize library A properly.
>
>
> I am at the moment not looking for mitigations or parallel-enabling
> frameworks/libraries.
>
>
> thank you in advance and best regards
> Leonhard
>
> _______________________________________________
> Beginners mailing list
> Beginners@haskell.org
> http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
<http://mail.haskell.org/pipermail/beginners/attachments/20200120/40b48545/attachment-0001.html>

------------------------------

Subject: Digest Footer

_______________________________________________
Beginners mailing list
Beginners@haskell.org
http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners


------------------------------

End of Beginners Digest, Vol 139, Issue 8
*****************************************

Reply via email to