>
> Even if you change your code to make LAM calls from a single thread or guard them with a mutex, you may still have a problem with LAM 7.0. 7.0 had a bug related to pthreads that got fixed with version 7.0.2. Before continuing, I would upgrade to a later version of LAM.
Thanks for pointing that out. As a best practice, we advice you to always
use the latest release of LAM.
You can get the latest version (LAM/MPI-7.0.4) from
http://www.lam-mpi.org/7.0/download.php
Anju
>
> -----Original Message-----
> From: lam-bounces_at_[hidden] [mailto:lam-bounces_at_[hidden]] On Behalf Of Prabhanjan Kambadur
> Sent: Friday, April 16, 2004 10:44 AM
> To: General LAM/MPI mailing list
> Subject: Re: LAM: Help: MPI_Irecv and pthreads.
>
>
> Hi,
>
> LAM is not yet thread-safe. To quote a general rule of thumb, LAM can be
> used with multi-threaded applications as long as all the LAM library calls
> are restricted to a single thread or by using a global mutex which locks
> accesses to LAM. Clearly, you are issuing LAM library calls in more than
> one thread and so the problem.
>
> Please see the FAQ for more details:
> http://www.lam-mpi.org/faq
>
> regards,
> Anju.
>
>
> On Thu, 15 Apr 2004, Rodrigo Porfirio
> da Silva Sacchi wrote:
>
> > I am having many difficulties with the use of threads for act of receiving of
> > messages in the LAM-MPI.
> >
> > I'm working with lam-mpi version 7.0 and sending messages with different types
> > (tags equal to 0, 1, 2, 3 and 4). For each tag, I use one thread (pthread.h) for
> > receiving. I do not know because much SIGSEGVs happens and do not know as to
> > solve its.
> >
> > I imagine that the problem is in the use of threads for reception of messages,
> > therefore the codes it are and inside of threads they are correct.
> >
> > Somebody can help me?
> >
> > Thanks.
> >
> > Rodrigo Sacchi.
> > rpss_at_[hidden]
> >
> > ----------------------------------------------------------
> > Departamento de Computação e Estatística (www.dct.ufms.br)
> > Universidade Federal de Mato Grosso do Sul (www.ufms.br)
> > _______________________________________________
> > This list is archived at http://www.lam-mpi.org/MailArchives/lam/
> >
>
> _______________________________________________
> This list is archived at http://www.lam-mpi.org/MailArchives/lam/
>
> _______________________________________________
> This list is archived at http://www.lam-mpi.org/MailArchives/lam/
>
|