gomp-discuss
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Gomp-discuss] Organization of libgomp source code


From: Biagio Lucini
Subject: Re: [Gomp-discuss] Organization of libgomp source code
Date: Tue, 18 Feb 2003 17:11:04 +0000 (GMT)

On 18 Feb 2003, Steven Bosscher wrote:

> I was more thinking:
> a) At startup (initialization), read the environment, and
>    set the default if the environment variable is not set.
> b) The omp_set_num_threads () (?) function can adjust the
>    default at runtime.
> c) Use the clause value for the OpenMP functions as required.
>    If the clause is absent, the compiler sets the num_threads
>    value to, say, -1, and the functions use the default.
> 
> So, the defaults are global variables, and there is a local value for
> each parallel region, which is either the default, or the number from
> the num_threads clause.
> 

You won't believe that, but apart from the details of the implementation I
was trying to say almost the same things. Thanks for having put everything
in better understandable words :-)

Biagio





reply via email to

[Prev in Thread] Current Thread [Next in Thread]