← Back to team overview

yade-users team mailing list archive

Re: How to run the simulation in 1 thread

 

2009/8/5 Václav Šmilauer <eudoxos@xxxxxxxx>

>
> > Hi,
> > How can I add this parameter?
> > OMP_NUM_THREADS==1
>
> OMP_NUM_THREADS=1 yade-trunk ...
>
> or to apply it also to next invocations in the same shell (terminal)
>
> export OMP_NUM_THREADS=1
>
> Number of threads must be set when program starts (it seems; I wasn't
> able to change it at runtime, although there is a function provided for
> that)
>
> If you use yade-multi, columns prefixed with bang are passed as env vars
> to the process automatically:
>
> !OMP_NUM_THREADS some



What is the right syntax for that? I use in the first string

!OMP_NUM_THREADS 1

But it does not work:

File "./../bin/yade-current-multi", line 188, in <module>
    if head=='!OMP_NUM_THREADS': nSlots=int(values[l][col])
ValueError: invalid literal for int() with base 10: 'description'




>
> 1 3.4
> 2 3.4
> 3 3.4
>
> Best, Vaclav
>
>
> _______________________________________________
> Mailing list: https://launchpad.net/~yade-users<https://launchpad.net/%7Eyade-users>
> Post to     : yade-users@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~yade-users<https://launchpad.net/%7Eyade-users>
> More help   : https://help.launchpad.net/ListHelp
>

Follow ups

References