* OCamlMPI problem @ 2007-09-17 21:08 Rod 2007-09-17 21:45 ` [Caml-list] " skaller 2007-09-18 13:51 ` Andres Varon 0 siblings, 2 replies; 6+ messages in thread From: Rod @ 2007-09-17 21:08 UTC (permalink / raw) To: caml-list [-- Attachment #1: Type: text/plain, Size: 576 bytes --] 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 [-- Attachment #2: Type: text/html, Size: 744 bytes --] ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [Caml-list] OCamlMPI problem 2007-09-17 21:08 OCamlMPI problem Rod @ 2007-09-17 21:45 ` skaller 2007-09-18 13:51 ` Andres Varon 1 sibling, 0 replies; 6+ messages in thread From: skaller @ 2007-09-17 21:45 UTC (permalink / raw) To: Rod; +Cc: caml-list 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 <skaller at users dot sf dot net> Felix, successor to C++: http://felix.sf.net ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [Caml-list] OCamlMPI problem 2007-09-17 21:08 OCamlMPI problem Rod 2007-09-17 21:45 ` [Caml-list] " skaller @ 2007-09-18 13:51 ` Andres Varon 2007-09-18 19:23 ` Rod 2007-09-25 18:35 ` Jhou ^^ 1 sibling, 2 replies; 6+ messages in thread From: Andres Varon @ 2007-09-18 13:51 UTC (permalink / raw) To: Rod; +Cc: caml-list [-- Attachment #1: Type: text/plain, Size: 1229 bytes --] 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 [-- Attachment #2: Type: text/html, Size: 2557 bytes --] ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [Caml-list] OCamlMPI problem 2007-09-18 13:51 ` Andres Varon @ 2007-09-18 19:23 ` Rod [not found] ` <AE44733D-5A0C-4176-B165-5EF7CDB9C0E7@gmail.com> 2007-09-25 18:35 ` Jhou ^^ 1 sibling, 1 reply; 6+ messages in thread From: Rod @ 2007-09-18 19:23 UTC (permalink / raw) To: Andres Varon; +Cc: caml-list [-- Attachment #1: Type: text/plain, Size: 2499 bytes --] 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: > 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 > > > [-- Attachment #2: Type: text/html, Size: 4425 bytes --] ^ permalink raw reply [flat|nested] 6+ messages in thread
[parent not found: <AE44733D-5A0C-4176-B165-5EF7CDB9C0E7@gmail.com>]
* Re: [Caml-list] OCamlMPI problem [not found] ` <AE44733D-5A0C-4176-B165-5EF7CDB9C0E7@gmail.com> @ 2007-10-07 21:33 ` Rod 0 siblings, 0 replies; 6+ messages in thread From: Rod @ 2007-10-07 21:33 UTC (permalink / raw) To: caml-list [-- 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 --] ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [Caml-list] OCamlMPI problem 2007-09-18 13:51 ` Andres Varon 2007-09-18 19:23 ` Rod @ 2007-09-25 18:35 ` Jhou ^^ 1 sibling, 0 replies; 6+ messages in thread From: Jhou ^^ @ 2007-09-25 18:35 UTC (permalink / raw) To: Andres Varon; +Cc: caml-list [-- Attachment #1: Type: text/plain, Size: 2485 bytes --] 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: > 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 > > [-- Attachment #2: Type: text/html, Size: 4534 bytes --] ^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2007-10-08 7:32 UTC | newest] Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2007-09-17 21:08 OCamlMPI problem 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 2007-09-25 18:35 ` Jhou ^^
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox