yade-users team mailing list archive
-
yade-users team
-
Mailing list archive
-
Message #08238
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:
Problem here I think:
> from yadePythonImport import *
> os.environ['OMP_NUM_THREADS'] = '32'
It is often helpful to read yade executable when dealing with such
thing. It says this (L98):
/# OpenMP env variables must be se before loading yade libs ("import
yade" below)//
//# changes have no effeect after libgomp initializes//
/
Try:
os.environ['OMP_NUM_THREADS'] = '32'
from yadePythonImport import *
Bruno
--
You received this question notification because you are a member of
yade-users, which is an answer contact for Yade.