[MPICH] hi...is it safe to use both thread and MPI_Barrier?

Rajeev Thakur thakur at mcs.anl.gov
Mon Sep 26 11:20:33 CDT 2005


You should use MPICH2 and also read the section on how to use threads with
MPI from 
http://www.mpi-forum.org/docs/mpi-20-html/node162.htm

Rajeev

> -----Original Message-----
> From: owner-mpich-discuss at mcs.anl.gov 
> [mailto:owner-mpich-discuss at mcs.anl.gov] On Behalf Of AO AA±O
> Sent: Sunday, September 25, 2005 3:42 AM
> To: mpich-discuss at mcs.anl.gov
> Subject: [MPICH] hi...is it safe to use both thread and MPI_Barrier?
> 
> hi...I want to use the only one thread to receive the signal 
> from clients.
> 
> it seemed to work but sometimes it could be in a deadlock.
> 
> if the fastest one's finished, it goes into MPI_Barrier()
> 
> and it will wait for other nodes until they've been finished 
> while thread 
> is running. 
> 
> I think it must work if thread and MPI_Barrier can be compatible.
> 
> hm..if I use MPICH2, there might be no problem to use both of them 
> together?
> 
> or there's no problem to use only one thread with MPICH-1
> 
> Could you give me any advice or examples?
> 
> 
> -Dean
> 
> 
> 




More information about the mpich-discuss mailing list