← Back to team overview

yade-users team mailing list archive

Re: [Question #240608]: How to increase the computing scale in YADE

 

Question #240608 on Yade changed:
https://answers.launchpad.net/yade/+question/240608

    Status: Open => Answered

Klaus Thoeni proposed the following answer:
Hi,

firstly, if you just want to run one simulation batch mode makes not
really sense. Just run: yade -j4 yourscript.py where -j defines the
number of cores you want to use. You can use more than 4 cores but you
will hardly see an improvement.

Secondly, if you use yade's batch mode graphical support is deactivated,
therefore the warning no X rendering... You might want to introduce
something like:

isBatch=runningInBatch() # determines if the script is running in batch mode or not
if not isBatch: # 
	from yade import qt

Thirdly, there will be N/n simulations running at the same time if you
use yade's batch mode, i.e. yade-batch -j12 --job-threads=6 file.table
file.py will run 12/6=2 simulations at the same time independent how
many lines your table file has.

HTH
Klaus

-- 
You received this question notification because you are a member of
yade-users, which is an answer contact for Yade.