Re: openmp support?
Re: openmp support?
- Subject: Re: openmp support?
- From: Army Research Lab <email@hidden>
- Date: Thu, 22 May 2008 15:00:44 -0400
- Thread-topic: openmp support?
On 5/22/08 2:22 PM, "George Warner" <email@hidden> wrote:
> On Thu, 22 May 2008 08:41:01 -0400, Army Research Lab <email@hidden>
> wrote:
>> I'm sitting at a Tiger machine right now, so I can't check this on
>> Leopard...
>>
>> Does Leopard support OpenMP ( http://openmp.org/wp/ )?
>
> IIRC we added built-in OpenMP support in 10.4; it was available from 3rd
> parties prior to 10.4. See:
> <http://developer.apple.com/hardwaredrivers/hpc/mpionmacosx.html>.
>
>> I'd like to compare how it behaves compared to pthreads...
>
> This really depends on the problem you are trying to solve... FYI: OpenMP is
> built on pthreads so I don't think you'll see better thread performance but
> you might see better IPC and/or signaling. Overall I think that it's there
> for compatibility more than anything else (YOMV ;-).
Well, if its built on pthreads, then never mind! :-)
The reason I got interested in it in the first place wasn't to simplify my
life (I actually like pthreads!), but because of something I saw about
optimizations with OpenMP that aren't necessarily available with plain
pthreads. Namely, since OpenMP is compiler supported, the compiler would be
free to do cooperative multithreading without locks. In short, fibers
( http://en.wikipedia.org/wiki/Fiber_(computer_science) ). Any idea if
those kinds of optimizations are in the plans?
BTW, how does OpenMP interact with Cocoa? Do we just follow the standard
guidelines, and treat the master thread as the main thread?
Thanks,
Cem Karan
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden