From: Thomas Fuerle <fuerle@vipios.pri.univie.ac.at>
Newsgroups: comp.parallel.mpi
Subject: Re: Start Threads in MPI
Date: Tue, 15 Sep 1998 13:15:50 +0200
Organization: Vienna University, Austria
Message-Id: <35FE4C66.B8080E64@vipios.pri.univie.ac.at>
References: <35EFE6EF.F62842F7@csis.hku.hk>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit


Zheng Yu Liang wrote:

> Hi,
>
> We need start some  p_threads in mpi process. But when we start mpi with
> two nodes , only process 0 enter the first thread and halt when the
> thread return . Anyone know why? And can I call a mpi method in a
> thread?
>
> Our workstation is SMP with Linux 2.0.x , and mpich 1.1.0. Following is
> our program:
>

Hi, i'm fighting with the some similar problems in Linux.
I use now SIGUSR2 instead of SIGUSR1 in mpich 1.1.1 and if the below output
is the right output, we made it.

vipios3:[pthreads] >./postings
MPI_Init finish
pthread_init finish
thread computation finish
process end
process end
Number of Threads = 2
Estimation of pi is 3.141593
Execution time = 296 clocks
p0_5863:  p4_error: interrupt SIGSEGV: 11

vipios3:[pthreads] >mpirun -np 2 postings
MPI_Init finish
pthread_init finish
thread computation finish
process end
process end
Number of Threads = 2
Estimation of pi is 6.283185
Execution time = 596 clocks
MPI_Init finish
pthread_init finish
thread computation finish
process end
process end
p1_5948:  p4_error: interrupt SIGSEGV: 11
p0_5944:  p4_error: interrupt SIGSEGV: 11

vipios3:[pthreads] >

Regards, Tom

--
Thomas Fuerle
mailto:fuerle@vipios.pri.univie.ac.at
http://vipios.pri.univie.ac.at
Institute for Applied Computer Science and Information Systems
University of  Vienna, Rathausstr. 19/4, A-1010 Vienna, Austria
Tel: +43 1 4277 38423

"Don't hate yourself in the morning -- sleep till noon."

