You should not have to recompile openmpi, but you do have to use the
correct type. You can check the size of integers in your fortrana nd use
MPI_INTEGER4 or MPI_INTEGER8 depending on what you get.
in gfortran use
integer i
if(sizeof(i) .eq. 8) then
mpi_int_type=MPI_INTEGER8
else
mpi_int_type=MPI_INTEGER4
endif
then use mpi_int_type for the type in the calls
On 06/28/12 16:00, William Au wrote:
Hi,
I try to compile my fortran program in linux with gfortran44 using
option -fdefault-integer-8,
then all my integer will of kind=8.
My question is what should I do with openmpi? I am using 1.6, should I
compile openmpi
with the same options? Will it get the correct size of MPI_INTEGER and
MPI_INTEGER2?
Thanks.
Regards,
William
_______________________________________________
users mailing list
us...@open-mpi.org
http://www.open-mpi.org/mailman/listinfo.cgi/users