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.4 required=5.0 tests=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 434B9BC6B for ; Mon, 17 Sep 2007 23:07:22 +0200 (CEST) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AgAAAAKJ7kbRVYC9kmdsb2JhbACCOjaLIwIHAgYRFg X-IronPort-AV: E=Sophos;i="4.20,265,1186351200"; d="scan'208";a="16333174" Received: from fk-out-0910.google.com ([209.85.128.189]) by mail4-smtp-sop.national.inria.fr with ESMTP; 17 Sep 2007 23:08:22 +0200 Received: by fk-out-0910.google.com with SMTP id b27so2196822fka for ; Mon, 17 Sep 2007 14:08:22 -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:mime-version:content-type; bh=iXUfOr+i+s1IPO8CROU2yIjFNaSgtTYt/g8mV8j7MmU=; b=DehW9Au44cqSvOZhom8pWJMpMU4LlHRSRsitFrQlpPqKUxnInb71bZc0qjDXFxOhal5mT48oTWums2m2dOK3boPA2Xf4/gxT85Pm3KHDer3eeYpJA+FIyowcKorTO9ZexEWl5dkyKJBsB+1ElKfdpgTchpEQVGUYxVcGhdbbuPc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:mime-version:content-type; b=RIjJ8/qn1UkkLbMr/jDzVrqS6WnyTdVWJC1zPRPwSdMAffSStyabEYd6LMWuG8qArnmN5TYrI+Q4AWK5l7JSvsvYBNRDlQbcckU4IP+1s2WDyGGStYYZCeX8RUg1ZwSFbl8qQ+q9IL1O9XVL7DaEiQUk/ICwcgKZxrlbn7nzmiE= Received: by 10.82.106.14 with SMTP id e14mr3203847buc.1190063301597; Mon, 17 Sep 2007 14:08:21 -0700 (PDT) Received: by 10.82.140.5 with HTTP; Mon, 17 Sep 2007 14:08:21 -0700 (PDT) Message-ID: <164378d10709171408y5818c858g34b02d7eaa223aab@mail.gmail.com> Date: Mon, 17 Sep 2007 18:08:21 -0300 From: Rod To: caml-list@yquem.inria.fr Subject: OCamlMPI problem MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_20346_22945472.1190063301596" X-Spam: no; 0.00; ocamlmpi:01 ocamlmpi:01 ocamlc:01 usr:01 runtime:01 ocamlc:01 usr:01 runtime:01 cheer:98 cheer:98 unix:01 unix:01 compile:01 compile:01 cma:01 ------=_Part_20346_22945472.1190063301596 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi all, I'm trying to compile the test file using ocamlmpi, but just what I have is this message ------------------------------------------------------------------------------- ocamlc -o testmpi unix.cma mpi.cma test.ml -ccopt -L. File "test.ml", line 144, characters 6-9: Warning Y: unused variable res. /usr/bin/ld: cannot find -lmpi collect2: ld returned 1 exit status Error while building custom runtime system ----------------------------------------------------------------------------- I'm using mpich2-1.0.5p4. Thanks in advance for any answer. Cheer, Rodiney ------=_Part_20346_22945472.1190063301596 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi all,

    I'm trying to compile the test file using ocamlmpi, but just what I have is this message
-------------------------------------------------------------------------------
ocamlc -o testmpi unix.cma mpi.cma test.ml -ccopt -L.
File "test.ml", line 144, characters 6-9:
Warning Y: unused variable res.
/usr/bin/ld: cannot find -lmpi
collect2: ld returned 1 exit status
Error while building custom runtime system
-----------------------------------------------------------------------------

I'm using mpich2-1.0.5p4.

Thanks in advance for any answer.

Cheer,
Rodiney

