OpenMP options and threading models
Mark Mitchell
mark@codesourcery.com
Fri Oct 22 19:30:00 GMT 2004
Tom Tromey wrote:
>>>>>>"Scott" == Scott Robert Ladd <coyote@coyotegulch.com> writes:
>>>>>>
>>>>>>
>
>Scott> Which threading model should OpenMP use?
>
>Other target libraries like libjava just use the thread model
>determined by --enable-threads. This makes sense since that option
>controls what threading primitives are used by libgcc.
>
>So, IMO, this should be the default. Adding some other option may
>make sense depending on the needs of OpenMP.
>
>
I tend to agree -- with the caveat that it might also be reasonable for
the OpenMP library to use (for example's sake) POSIX threads directly,
and therefore work only with POSIX threads. In that case, the compiler
should just not build the OpenMP library if configured with non-POSIX
threads. I wouldn't commit the OpenMP library to working with the
gthr.h stuff -- but it would be nice if it did, I suppose.
--
Mark Mitchell
CodeSourcery, LLC
(916) 791-8304
mark@codesourcery.com
More information about the Gcc
mailing list