Dear all,

the attached mympi_test.f90 does not compile with intel and OpenMPI Version 1.7.4, apparently it also does not compile with 1.8.0.

The Intel Compiler version is 14.0.2.

tmp/ifortjKG1cP.o: In function `MAIN__':
mympi_test.f90:(.text+0x90): undefined reference to `mpi_sizeof0di4_'

This is very similar to an error reported for older versions 1.4.x and 1.5x for the the Portland Group compiler:

https://www.open-mpi.org/community/lists/devel/2010/09/8443.php

Obviously this got fixed with version 1.6.*, and this version is working with the intel compiler as well.

Cheerio,
Luis
--
                             \\\\\\
                             (-0^0-)
--------------------------oOO--(_)--OOo-----------------------------

 Luis Kornblueh                           Tel. : +49-40-41173289
 Max-Planck-Institute for Meteorology     Fax. : +49-40-41173298
 Bundesstr. 53
 D-20146 Hamburg                   Email: luis.kornbl...@zmaw.de
 Federal Republic of Germany
program mympi_test

  use mpi

  implicit none

  integer               :: size, my_pe, comm, ierror, i
  integer               :: status(MPI_STATUS_SIZE)
  INTEGER               :: iig = 0
  INTEGER               :: p_int_byte     = 0

  call mpi_init(ierror)

  comm = MPI_COMM_WORLD

  call mpi_comm_size(comm,size,ierror)
  call mpi_comm_rank(comm,my_pe,ierror)
  call mpi_sizeof(iig, p_int_byte, ierror)

  write(*,*) 'MPI_COMM_WORLD: ', comm, MPI_COMM_WORLD
  write(*,*) 'I am PE ', my_pe, p_int_byte

  call mpi_finalize(ierror)

end program mympi_test

Reply via email to