Jeff!
I am using 7.1.1 version of LAM/MPI and as I checked before it has ROMIO support, so it suppose to work.
Anyway, the labinfo output is:
[orensha_at_iecluster try]$ laminfo
LAM/MPI: 7.1.1
Prefix: /usr/local
Architecture: i686-pc-linux-gnu
Configured by: root
Configured on: Wed Nov 24 14:37:10 IST 2004
Configure host: iecluster.bgu.ac.il
Memory manager: ptmalloc2
C bindings: yes
C++ bindings: yes
Fortran bindings: yes
C compiler: gcc
C++ compiler: g++
Fortran compiler: g77
Fortran symbols: double_underscore
C profiling: yes
C++ profiling: yes
Fortran profiling: yes
C++ exceptions: no
Thread support: yes
ROMIO support: yes
IMPI support: no
Debug support: no
Purify clean: no
SSI boot: globus (API v1.1, Module v0.6)
SSI boot: rsh (API v1.1, Module v1.1)
SSI boot: slurm (API v1.1, Module v1.0)
SSI coll: lam_basic (API v1.1, Module v7.1)
SSI coll: shmem (API v1.1, Module v1.0)
SSI coll: smp (API v1.1, Module v1.2)
SSI rpi: crtcp (API v1.1, Module v1.1)
SSI rpi: lamd (API v1.0, Module v7.1)
SSI rpi: sysv (API v1.0, Module v7.1)
SSI rpi: tcp (API v1.0, Module v7.1)
SSI rpi: usysv (API v1.0, Module v7.1)
SSI cr: self (API v1.0, Module v1.0)
What do you think the problem is?
Oren Shapira
From: Jeff Squyres <jsquyres_at_[hidden]>
Date: 2005/03/29 â PM 04:04:07 GMT+02:00
To: General LAM/MPI mailing list <lam_at_[hidden]>
Subject: Re: LAM: compilation with ROMIO support
What version of LAM are you using? If it has a "laminfo" command, can
you send the output of that?
Sidenote: you do not need to include <mpio.h> in your application;
including <mpi.h> is all that is necessary.
I suspect that laminfo will show that LAM was not built with ROMIO
support. The easiest thing might be to re-build LAM so that it
includes ROMIO support.
On Mar 29, 2005, at 8:35 AM, Oren Shapira wrote:
> I have troubles in compilation LAM/MPI programs with ROMIO support. I
> am using mpicc compiler, the command is:
> mpicc -o program program.c -lm. The compiler is giving me the
> following error:
>
> [orensha_at_iecluster try]$ mpicc -o program program.c -lm
> /tmp/ccYavknR.o(.text+0x8c): In function `main':
> : undefined reference to `MPI_File_open'
> /tmp/ccYavknR.o(.text+0xe6): In function `main':
> : undefined reference to `MPI_File_set_view'
> /tmp/ccYavknR.o(.text+0x107): In function `main':
> : undefined reference to `MPI_File_write'
> /tmp/ccYavknR.o(.text+0x119): In function `main':
> : undefined reference to `MPI_File_close'
> collect2: ld returned 1 exit status
>
> I understand from here that some library lacks in the code, I wrote
> "include <mpio.h>" in the code. Should I must decare it in the path
> also? How I am doing it? May be (it seems like) I should add some
> argument to compiler (like I added -lm)? Just which one? I tried
> "mpicc -o program program.c -show" and I have got only:
>
> [orensha_at_iecluster try]$ mpicc -o par_io par_io.c -showme
> i386-redhat-linux-gcc -o par_io par_io.c -llamf77mpi -lmpi -llam -lutil
>
> Which parameter should I add?
>
> Sincerely,
>
>
> -----------------------------------------------------------------
> Oren Shapira,
> Research Assistant
> Multimedia and Intelligent Systems Research Team
> Industrial and Management Engineering Department
> Ben Gurion University of the Negev,
> Beer-Sheva, 84105, Israel.
> Office: 972-8-6472240
> Fax: 972-8-6472958
> ------------------------------------------------------------------
>
> _______________________________________________
> This list is archived at http://www.lam-mpi.org/MailArchives/lam/
>
--
{+} Jeff Squyres
{+} jsquyres_at_[hidden]
{+} http://www.lam-mpi.org/
_______________________________________________
This list is archived at http://www.lam-mpi.org/MailArchives/lam/
-----------------------------------------------------------------
Oren Shapira,
Research Assistant
Multimedia and Intelligent Systems Research Team
Industrial and Management Engineering Department
Ben Gurion University of the Negev,
Beer-Sheva, 84105, Israel.
Office: 972-8-6472240
Fax: 972-8-6472958
------------------------------------------------------------------
|