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--