Mailing list for all users of the OCaml language and system.
 help / color / mirror / Atom feed
From: Xavier Leroy <Xavier.Leroy@inria.fr>
To: Norman Davis <ndavis@ti.com>, caml-list@inria.fr
Subject: Re: Thinking about ICFP'98 programming contest...
Date: Sun, 26 Jul 1998 18:19:00 +0200	[thread overview]
Message-ID: <19980726181900.08467@pauillac.inria.fr> (raw)
In-Reply-To: <BMSMTP9009611062a0384552@dpcmail.itg.ti.com>; from Norman Davis on Mon, Jul 20, 1998 at 12:22:10PM -0700

> I've been thinking about the ICFP'98 programming contest which will be judged
> on a "four-processor 150MHz Pentium-Pro box with 128 mbytes of memory running
> Linux SMP". I'm wondering if anyone can tell me:
> 
> 1) Do I need to do anything in particular or organize my program in
> a certain way for me to take advantage of the multiple processors?
> Do I need to seperate my program into multiple threads or processes?
> Are there any special calls I must invoke or libraries I must
> utilize.

The threads library in OCaml cannot exploit more than one processor
(due to GC and runtime system issues).  So, you need to split your
program in several processes communicating via e.g. pipes or sockets.
There are several functionalities that makes this realtively easy: one
is output_value/input_value, which let you transfer almost any data
structure between two Caml processes in one call.  You might also look
at the Caml-MPI and Caml-PVM interfaces that have been announced on
this mailing list a while back.  These will provide a higher-level
communication layer than pipes and sockets.

> 2) Beyond that, what do I need to do to take advantage of parallelism. 

I don't know what to answer except the obvious "parallelize your program"...

Good luck for the contest,

- Xavier Leroy





      reply	other threads:[~1998-07-27 17:52 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-07-20 19:22 Norman Davis
1998-07-26 16:19 ` Xavier Leroy [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=19980726181900.08467@pauillac.inria.fr \
    --to=xavier.leroy@inria.fr \
    --cc=caml-list@inria.fr \
    --cc=ndavis@ti.com \
    /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