------=_Part_20346_22945472.1190063301596-- 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=0.0 required=5.0 tests=AWL 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 20414BC6B for ; Mon, 17 Sep 2007 23:45:02 +0200 (CEST) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AgAAAFaS7kbLENaMnmdsb2JhbACOEwIHBAYPGA X-IronPort-AV: E=Sophos;i="4.20,266,1186351200"; d="scan'208";a="16333983" Received: from ipmail01.adl2.internode.on.net ([203.16.214.140]) by mail4-smtp-sop.national.inria.fr with ESMTP; 17 Sep 2007 23:46:01 +0200 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AgAAAAOQ7kZ5LHvc/2dsb2JhbAAM X-IronPort-AV: E=Sophos;i="4.20,265,1186324200"; d="scan'208";a="193008317" Received: from ppp121-44-123-220.lns10.syd6.internode.on.net (HELO [192.168.1.201]) ([121.44.123.220]) by ipmail01.adl2.internode.on.net with ESMTP; 18 Sep 2007 07:15:56 +0930 Subject: Re: [Caml-list] OCamlMPI problem From: skaller To: Rod Cc: caml-list@yquem.inria.fr In-Reply-To: <164378d10709171408y5818c858g34b02d7eaa223aab@mail.gmail.com> References: <164378d10709171408y5818c858g34b02d7eaa223aab@mail.gmail.com> Content-Type: text/plain Date: Tue, 18 Sep 2007 07:45:54 +1000 Message-Id: <1190065554.6058.262.camel@rosella.wigram> Mime-Version: 1.0 X-Mailer: Evolution 2.10.1 Content-Transfer-Encoding: 7bit X-Spam: no; 0.00; ocamlmpi:01 ocamlmpi:01 ocamlc:01 usr:01 runtime:01 usr:01 lib:01 lib:01 824:98 ubuntu:98 sourceforge:01 wrote:01 unix:01 compile:01 caml-list:01 On Mon, 2007-09-17 at 18:08 -0300, Rod wrote: > Hi all, > > I'm trying to compile the test file using ocamlmpi, but just what > I have is this message > ------------------------------------------------------------------------------- > ocamlc -o testmpi unix.cma mpi.cma test.ml -ccopt -L. > File "test.ml", line 144, characters 6-9: > Warning Y: unused variable res. > /usr/bin/ld: cannot find -lmpi > collect2: ld returned 1 exit status > Error while building custom runtime system > ----------------------------------------------------------------------------- > > I'm using mpich2-1.0.5p4. Try 'locate libmpi' to find where it is on your system. I have this: $ ls -lasp /usr/lib/libmpi.so 0 lrwxrwxrwx 1 root root 27 2006-08-29 06:45 /usr/lib/libmpi.so -> /etc/alternatives/libmpi.so $ ls -lasp /etc/alternatives/libmpi.so 0 lrwxrwxrwx 1 root root 37 2007-04-20 04:06 /etc/alternatives/libmpi.so -> /usr/lib/mpich/lib/shared/libmpich.so $ ls -lasp /usr/lib/mpich/lib/shared/libmpich.so 0 lrwxrwxrwx 1 root root 15 2007-04-20 03:52 /usr/lib/mpich/lib/shared/libmpich.so -> libmpich.so.1.0 $ ls -lasp /usr/lib/mpich/lib/shared/libmpich.so.1.0 824 -rw-r--r-- 1 root root 837128 2006-11-12 06:59 /usr/lib/mpich/lib/shared/libmpich.so.1.0 Hey, finally found it! [Ubuntu Linux] -- John Skaller Felix, successor to C++: http://felix.sf.net 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.1 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 mail3-relais-sop.national.inria.fr (mail3-relais-sop.national.inria.fr [192.134.164.104]) by yquem.inria.fr (Postfix) with ESMTP id 2E882BC6B for ; Tue, 18 Sep 2007 15:51:24 +0200 (CEST) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AgAAAFh170bYSfEMn2dsb2JhbACCPTOLIAICBwQGBwgY X-IronPort-AV: E=Sophos;i="4.20,268,1186351200"; d="scan'208,217";a="2866043" Received: from lepore.amnh.org ([216.73.241.12]) by mail3-smtp-sop.national.inria.fr with ESMTP; 18 Sep 2007 15:52:29 +0200 Received: from localhost (localhost [127.0.0.1]) by lepore.amnh.org (Postfix) with ESMTP id 0A0215B772; Tue, 18 Sep 2007 09:52:28 -0400 (EDT) X-Virus-Scanned: amavisd-new at amnh.org Received: from lepore.amnh.org ([127.0.0.1]) by localhost (lepore.amnh.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id M1r1-5HXdeqm; Tue, 18 Sep 2007 09:52:24 -0400 (EDT) Received: from [172.16.63.223] (216-73-249-95.dynamic.amnh.org [216.73.249.95]) by lepore.amnh.org (Postfix) with ESMTP id 806965B771; Tue, 18 Sep 2007 09:52:24 -0400 (EDT) In-Reply-To: <164378d10709171408y5818c858g34b02d7eaa223aab@mail.gmail.com> References: <164378d10709171408y5818c858g34b02d7eaa223aab@mail.gmail.com> Mime-Version: 1.0 (Apple Message framework v752.3) Content-Type: multipart/alternative; boundary=Apple-Mail-1--784578528 Message-Id: <8BB4C643-AC23-44E8-A5AE-FF6888BB2D0E@gmail.com> Cc: caml-list@yquem.inria.fr From: Andres Varon Subject: Re: [Caml-list] OCamlMPI problem Date: Tue, 18 Sep 2007 09:51:42 -0400 To: Rod X-Mailer: Apple Mail (2.752.3) X-Spam: no; 0.00; ocamlmpi:01 compiler:01 flags:01 compilation:01 ocaml:01 ocamlc:01 ocamlmpi:01 ocamlc:01 usr:01 runtime:01 beginner's:01 ocaml:01 bug:01 compiler:01 flags:01 --Apple-Mail-1--784578528 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed You need to use mpicc as the C compiler and linker. That will take care of passing whatever flags are needed for proper compilation and linking. You can pass it to ocaml with: ocamlc -cc mpicc -o testmpi unix.cma mpi.cma test.ml -ccopt -L. Andres On Sep 17, 2007, at 5:08 PM, Rod wrote: > Hi all, > > I'm trying to compile the test file using ocamlmpi, but just > what I have is this message > ---------------------------------------------------------------------- > --------- > ocamlc -o testmpi unix.cma mpi.cma test.ml -ccopt -L. > File "test.ml", line 144, characters 6-9: > Warning Y: unused variable res. > /usr/bin/ld: cannot find -lmpi > collect2: ld returned 1 exit status > Error while building custom runtime system > ---------------------------------------------------------------------- > ------- > > I'm using mpich2-1.0.5p4. > > Thanks in advance for any answer. > > Cheer, > Rodiney > > _______________________________________________ > Caml-list mailing list. Subscription management: > http://yquem.inria.fr/cgi-bin/mailman/listinfo/caml-list > Archives: http://caml.inria.fr > Beginner's list: http://groups.yahoo.com/group/ocaml_beginners > Bug reports: http://caml.inria.fr/bin/caml-bugs --Apple-Mail-1--784578528 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=ISO-8859-1 You need to use mpicc as the C = compiler and linker. That will take care of passing whatever flags are = needed for proper compilation and linking. You can pass it to ocaml = with:

