TBB and pthreads

TBB and pthreads

Iam looking for something to help me understand my program's pthread(s) section. The program right now runs on with pthread, butit appears to have many deadlocks.I used vtune to check for this and they - the deadlocks - appear to be there according to vtune. Anyway, the presence of pthreads is making the program loose it parallelism; so I want to remove the pthreads and replace with something else such as OPENMP, MPI or Cilk. But, of course, I must at first get rid of the pthreads.

Iunderstand pthreads, but I have little understanding of the specifics in the how they are used in my prgram. It is very complex.I thought that some software such as TBB could help in understanding howpthredas are used.

Can intel's Threaded Building Blocks do this?

Any help appreciated.

Newport_j

2 posts / 0 nouveau(x)
Dernière contribution
Reportez-vous à notre Notice d'optimisation pour plus d'informations sur les choix et l'optimisation des performances dans les produits logiciels Intel.

Deadlocks are not typically caused by threading model. Instead, they are caused by coding issues within the threading model. Migrating from one threading model to another would not remove the deadlock by design (but could as a side effect of you walking through your code). I would suggest you determine the cause of the deadlocks first, correct it/them, then consider porting to different thread model.

Jim Dempsey

www.quickthreadprogramming.com

Laisser un commentaire

Veuillez ouvrir une session pour ajouter un commentaire. Pas encore membre ? Rejoignez-nous dès aujourd’hui