Hello, I have built Open MPI 1.10.0 using Intel compilers 16.0.0. When I am trying to compile the following test code:
program testmpi
use mpi
implicit none
integer :: pid
integer :: ierr
integer :: tok
call mpi_init(ierr)
call mpi_comm_rank(mpi_comm_world, pid,ierr)
if(pid==0) then
tok = 1
else
tok = 0
end if
call mpi_bcast(tok,1,mpi_integer,0,mpi_comm_world,ierr)
call mpi_finalize(ierr)
end program testmpi
I get the following error message:
testmpi.f90(21): error #6285: There is no matching specific subroutine
for this generic subroutine call. [MPI_BCAST]
call mpi_bcast(tok,1,mpi_integer,0,mpi_comm_world,ierr)
---------^
compilation aborted for testmpi.f90 (code 1)
The compilation and execution succeed if I declare tok as
integer, dimension(1) :: tok
I have also built Open MPI 1.10.0 with GNU 5.2.0 compilers and both
versions of the test code (with tok declared as an integer or as an
integer, dimension(1) ) compile and execute.
Open MPI was configured with the same options with both compilers. Do you have any idea how I could solve this problem? Thanks, Fabrice Roy -- Fabrice Roy Ingénieur en calcul scientifique LUTH - CNRS / Observatoire de Paris 5 place Jules Janssen 92190 Meudon Tel. : 01 45 07 71 20
smime.p7s
Description: Signature cryptographique S/MIME
