← Back to team overview

yade-users team mailing list archive

[Question #667700]: How to get the number of threads the simulation is using

 

New question #667700 on Yade:
https://answers.launchpad.net/yade/+question/667700

Hello everyone.
I want to know how to get the number of threads the simulation is using. For instance if you use sth like yade -j 20 gra.py, you don't know if all 20 threads are used.
or if you use yade -j 16 --performance sth like following will be shown:

Welcome to Yade 2018.02b 
4416
number of bodies 4428
WARN  /home/pqji/data/MyYade/trunk/pkg/common/InsertionSortCollider.cpp:76 insertionSortParallel: Parallel insertion: only 13 thread(s) used. The number of bodies is probably too small for allowing more threads, or the geometry is flat. The contact detection should succeed but not all available threads are used.

So is there any funtions to print the number of  threads the simulation is using in python script??

-- 
You received this question notification because your team yade-users is
an answer contact for Yade.