yade-users team mailing list archive
-
yade-users team
-
Mailing list archive
-
Message #08230
Re: [Question #235815]: Importing yade to use within python
Question #235815 on Yade changed:
https://answers.launchpad.net/yade/+question/235815
Jan Stránský posted a new comment:
Hi Alexander,
watching yade executable and your last comment, try
os.environ['OMP_NUM_THREADS'] = '4'
somewhere at the beginning of your script
cheers
Jan
2013/9/18 Alexander Eulitz [Eugen]
<question235815@xxxxxxxxxxxxxxxxxxxxx>
> Question #235815 on Yade changed:
> https://answers.launchpad.net/yade/+question/235815
>
> Alexander Eulitz [Eugen] posted a new comment:
> Hi Jan,
> no this does not seem to work.
> I added this line in my simulation script that is called with python
> mySim.py
> print 'number of cores:', os.environ['OMP_NUM_THREADS']
>
> First I start the script without exporting the OMP, second I did a
> suggested by you.
> It produces number of cores: 1 in both cases
>
> --
> You received this question notification because you are a member of
> yade-users, which is an answer contact for Yade.
>
> _______________________________________________
> Mailing list: https://launchpad.net/~yade-users
> Post to : yade-users@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~yade-users
> More help : https://help.launchpad.net/ListHelp
>
--
You received this question notification because you are a member of
yade-users, which is an answer contact for Yade.