From: Thomas Fischbacher <tf@functionality.de>
To: Olivier Andrieu <oandrieu@nerim.net>
Cc: Caml-list List <caml-list@inria.fr>
Subject: Re: [Caml-list] CamlMPI: sending marshalled objects
Date: Wed, 23 Jan 2008 11:52:51 +0000 [thread overview]
Message-ID: <47972A93.7040202@functionality.de> (raw)
In-Reply-To: <95513600801230215k4798b826tfe6c0a38620ca73d@mail.gmail.com>
Olivier,
>>there is an old Caml/MPI interface, written by Xavier himself in 1998.
>
> I've been using this interface some time ago (in 2006). I rewrote it a
> bit to bring it up-to-date with the current conventions.
Good to know. (I'd like to incorporate this into our own code then.)
>>As far as I can see, output_value_to_malloc() actually should be able to
>>serialize virtually any ML object (which does not contain alloc_custom()
>>blocks and similar stuff) to a buffer.
>
> some custom blocks such as Bigarrays can be serialised too.
Of course.
>>So, (1) what is going on here, and (2) how can I repair it?
>>Is there a quick fix?
>
> I'm not sure what is going on, I was able to transmit large marshalled
> values IIRC.
What I observe (using some extra debugging code) is that doing a small
problem where this particular send buffer is ~10MB works as expected,
while I reproducibly get a crash in the receiver if I send a ML value
which serializes to a 20 MB buffer. Sending suggests to be okay, though.
> One serious problem in the current code is the treatment of errors.
> Ocamlmpi registers an error handler that raises an OCaml exception.
> However, should an error occur during MPI_Send, the handler is invoked
> with the global mutex released since MPI_Send is between
> enter/leave_blocking_section. Maybe that's what causing the crash.
I do not think this is what gives me trouble. As I said, small problems
work, but large ones (which do the same stuff, only contain a larger
amount of data) do not.
--
best regards,
Thomas Fischbacher
t.fischbacher@soton.ac.uk
next prev parent reply other threads:[~2008-01-23 11:43 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-01-22 18:52 Thomas Fischbacher
2008-01-23 10:15 ` [Caml-list] " Olivier Andrieu
2008-01-23 11:52 ` Thomas Fischbacher [this message]
2008-01-23 11:48 ` Jon Harrop
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=47972A93.7040202@functionality.de \
--to=tf@functionality.de \
--cc=caml-list@inria.fr \
--cc=oandrieu@nerim.net \
/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