OpenMP and fork

Pierre Léonard pierre.leonard@jouy.inra.fr
Tue Aug 9 08:49:00 GMT 2011


Hi  Ian,
> It's really hard to use fork with a threaded program on Unix. The two 
> different ideas do not play well together. I'm not aware of any plans 
> to make the specific case of OpenMP work better when using fork. Ian 
Yes i known the threads of a process are not inherited with the fork() 
system call. May be It would be usefull to write an "openmp_reset" in 
the son process.

I have read that the ICC has not that problem with fork, I wil trie.

Thank's a lot.

Sincerely.

-- 
Pierre Léonard
Institut Micalis
(Microbiologie de l’Alimentation au service
de la Santé humaine)
Bat-440
Centre de recherche de Jouy en Josas.
Domaine de Vilvert
78 352 Jouy en Josas cedex
France
01 34 65 29 78




More information about the Gcc-help mailing list