Intel® MPI Library
Get help with building, analyzing, optimizing, and scaling high-performance computing (HPC) applications.

MPI_Comm_create ERROR

littlewang
Beginner
1,183 Views

I used mpirun to run the program and stopped when I got to MPI_Comm_create.The following write statement cannot be executed.

what should I do?Is there something wrong with my code?

Any advice would be greatly appreciated!

 

include 'mpif.h'
integer mpistat(MPI_STATUS_SIZE),ierr
integer comm_mpi, rank_mpi, size_mpi, rank_mpi_cctrl
integer comm_sol_mpi, new_grp , orig_grp
integer, dimension(:), allocatable, save :: ranks_sol
character*8 chnum

if(monitor_mode.gt.0) write(*,*)'P',rank_mpi,'in CONTACT_DEFORM'
! comm_mpi = MPI_COMM_WORLD
call mpi_comm_rank( MPI_COMM_WORLD, rank_mpi, ierr)
call mpi_comm_size( MPI_COMM_WORLD, size_mpi, ierr)
rank_mpi_cctrl = size_mpi - 1
if(monitor_mode.gt.0)write(*,*)'P',rank_mpi,'in CONTACT_DEFORM(0)'
!*** Create new communicator for solver ***
IF(NST.EQ.NSTART) THEN
if(monitor_mode.gt.0)
write(*,*)'P',rank_mpi, 'before create commun..'
!
if(rank_mpi.ne.size_mpi - 1) then !! if analyzer
allocate(ranks_sol(size_mpi - 1), stat=istat)
call check_memory_integer(size_mpi - 1, ranks_sol, ram,
+ istat, 'ranks_sol')
do i = 1, size_mpi - 1
ranks_sol(i) = i - 1
enddo

! allocate(orig_grp(size_mpi))
call MPI_Comm_group(MPI_COMM_WORLD, orig_grp, ierr)
! allocate(new_grp(size_mpi))
call MPI_Group_incl(orig_grp, size_mpi - 1, ranks_sol,new_grp, ierr )
call MPI_Comm_create(MPI_COMM_WORLD, new_grp, comm_sol_mpi, ierr)
write(*,*)"arrive 1"
endif
if(monitor_mode.gt.0)
write(*,*)'P',rank_mpi, 'after create commun..'
ENDIF

0 Kudos
1 Solution
VarshaS_Intel
Moderator
1,153 Views

Hi,

Thank you for providing the code snippet, can we also have the complete sample reproducer code and the command you used to compile and execute the code?

Also, could you please provide the OS details, Environment details, and MPI version you are using?

As you mentioned that the code stops running does it throw any error? If yes, could you please provide us the complete error log?


Thanks & Regards

Varsha


View solution in original post

0 Kudos
4 Replies
VarshaS_Intel
Moderator
1,154 Views

Hi,

Thank you for providing the code snippet, can we also have the complete sample reproducer code and the command you used to compile and execute the code?

Also, could you please provide the OS details, Environment details, and MPI version you are using?

As you mentioned that the code stops running does it throw any error? If yes, could you please provide us the complete error log?


Thanks & Regards

Varsha


0 Kudos
VarshaS_Intel
Moderator
1,026 Views

Hi,


Did you mark our reply as the solution by mistake? If yes, could you please provide the details mentioned in the previous post?


Thanks & Regards

Varsha


0 Kudos
VarshaS_Intel
Moderator
975 Views

Hi,

 

We haven't heard back from you. Could you please provide an update on your issue?

 

 

Thanks & Regards

Varsha

 

0 Kudos
VarshaS_Intel
Moderator
902 Views

Hi,


We have not heard back from you. This thread will no longer be monitored by Intel. If you need further assistance, please post a new question.


Thanks & Regards

Varsha


0 Kudos
Reply