[MPICH] thread safety

Rajeev Thakur thakur at mcs.anl.gov
Mon Sep 12 13:42:10 CDT 2005


By the way, the output you attached says MPI_THREAD_FUNNELED. In that case,
you cannot call MPI_Send and MPI_Recv from different threads as you are. You
can do that only for MPI_THREAD_MULTIPLE, in which case you should not get
the error message you are seeing because the code in MPICH2 checks for
thread multiple before printing the error message.

Rajeev
 

> -----Original Message-----
> From: owner-mpich-discuss at mcs.anl.gov 
> [mailto:owner-mpich-discuss at mcs.anl.gov] On Behalf Of 
> lunasole at interfree.it
> Sent: Monday, September 12, 2005 3:54 AM
> To: mpich-discuss at mcs.anl.gov
> Subject: [MPICH] thread safety
> 
> 
> hi all,
> MPICH2 includes parts of MPI-2. from README, the sock channel 
> now has preliminary support for MPI_THREAD_SERIALIZED and 
> MPI_THREAD_MULTIPLE on both Unix and Microsoft Windows.  Does 
> it means that the thread safety isn't implemented in Linux?
> i implemented a simple example (a process creates 2 threads: 
> one thread that it sends a buffer and an other that it 
> receives this) but it doesn't work. In attached the source 
> file and an example of output.
> thank's for you help.
> 
> 
> --------------------------------------------------------------
> -----------
> Visita http://domini.interfree.it, il sito di Interfree dove trovare
> soluzioni semplici e complete che soddisfano le tue esigenze 
> in Internet,
> ecco due esempi di offerte:
> 
> -  Registrazione Dominio: un dominio con 1 MB di spazio disco 
> +  2 caselle
>    email a soli 18,59 euro
> -  MioDominio: un dominio con 20 MB di spazio disco + 5 caselle email 
>    a soli 51,13 euro
> 
> Vieni a trovarci!
> 
> Lo Staff di Interfree 
> --------------------------------------------------------------
> -----------
> 
> 




More information about the mpich-discuss mailing list