Madgraph gets very slow with several instances
Hello,
I'm working with MG5 to calculate Cross-sections in 2 Higgs doublet models. Since I have a lot of parameter points, i am trying to run several instances of mg5 at the same time with MPI on multiple cpus. However, if I increase the number of processes, the MadGraph runtimes (process generation and launch) are getting much slower. For example: with n=50. The Cross-section calculation takes around 30-40 seconds. If I increase n=500, then the same calculations take 200-300 seconds on average. I don't know, what is causing this behaviour. I will try to describe my steps with as much detail as possible. MadGraph is Running in the Run_mode 0 (single maschine) I thought it means single core.
Now I start N instances with MPI.
I control mg5 with python subprocess (mg5 proc_card.dat)
Each instance generates the process "e+ e- > z h2 h2" and outputs it into its own folder.
Then I launch them with parameter_cards from spectrum files.
Now if I measure the time spend on the generation and cross-section calculation, it increases a lot with increasing n, even though I would expect the different MPI processes to be independent of each other.
I am using several machines with 20 cores each. I am measuring only the mg5 runtimes, without the MPI communication (sending cross-sections, parameters etc.)
Maybe someone can help me to resolve this issue.
Greetings
Daniel
Question information
- Language:
- English Edit question
- Status:
- Answered
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
Can you help with this problem?
Provide an answer of your own, or ask Daniel Schieber for more information if necessary.