How to use multi-cores in yade-batch mode

Asked by Leonard on 2020-02-24

Hi,

I'd like to ask that how to use multi-cores in yade-batch mode.

I tested <yade -j 8 script.py> and I can see with command <htop> that my 8 cores are fully used.

However, I tested <yade-batch -j 8 param.txt script.py>, I can only see 2 cores are used.

Do you have any ideas about this?

Thanks.

Leonard

Question information

Language:
English Edit question
Status:
Solved
For:
Yade Edit question
Assignee:
No assignee Edit question
Solved by:
Bruno Chareyre
Solved:
2020-02-25
Last query:
2020-02-25
Last reply:
2020-02-24

Hi,
I think it is answered in the batch section of documentation [1] and in the examples (examples/test/batch), else please tell us.
Bruno
[1] https://yade-dem.org/doc/user.html?highlight=batch#controlling-parallel-computation

Leonard (z2521899293) said : #2

Many thanks Bruno.

I also find an answer which may be helpful [1].

Cheers

Leonard

[1]https://answers.launchpad.net/yade/+question/679153

Leonard (z2521899293) said : #3

Thanks Bruno Chareyre, that solved my question.