From: Francois BERENGER <berenger@bioreg.kyushu-u.ac.jp>
To: caml-list@inria.fr
Subject: [Caml-list] new release of parany (1.0.2): a minimalistic OCaml library to parallelize any kind of computation
Date: Thu, 27 Jul 2017 10:07:09 +0900 [thread overview]
Message-ID: <3fa04233-6e26-fdd6-62f3-f09cbae1605d@bioreg.kyushu-u.ac.jp> (raw)
In-Reply-To: <978f88e8-6e9c-9f54-5988-0933a4cac833@bioreg.kyushu-u.ac.jp>
Dear caml riders,
There is a new version of parany available in opam: 1.0.2.
I use parany intensively these days and have not seen it crash, so it
might be ready for production use.
My results are equal in the case of a parallel or a sequential run.
Note to potential users: parany doen't try to preserve the order
of the elements it processes in parallel (to maximize performance).
The elements to process must be independent (same thing if you were
using parmap).
The code is here:
https://github.com/UnixJunkie/parany
Here are some parallelization performance results on a real use case:
---
#nprocs med_processing_frequency_5runs(Hz) theoric_max(Hz) efficacy(%)
1 20.1996 20.1996 1.00
2 39.7312 40.3992 0.98
3 52.5495 60.5988 0.87
4 75.1963 80.7984 0.93
5 87.5909 100.9980 0.87
6 107.1065 121.1976 0.88
7 118.8431 141.3972 0.84
8 137.8433 161.5967 0.85
9 148.3669 181.7963 0.82
10 164.9220 201.9959 0.82
11 176.0519 222.1955 0.79
12 192.4726 242.3951 0.79
13 198.2970 262.5947 0.76
14 213.8255 282.7943 0.76
15 224.0193 302.9939 0.74
16 232.4273 323.1935 0.72
---
In this case, with up to four cores, the parallelization performance
is excellent. Efficacy = 1.0 cannot be reached once nprocs > 1
due to Amdahl's law.
The granularity of the computation in my experiment was ~= 0.05s of
CPU time per element in my input file.
So, I guess you might get similar or even better parallelization
performance if your processing time per element is higher than this.
You can send me a quick email if parany is useful to you.
Happy number crunching,
F.
prev parent reply other threads:[~2017-07-27 1:07 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-07-03 14:04 [Caml-list] GCAI 2017 in Miami - Deadline extension Geoff Sutcliffe
2017-07-04 8:55 ` [Caml-list] parany: a minimalistic library to parallelize any kind of computation Francois BERENGER
2017-07-10 8:00 ` [Caml-list] [ANN] first release of cpm: the Classification Performance Metrics library Francois BERENGER
2017-07-27 1:07 ` Francois BERENGER [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3fa04233-6e26-fdd6-62f3-f09cbae1605d@bioreg.kyushu-u.ac.jp \
--to=berenger@bioreg.kyushu-u.ac.jp \
--cc=caml-list@inria.fr \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox