Using CPU cores for a simulation

Asked by Alireza Sadeghi

Hello

I want to use all of the CPU cores which I have for my simulation, but I don't know how can I do this?Should I write something in the python code?or in the run section, should I add something?

Thank you very much for your help in advance.

Bests,

Alireza

Question information

Language:
English Edit question
Status:
Solved
For:
Yade Edit question
Assignee:
No assignee Edit question
Solved by:
Alireza Sadeghi
Solved:
Last query:
Last reply:
Revision history for this message
Jérôme Duriez (jduriez) said :
#1

Hi,

If your computer has N core available, a first step is to launch

yade -j N # see yade -h and https://yade-dev.gitlab.io/trunk/introduction.html#starting-yade for the list of all options

Whether this will actually fully use the N cores depends on the Engines (and the underlying source code) you call in your simulation.

Revision history for this message
Alireza Sadeghi (asadeghime) said :
#2

Hello dear Jerome,

Thank you very much for your help.

Best Regards

Alireza