LAM/MPI logo

LAM/MPI General User's Mailing List Archives

  |   Home   |   Download   |   Documentation   |   FAQ   |   all just in this list

From: Amos Leffler (amosleffler_at_[hidden])
Date: 2009-04-12 12:25:30


Hi Bernhard,
       Thanks for your reply but I don't seem to have the file
stub.f90. Where is it supposed to be located?
                                                            Amos Leffler

On Thu, Apr 9, 2009 at 11:26 AM, Bernhard Reutner-Fischer
<rep.dot.nop_at_[hidden]> wrote:
> On Thu, Apr 09, 2009 at 11:11:03AM -0700, Amos Leffler wrote:
>>Dear Forum,
>> I have been trying to set up LAM/MPI-7.1.4 using OpenSuse
>>10.2 with an Intel Quadcore CPU. I have downloaded and compiled the
>>LAM/MPI file and run through the lam-7.1.4 test routines, all of which
>>seem to complete successfully. The next step is to initialize
>>MPI_Init and I have been unsuccessful. The first line of either the C
>>or Fortran directions runs properly. However, in the second statement
>>using the C version directions in the man page mpi_init(3) the program
>>complains about either the initial int or the open parenthesis . In
>>the Fortran version it says it doesn't recognize IERROR.
>> Have I omitted a step(s) in the routine? Any advice
>>would be appreciated.
>
> IERROR and other local variables have to be declared by yourself, like:
> $ cat stub.f90
> include 'mpif.h'
> integer :: rank, size, ierror, status(MPI_STATUS_SIZE)
> call MPI_INIT(ierror)
> call MPI_COMM_SIZE(MPI_COMM_WORLD, size, ierror)
> call MPI_COMM_RANK(MPI_COMM_WORLD, rank, ierror)
> ! do stuff
> call MPI_FINALIZE(ierror)
> end
>
> PS:
> i would recommend you use open-mpi, the successor of LAM/MPI, mpich etc.
> _______________________________________________
> This list is archived at http://www.lam-mpi.org/MailArchives/lam/
>