yade-dev team mailing list archive
-
yade-dev team
-
Mailing list archive
-
Message #03253
Re: yade parallel problem
http://bazaar.launchpad.net/%7Eyade-dev/yade/trunk/annotate/head%3A/core/main/main.py.in#L67
Are those lines in core/main/main.py.in work exact as we await?
if opts.threads:
os.environ['OMP_NUM_THREADS']=str(opts.threads)
______________________________
Anton Gladkyy
2010/2/2 Anton Gladky <gladky.anton@xxxxxxxxx>
> Hmm, it seems, that
> OMP_NUM_THREADS=1
> and
> --threads=1 or -j 1
>
> are not the same.
>
> Also, because of this, !OMP_NUM_THREADS does not work now in -multy
> version.
>
> ______________________________
>
> Anton Gladkyy
>
>
> 2010/2/1 Václav Šmilauer <eudoxos@xxxxxxxx>
>
>
>> >
>> > "OMP_NUM_THREADS=4 ./yade" is exactly the same as --threads or -j?
>>
>> Oh yes, see core/main/main.py.in:66
>>
>> if opts.threads:
>> os.environ['OMP_NUM_THREADS']=str(opts.threads)
>>
>> I will add the equivalence information to the option help.
>>
>> v
>>
>>
>>
>> _______________________________________________
>> Mailing list: https://launchpad.net/~yade-dev<https://launchpad.net/%7Eyade-dev>
>> Post to : yade-dev@xxxxxxxxxxxxxxxxxxx
>> Unsubscribe : https://launchpad.net/~yade-dev<https://launchpad.net/%7Eyade-dev>
>> More help : https://help.launchpad.net/ListHelp
>>
>
>
Follow ups
References