From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on yquem.inria.fr X-Spam-Level: * X-Spam-Status: No, score=1.2 required=5.0 tests=AWL,HTML_MESSAGE,SPF_NEUTRAL autolearn=disabled version=3.1.3 X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from mail4-relais-sop.national.inria.fr (mail4-relais-sop.national.inria.fr [192.134.164.105]) by yquem.inria.fr (Postfix) with ESMTP id 80FF4BCB1 for ; Mon, 8 Oct 2007 09:32:42 +0200 (CEST) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AgAAAPLsCEfRVYa5nmdsb2JhbACCPDWLSAEBAQEHBAYRGA X-IronPort-AV: E=Sophos;i="4.21,240,1188770400"; d="scan'208";a="17451233" Received: from mu-out-0910.google.com ([209.85.134.185]) by mail4-smtp-sop.national.inria.fr with ESMTP; 07 Oct 2007 23:33:08 +0200 Received: by mu-out-0910.google.com with SMTP id w8so1509636mue for ; Sun, 07 Oct 2007 14:33:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; bh=BLl5newW3dLJKYnejbuLmarXFSmCEr6dD/7OAYiOiRY=; b=dFxqAgNHWHpmUmEE4Ws0vZNRcUJRKVUOGduHNS/YltOEomrfsue/0QguBGrtDiByIe+nfr7LovRfh4/3OXwHAAWpCobwoG9LsekfzLBIk/Aih7J/pQiNZDxMO6VBLZF3X91VJi0XztsBDaX+AGusraF6ss2IlBVvHRtPvqZxIb8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=JalOkfu5DAKfY+Xq5MeSnEur8wRRQzFxARonJ9gMpdT5wAdUYblOyJXNTzTKxEigeSUQo94DkNEpgiZW1cvfkiwfpYedUaL5fDBD0IcqW1AW1drVyDGiOQanAR0CPtmRJnXl/vZSUPG81TAaPqa/iy2pHEhagj4AIUdqsTMgwVw= Received: by 10.82.107.15 with SMTP id f15mr7992190buc.1191792787108; Sun, 07 Oct 2007 14:33:07 -0700 (PDT) Received: by 10.82.138.2 with HTTP; Sun, 7 Oct 2007 14:33:07 -0700 (PDT) Message-ID: <164378d10710071433x4d666f46uf629cc6a58e86a6d@mail.gmail.com> Date: Sun, 7 Oct 2007 18:33:07 -0300 From: Rod To: caml-list@yquem.inria.fr Subject: Re: [Caml-list] OCamlMPI problem In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_40627_18514126.1191792787090" References: <164378d10709171408y5818c858g34b02d7eaa223aab@mail.gmail.com> <8BB4C643-AC23-44E8-A5AE-FF6888BB2D0E@gmail.com> <164378d10709181223u61f0cdccnbebacf8a6ed26169@mail.gmail.com> X-Spam: no; 0.00; ocamlmpi:01 ocamlmpi:01 makefile:01 lib:01 makefile:01 lib:01 ocamlc:01 ocaml:01 compilation:01 ocamlc:01 ocaml:01 compilation:01 2007,:98 W21:98 2007,:98 ------=_Part_40627_18514126.1191792787090 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline 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 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` > > > ------=_Part_40627_18514126.1191792787090 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline 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`


------=_Part_40627_18514126.1191792787090--