On Thu, Mar 18, 2010 at 12:57 PM, Roy Stogner <[email protected]> wrote:
>
> I'd like to instead just "enforce" the current restrictions - set a
> Threads::_now_multithreaded bool to true at the start of and false at
> the end of any Threads::parallel_* call, and then do a
> assert(!Threads::now_multithreaded()) in every Parallel:: call.

This sounds like a good approach.  I have no idea what happens if you
accidentally make an MPI call in a threaded section of code...
probably nothing good, so it's best to avoid it.

-- 
John

------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Libmesh-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/libmesh-devel

Reply via email to