← Back to team overview

yade-users team mailing list archive

Re: How to run the simulation in 1 thread

 

> 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
1 3.4
2 3.4
3 3.4

Best, Vaclav




Follow ups

References