yade-users team mailing list archive
-
yade-users team
-
Mailing list archive
-
Message #08244
Re: [Question #235815]: Importing yade to use within python
Question #235815 on Yade changed:
https://answers.launchpad.net/yade/+question/235815
Bruno Chareyre posted a new comment:
I think I see the problem:
if opts.cores:
...
elif opts.threads: os.environ['OMP_NUM_THREADS']=str(opts.threads)
else: os.environ['OMP_NUM_THREADS']='1'
Since "opts" is empty in your case, it always go to the last case:
OMP=1.
Looking at how opts is defined, I wonder if it would not work simply by typing:
python importingScript.py -j32
Could you try that?
--
You received this question notification because you are a member of
yade-users, which is an answer contact for Yade.