ocamlc -cc = mpicc -o testmpi unix.cma mpi.cma test.ml -ccopt -L.



Andres


On Sep 17, 2007, at = 5:08 PM, Rod wrote:

Hi = all,

=A0=A0=A0 I'm trying to compile the test file using = ocamlmpi, but just what I have is this message
= --------------------------------------------------------------------------= -----
ocamlc -o testmpi unix.cma mpi.cma test.ml -ccopt -L.
File "test.ml", line 144, characters 6-9:
= Warning Y: unused variable res.
/usr/bin/ld: cannot find -lmpi
= collect2: ld returned 1 exit status
Error while building custom = runtime system
= --------------------------------------------------------------------------= ---

I'm using mpich2-1.0.5p4.

Thanks in advance for = any answer.

Cheer,
Rodiney

Caml-list mailing list. Subscription = management:

= --Apple-Mail-1--784578528-- 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.0 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 CC3CDBC6B for ; Tue, 18 Sep 2007 21:21:54 +0200 (CEST) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AgAAAMHB70bRVYa9kWdsb2JhbACCPDSLIAICBwQEDwIY X-IronPort-AV: E=Sophos;i="4.20,270,1186351200"; d="scan'208";a="16382880" Received: from mu-out-0910.google.com ([209.85.134.189]) by mail4-smtp-sop.national.inria.fr with ESMTP; 18 Sep 2007 21:23:02 +0200 Received: by mu-out-0910.google.com with SMTP id w8so1905373mue for ; Tue, 18 Sep 2007 12:23:01 -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:cc:in-reply-to:mime-version:content-type:references; bh=BGd+umP6x1pwL9G4BGkH2wRDQ7DWJT65phqsWZ44Vps=; b=nO7uMry9wtxuoAmpct62TgV7pjixNil/nNlUN4cnRhKtMa3K5vZnoVrpu3B2pxKGJ3WCRD6PVampwYlmLh4fHWP6VBkV7SniX3Z0N6XRBaKWaBo1JN9c3f8eha9gupOsygsyhsBIzWOW4sNJbbx85vOXg8VkHAV9vc+LsupaZeU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; b=DyIglIJdrLE5yNGB/EyjwlJ/HNxkBSM2ln/v25pdG65qbo0AlXfII4L/7wICW57fb6GG3u+VKN82BRAU3I0TnVThGbDcTgQvZYD/CH3wdCYt4rJGO2xwJV2RhC3hXNgwSH3QgQZbVBYKiZv50DPs/l/UiZjCCIKZmZqkGkYLfok= Received: by 10.82.146.14 with SMTP id t14mr8480911bud.1190143381157; Tue, 18 Sep 2007 12:23:01 -0700 (PDT) Received: by 10.82.140.5 with HTTP; Tue, 18 Sep 2007 12:23:01 -0700 (PDT) Message-ID: <164378d10709181223u61f0cdccnbebacf8a6ed26169@mail.gmail.com> Date: Tue, 18 Sep 2007 16:23:01 -0300 From: Rod To: "Andres Varon" Subject: Re: [Caml-list] OCamlMPI problem Cc: caml-list@yquem.inria.fr In-Reply-To: <8BB4C643-AC23-44E8-A5AE-FF6888BB2D0E@gmail.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_27075_24944479.1190143381140" References: <164378d10709171408y5818c858g34b02d7eaa223aab@mail.gmail.com> <8BB4C643-AC23-44E8-A5AE-FF6888BB2D0E@gmail.com> X-Spam: no; 0.00; ocamlmpi:01 usr:01 lib:01 ocamlc:01 usr:01 lib:01 runtime:01 ocamlc:01 runtime:01 ocaml:01 ocamlmpi:01 compiler:01 flags:01 compilation:01 ocaml:01 ------=_Part_27075_24944479.1190143381140 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi again buddies!! First, thanks for replying me. Well... I just tried to locate 'libmpi.a' as you can see below: [rodiney@homer ocamlmpi-1.01]$ locate libmpi.a /usr/lib/lam/libmpi.a Then, I tried the following: [rodiney@homer ocamlmpi-1.01]$ ocamlc -o testmpi mpi.cma unix.cma test.ml-ccopt -L /usr/lib/lam/libmpi.a File "test.ml", line 144, characters 6-9: Warning Y: unused variable res. /usr/bin/ld: cannot find -lcamlmpi collect2: ld returned 1 exit status Error while building custom runtime system and then I tried to do the following as well: [rodiney@homer ocamlmpi-1.01]$ ocamlc -cc mpicc -o testmpi unix.cma mpi.cma test.ml -ccopt -L `locate libmpi.a` File "test.ml", line 144, characters 6-9: Warning Y: unused variable res. /usr/bin/ld: cannot find -lcamlmpi collect2: ld returned 1 exit status Error while building custom runtime system Damn it!! The build system is now asking for 'libcamlmpi.a' So, I used 'locate' once again: [rodiney@homer ocamlmpi-1.01]$ locate libcamlmpi /home/rodiney/ocamlmpi-1.01/libcamlmpi.a /usr/lib/ocaml/ocamlmpi/libcamlmpi.a Which 'libcamlmpi.a' should I use?? So, there is a new problem! How can I solve it?? Please, any suggestion? Thanks again!! On 9/18/07, Andres Varon wrote: > > You need to use mpicc as the C compiler and linker. That will take care of > passing whatever flags are needed for proper compilation and linking. You > can pass it to ocaml with: > ocamlc -cc mpicc -o testmpi unix.cma mpi.cma test.ml -ccopt -L. > > > > Andres > > > On Sep 17, 2007, at 5:08 PM, Rod wrote: > > Hi all, > > I'm trying to compile the test file using ocamlmpi, but just what I > have is this message > > ------------------------------------------------------------------------------- > ocamlc -o testmpi unix.cma mpi.cma test.ml -ccopt -L. > File "test.ml", line 144, characters 6-9: > Warning Y: unused variable res. > /usr/bin/ld: cannot find -lmpi > collect2: ld returned 1 exit status > Error while building custom runtime system > > ----------------------------------------------------------------------------- > > I'm using mpich2-1.0.5p4. > > Thanks in advance for any answer. > > Cheer, > Rodiney > > _______________________________________________ > Caml-list mailing list. Subscription management: > http://yquem.inria.fr/cgi-bin/mailman/listinfo/caml-list > Archives: http://caml.inria.fr > Beginner's list: http://groups.yahoo.com/group/ocaml_beginners > Bug reports: http://caml.inria.fr/bin/caml-bugs > > > ------=_Part_27075_24944479.1190143381140 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi again buddies!!
First, thanks for replying me.
Well... I just tried to locate 'libmpi.a' as you can see below:

