This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [gomp] RFC: GOMP_CPU_AFFINITY


On Fri, May 19, 2006 at 11:37:01AM -0400, Jakub Jelinek wrote:
> The patch as is immediately binds the initial thread to the first CPU from
> the list if the env var is set, an alternative perhaps could be to only do
> that when the initial thread enters a parallel region and reset it to the
> old affinity mask when it leaves it, what do you think?

Nah, what you have is fine.

I'm not sure I see the real utility in it, since I don't
really believe the Sun claim that you'll see threads 
switching processors often.  But I suppose it doesn't
really add any overhead to go ahead and provide the
functionality.


r~


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]