English version
Accueil     À propos     Téléchargement     Ressources     Contactez-nous    

Ce site est rarement mis à jour. Pour les informations les plus récentes, rendez-vous sur le nouveau site OCaml à l'adresse ocaml.org.

Browse thread
[Caml-list] ocaml on supercomputer?
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2003-07-15 (15:24)
From: Xavier Leroy <xavier.leroy@i...>
Subject: Re: [Caml-list] ocaml on supercomputer?
> 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