[rodiney@homer ocamlmpi-1.01]$ locate libmpi.a
/usr/lib/lam/libmpi.a

Then, I tried the following:

[rodiney@homer ocamlmpi-1.01]$ ocamlc -o testmpi mpi.cma unix.cma test.ml -ccopt -L /usr/lib/lam/libmpi.a

File "test.ml", line 144, characters 6-9:
Warning Y: unused variable res.
/usr/bin/ld: cannot find -lcamlmpi
collect2: ld returned 1 exit status
Error while building custom runtime system

and then I tried to do the following as well:

[rodiney@homer ocamlmpi-1.01]$ ocamlc -cc mpicc -o testmpi unix.cma mpi.cma test.ml -ccopt -L `locate libmpi.a`

File "test.ml", line 144, characters 6-9:
Warning Y: unused variable res.
/usr/bin/ld: cannot find -lcamlmpi
collect2: ld returned 1 exit status
Error while building custom runtime system

Damn it!! The build system is now asking for 'libcamlmpi.a'
So, I used 'locate' once again:

[rodiney@homer ocamlmpi-1.01]$ locate libcamlmpi
/home/rodiney/ocamlmpi-1.01/libcamlmpi.a
/usr/lib/ocaml/ocamlmpi/libcamlmpi.a

Which 'libcamlmpi.a' should I use??
So, there is a new problem! How can I solve it?? Please, any suggestion?
Thanks again!!

