Open MPI logo

Open MPI User's Mailing List Archives

  |   Home   |   Support   |   FAQ   |   all Open MPI User's mailing list

From: Nym (neverwillreply_at_[hidden])
Date: 2006-08-12 11:24:16


Hi,

I've been trying to compile OpenMPI with gfortran on Mac OS X, and use
it with an MPI app that compiles and works using MPICH2 on a Linux
system.

I have tried using both versions 1.1 and the pre-release 1.1.1, and I
get the same result. Attached at the configuration logs and make outputs
from compiling OpenMPI with version 1.1.1. (However only the configure
output and make all output are included, and they are bzip2'ed and not
gzip'ed. I tried to include everything specified on
http://www.open-mpi.org/community/help/, and have it tared, but it was
over 100kb)

The compilation of OpenMPI seems to finish successfully. However, when
compiling my MPI app I get the error

Error: Generic subroutine 'mpi_cart_create' at (1) is not an intrinsic
subroutine

Other MPI calls, such as MPI_REDUCE, and MPI_SENDRECV do not bring up
any errors. The call is of the following form, with the variable
declarations shown:

INTEGER, PARAMETER :: numDims = 2
INTEGER :: dimSizes(0:numDims-1)
LOGICAL :: dimPeriodics(0:numDims-1)
LOGICAL :: reorderRanks
INTEGER :: comm
INTEGER :: err

CALL MPI_CART_CREATE(MPI_COMM_WORLD, numDims, dimSizes, dimPeriodics, &
          reorderRanks, comm, err)

After some investigation, if I replace the logicals with Integers I
get it to compile. I haven't manage to test it yet due to some
gfortran error elsewhere. However, I'm not that keen on using integers
when they should be logicals. Also, I think according to the
specification, http://www.netlib.org/utk/papers/mpi-book/node153.html#SECTION00751000000000000000
, logicals should be accepted.

Is there a way to get MPI_CART_CREATE working with logicals on my system?

Nym.

p.s. I also apologise if this has been sent twice.