- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
We are experimenting in using OpenMP in "real-time" Audio code on OSX. We would expect worker threads started by OpenMP for a parallel region to get the priority of the master thread (in our case a "time-constraint" thread) but this is not the case.
It this a known problem?
Thanks.
Stephane Letz
Link Copied
3 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Stephane,
I don't think we'll be able to help here, since this forum is focused on cluster applications, but I'm moving your question to the threading forum. Perhaps they'll be able to help you with your query.
Regards,
~Gergana
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
AFAIK OpenMP lacks any priority-controlling tools. OMP is desinged as a relatively high-level API for multi-processing, particularly parallel computations; not for general-purpose threads. I'm afraid such details are implementation-dependent.
If you need priorities you should use a lower-level library, like Pthreads or native threads of your OS.
If you need priorities you should use a lower-level library, like Pthreads or native threads of your OS.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Without full knowledge of the situation, I would expect the OpenMP threads to get the priority of the process from which OpenMP is first invoked. If a thread were opened directly outside OpenMP, e.g. by pthreads, I suppose OpenMP would not be aware of its priority nor would it count it when determining how many threads to open or which affinities to set. If you started OpenMP threads from within a thread, if OpenMP were aware of the parent thread, it would not even use multiple threads unless OMP_NESTED were set.
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page