caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Rod <rodiney@gmail.com>
To: caml-list@yquem.inria.fr
Subject: Re: [Caml-list] OCamlMPI problem
Date: Sun, 7 Oct 2007 18:33:07 -0300	[thread overview]
Message-ID: <164378d10710071433x4d666f46uf629cc6a58e86a6d@mail.gmail.com> (raw)
In-Reply-To: <AE44733D-5A0C-4176-B165-5EF7CDB9C0E7@gmail.com>

[-- Attachment #1: Type: text/plain, Size: 2016 bytes --]

Hi again folks!!
I'm really happy to announce you, guys, that, eventually, I got OcamlMPI
working good on my cluster. What I mean is: the problem about compiling and
executing the examples files provided by the latest release of OcamlMPI (i.e:
testmpi 'n test_mandel) is now definitely solved. Thus, once more, I would
like to thank Andres Varon and Rabih Chaar for helping me handling that
issue. You guys rock! :D
Well... let me to explain how I get OcamlMPI working nice with MPICH2. Then,
maybe, this could be useful for someone else. Here we go:

By watching the Makefile of OcamlMPI, I could understand that it is always
making reference to libmpi.a library (-lmpi). However, MPICH2 doesn't have
any libmpi.a. So, what to do then??
Well.. there isn't any libmpi.a but there is a lib called libmpich.a
Therefore, all I did was replace the '-lmpi' options found in such Makefile
with '-lmpich'. What this means it that the Makefile will now look for a lib
called libmpich.a (and no more libmpi.a) which exists in the MPICH2
implementation of MPI.
That is it!! After doing this and following some further instructions as we
can read in the README file (e.g.: ./configure, make, make install, etc)
found in the OcamlMPI install directory, everything worked good.

As mentioned earlier by our friend Andres Varon, the line "ocamlc -cc mpicc
-o testmpi unix.cma mpi.cma test.ml -ccopt -L." was enough to Ocaml for
proper compilation and linking.

OK. If MPICH2 is proper installed and configured on your cluster system,
there will be no problems for running the examples files (as well as others
executables).

So, OcamlMPI problem is now solved. Thanks y'all guys for everything you
did.
Best regards,


                      Rodiney E.

On 9/18/07, Andres Varon <avaron@gmail.com> wrote:
>
> I'm sure that the line I suggested will work just fine. Just give it a
> try.
> Andres
> On Sep 18, 2007, at 3:23 PM, Rod wrote:
>
> ocamlc -cc mpicc -o testmpi unix.cma mpi.cma test.ml -ccopt -L `locate
> libmpi.a`
>
>
>

[-- Attachment #2: Type: text/html, Size: 3210 bytes --]

  parent reply	other threads:[~2007-10-08  7:32 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-09-17 21:08 Rod
2007-09-17 21:45 ` [Caml-list] " skaller
2007-09-18 13:51 ` Andres Varon
2007-09-18 19:23   ` Rod
     [not found]     ` <AE44733D-5A0C-4176-B165-5EF7CDB9C0E7@gmail.com>
2007-10-07 21:33       ` Rod [this message]
2007-09-25 18:35   ` Jhou ^^

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=164378d10710071433x4d666f46uf629cc6a58e86a6d@mail.gmail.com \
    --to=rodiney@gmail.com \
    --cc=caml-list@yquem.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).