On 9/18/07, Andres Varon <avaron@gmail.com> wrote:
You need to use mpicc as the C compiler and linker. That will take care of passing whatever flags are needed for proper compilation and linking. You can pass it to ocaml with:

ocamlc -cc mpicc -o testmpi unix.cma mpi.cma test.ml -ccopt -L.



Andres


On Sep 17, 2007, at 5:08 PM, Rod wrote:

Hi all,

    I'm trying to compile the test file using ocamlmpi, but just what I have is this message
-------------------------------------------------------------------------------
ocamlc -o testmpi unix.cma mpi.cma test.ml -ccopt -L.
File " test.ml", line 144, characters 6-9:
Warning Y: unused variable res.
/usr/bin/ld: cannot find -lmpi
collect2: ld returned 1 exit status
Error while building custom runtime system
-----------------------------------------------------------------------------

I'm using mpich2-1.0.5p4.

Thanks in advance for any answer.

Cheer,
Rodiney

_______________________________________________
Caml-list mailing list. Subscription management:


------=_Part_27075_24944479.1190143381140-- 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.4 required=5.0 tests=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 9D356BC69 for ; Tue, 25 Sep 2007 20:35:51 +0200 (CEST) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AgAAAPDx+EZC+VytkGdsb2JhbACCcIs8AQEBAQcEBBERB5dv X-IronPort-AV: E=Sophos;i="4.20,296,1186351200"; d="scan'208";a="16770123" Received: from ug-out-1314.google.com ([66.249.92.173]) by mail4-smtp-sop.national.inria.fr with ESMTP; 25 Sep 2007 20:35:51 +0200 Received: by ug-out-1314.google.com with SMTP id m3so999389ugc for ; Tue, 25 Sep 2007 11:35:50 -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:cc:in-reply-to:mime-version:content-type:references; bh=GgbZThoQO/uUw708FgahmzeFVO0VLp9uQBVSA7wLI0k=; b=WmCqShTscCoeK/4So1VILdtFaIXE1z/7hLDqP5S1LXZ8aFQ7Em4q4Ki0+0f/XzrsILdXfUM47j0JBiwL3O5sytC24dNcEw58cM1UX2Ma14jGx/gw7dmF3nypi0TSR5rsBsK4m89FjVJ0gnHvijC5LTQFaj6NUKpArGKwG5pK+nc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; b=HMxj+rccX3QKbpQ6UEQxleWp1jcn2cXt36ZdT7io+wDb+xRQcjq8mhrARKgxVQqoxe2928MFDutC0rqjZXTcVBJTBVW3duzH6rjzSlyt7QgTmTuvHSiDAcMDE1EYgcVTBaEWcBIZ4fFgqKTrGm7/QqZkWadHgW5JUBwKZLx166M= Received: by 10.78.122.16 with SMTP id u16mr3374664huc.1190745349917; Tue, 25 Sep 2007 11:35:49 -0700 (PDT) Received: by 10.78.148.9 with HTTP; Tue, 25 Sep 2007 11:35:49 -0700 (PDT) Message-ID: <9efd48050709251135j2bb8bdffjfaf1dc5506dba8ef@mail.gmail.com> Date: Tue, 25 Sep 2007 15:35:49 -0300 From: "Jhou ^^" To: "Andres Varon" Subject: Re: [Caml-list] OCamlMPI problem Cc: caml-list@yquem.inria.fr In-Reply-To: <8BB4C643-AC23-44E8-A5AE-FF6888BB2D0E@gmail.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_2322_12641266.1190745349905" References: <164378d10709171408y5818c858g34b02d7eaa223aab@mail.gmail.com> <8BB4C643-AC23-44E8-A5AE-FF6888BB2D0E@gmail.com> X-Spam: no; 0.00; ocamlmpi:01 ocaml:01 ocaml:01 compiler:01 flags:01 compilation:01 ocamlc:01 ocamlmpi:01 ocamlc:01 usr:01 runtime:01 beginner's:01 bug:01 beginner's:01 bug:01 ------=_Part_2322_12641266.1190745349905 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi list!!! After a hard work, I've eventually got testempi compiled. However, I'm facing a new kind of problem now. When I just try to run testempi with mpiexec tool, the 'mpd' process manager (that is, the default process manager provided by MPICH2 implementation of MPI library) can not work properly. Instead, I got an error message that says the 'lamd' daemon isn't running. So, it asks me for starting 'lamboot'. So, I'm litte confused here: is lamboot a tool from LAM/MPI Implementation, isn't it? Then, what about MPICH2? I mean... do I need to use LAM/MPI to execute ocaml MPI application? How can I get ocaml working good with MPICH2? 'cause I've already installed and configured MPICH2 in my cluster. By the way, does anybody know where to find a good tutorial about ocaml MPI?? You know.. something with examples and so on! Thanks in advance in sorry for my bad english!! 2007/9/18, Andres Varon : > > You need to use mpicc as the C compiler and linker. That will take care of > passing whatever flags are needed for proper compilation and linking. You > can pass it to ocaml with: > ocamlc -cc mpicc -o testmpi unix.cma mpi.cma test.ml -ccopt -L. > > > > Andres > > > On Sep 17, 2007, at 5:08 PM, Rod wrote: > > Hi all, > > I'm trying to compile the test file using ocamlmpi, but just what I > have is this message > > ------------------------------------------------------------------------------- > ocamlc -o testmpi unix.cma mpi.cma test.ml -ccopt -L. > File "test.ml", line 144, characters 6-9: > Warning Y: unused variable res. > /usr/bin/ld: cannot find -lmpi > collect2: ld returned 1 exit status > Error while building custom runtime system > > ----------------------------------------------------------------------------- > > I'm using mpich2-1.0.5p4. > > Thanks in advance for any answer. > > Cheer, > Rodiney > > _______________________________________________ > Caml-list mailing list. Subscription management: > http://yquem.inria.fr/cgi-bin/mailman/listinfo/caml-list > Archives: http://caml.inria.fr > Beginner's list: http://groups.yahoo.com/group/ocaml_beginners > Bug reports: http://caml.inria.fr/bin/caml-bugs > > > > _______________________________________________ > Caml-list mailing list. Subscription management: > http://yquem.inria.fr/cgi-bin/mailman/listinfo/caml-list > Archives: http://caml.inria.fr > Beginner's list: http://groups.yahoo.com/group/ocaml_beginners > Bug reports: http://caml.inria.fr/bin/caml-bugs > > ------=_Part_2322_12641266.1190745349905 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi list!!!
After a hard work, I've eventually got testempi compiled. However, I'm facing a new kind of problem now. When I just try to run testempi with mpiexec tool, the 'mpd' process manager (that is, the default process manager provided by MPICH2 implementation of MPI library) can not  work properly. Instead,  I got an error message that says the 'lamd' daemon isn't running. So, it asks me for starting 'lamboot'. So, I'm litte confused here: is lamboot a tool from LAM/MPI Implementation, isn't it? Then, what about MPICH2? I mean... do I need to use LAM/MPI to execute ocaml MPI application? How can I get ocaml working good with MPICH2? 'cause I've already installed and configured MPICH2 in my cluster.
By the way, does anybody know where to find a good tutorial about ocaml MPI?? You know.. something with examples and so on!
Thanks in advance in sorry for my bad english!!

