Open MPI logo

Open MPI User's Mailing List Archives

  |   Home   |   Support   |   FAQ   |   all Open MPI User's mailing list

Subject: Re: [OMPI users] Regarding the Pthreads
From: Jeff Squyres (jsquyres_at_[hidden])
Date: 2012-09-06 08:03:06


Your question is somewhat outside the scope of this list. Perhaps people may chime in with some suggestions, but that's more of a threading question than an MPI question.

Be warned that you need to call MPI_Init_thread (not MPI_Init) with MPI_THREAD_MULTIPLE in order to get true multi-threaded support in Open MPI. And we only support that on the TCP and shared memory transports if you built Open MPI with threading support enabled.

On Sep 5, 2012, at 2:23 PM, seshendra seshu wrote:

> Hi,
> I am learning pthreads and trying to implement the pthreads in my quicksort program.
> My problem is iam unable to understand how to implement the pthreads at data received at a node from the master (In detail: In my program Master will divide the data and send to the slaves and each slave will do the sorting independently of The received data and send back to master after sorting is done. Now Iam having a problem in Implementing the pthreads at the slaves,i.e how to implement the pthreads in order to share data among the cores in each slave and sort the data and send it back to master.
> So could anyone help in solving this problem by providing some suggestions and clues.
>
> Thanking you very much.
>
> --
> WITH REGARDS
> M.L.N.Seshendra
> _______________________________________________
> users mailing list
> users_at_[hidden]
> http://www.open-mpi.org/mailman/listinfo.cgi/users

-- 
Jeff Squyres
jsquyres_at_[hidden]
For corporate legal information go to: http://www.cisco.com/web/about/doing_business/legal/cri/