Open MPI logo

Open MPI User's Mailing List Archives

  |   Home   |   Support   |   FAQ   |   all Open MPI User's mailing list

Subject: Re: [OMPI users] Processor affinitiy
From: Brian Taylor (spam.brian.taylor_at_[hidden])
Date: 2008-04-28 21:57:08


Jeff,

The utilBindThreadToCPU(x) function is part of a private framework,
CHUD.framework, that is installed in
/System/Library/PrivateFrameworks. Apple provides but does not
support this framework. Any part of it could be changed or removed in
future releases of CHUD without any notice or deprecation period.
Also, this framework cannot be relied upon to exist on every system
because CHUD is not distributed as part of Mac OS X - it is an
optional part of the Developer Tools.

The only reason I posted this was to point out that there **is** a way
to set CPU affinity on Mac OS X, just not through a supported API.

Brian

On Mon, Apr 28, 2008 at 7:36 PM, Jeff Squyres <jsquyres_at_[hidden]> wrote:
> Just curious -- in regards to utilBindThreadToCPU(x), why does the
> text say:
>
> "That function should never go in a shipping app, but it's useful
> for debugging."
>
>
>
>
> On Apr 28, 2008, at 4:30 PM, Brian Taylor wrote:
>
> > Actually, there is an unofficial processor affinity API on Mac OS X,
> > but it is supplied only with the CHUD framework. I suppose as a
> > further barrier to using this API in code outside of Apple, the header
> > files for this API are only available with the standalone CHUD
> > installer. See:
> > http://lists.apple.com/archives/xcode-users/2005/May/msg00939.html
> >
> > There is a blog posting that describes how to use this API here:
> > http://ridiculousfish.com/blog/archives/2007/02/17/barrier/
> >
> > Hope that helps,
> > Brian
> > _______________________________________________
> > users mailing list
> > users_at_[hidden]
> > http://www.open-mpi.org/mailman/listinfo.cgi/users
>
>
> --
> Jeff Squyres
> Cisco Systems
>
>
> _______________________________________________
> users mailing list
> users_at_[hidden]
> http://www.open-mpi.org/mailman/listinfo.cgi/users
>