2007/9/18, Andres Varon < avaron@gmail.com>:
You need to use mpicc as the C compiler and linker. That will take care of passing whatever flags are needed for proper compilation and linking. You can pass it to ocaml with:

ocamlc -cc mpicc -o testmpi unix.cma mpi.cma test.ml -ccopt -L.



Andres


On Sep 17, 2007, at 5:08 PM, Rod wrote:

Hi all,

    I'm trying to compile the test file using ocamlmpi, but just what I have is this message
-------------------------------------------------------------------------------
ocamlc -o testmpi unix.cma mpi.cma test.ml -ccopt -L.
File "test.ml", line 144, characters 6-9:
Warning Y: unused variable res.
/usr/bin/ld: cannot find -lmpi
collect2: ld returned 1 exit status
Error while building custom runtime system
-----------------------------------------------------------------------------

I'm using mpich2-1.0.5p4.

Thanks in advance for any answer.

Cheer,
Rodiney

_______________________________________________
Caml-list mailing list. Subscription management:


_______________________________________________
Caml-list mailing list. Subscription management:
http://yquem.inria.fr/cgi-bin/mailman/listinfo/caml-list
Archives: http://caml.inria.fr
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
Bug reports: http://caml.inria.fr/bin/caml-bugs


------=_Part_2322_12641266.1190745349905-- 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--