caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Xavier Leroy <xavier.leroy@inria.fr>
To: Daniel Andor <Daniel.Andor@physics.org>
Cc: caml-list@inria.fr
Subject: Re: [Caml-list] ocaml on supercomputer?
Date: Tue, 15 Jul 2003 17:24:36 +0200	[thread overview]
Message-ID: <20030715172436.A7268@pauillac.inria.fr> (raw)
In-Reply-To: <200307151531.33043.da209@cam.ac.uk>; from da209@cam.ac.uk on Tue, Jul 15, 2003 at 03:31:31PM +0100

> 1) (Cross) compiling.  Which of mips r12000, power4 and usparcIII are best 
> supported so that my existing code runs well?

SPARC/Solaris and MIPS/IRIX are well supported, SPARC perhaps a bit better.
The POWER/AIX port of OCaml isn't really supported because I don't
have such a machine at hand.  (And also because AIX is a pain.)

> How do I cross-compile (if I need to), given that there are math
> libraries (BLAS, LAPACK) that I need to link to on the target
> platform?  To run ocamlopt on the target machine, at a minimum I
> need to cross-compile ocamlrun, right?

You do not need to cross-compile: just build the OCaml distribution on
the target machine, and compile your program on the target machine as well.

> 2) Threads vs. MPI.  Writing threaded code for an SMP node would be
> the simplest way for me to harness many CPUs at the same time.  But
> what's thread support like on different platforms (listed below)
> with OCaml?

OCaml threads do not exploit shared-memory multiprocessing --
basically, all threads interleave their execution, hence multiple
processors are not exploited.  Your best bet is MPI or PVM.  Both have
bindings for OCaml.

Hope this helps,

- Xavier Leroy

-------------------
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners


  reply	other threads:[~2003-07-15 15:24 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-07-15 14:31 Daniel Andor
2003-07-15 15:24 ` Xavier Leroy [this message]
2003-07-15 16:02   ` Hal Daume III
2003-07-16  0:23     ` Yaron M. Minsky

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=20030715172436.A7268@pauillac.inria.fr \
    --to=xavier.leroy@inria.fr \
    --cc=Daniel.Andor@physics.org \
    --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;
as well as URLs for NNTP newsgroup(s).