[gem5-users] Re: Writing a script to run multiple simulations at once

2023-06-14 Thread Derek Christ via gem5-users
Hi Jason, it seems like this is exactly what I was looking for. Awesome to hear that things will get more user friendly in next versions. Best Derek Am 14.06.23 um 20:05 schrieb Jason Lowe-Power via gem5-users: Hi all, You can use python multiprocessing with gem5. See https://github.com/gem

[gem5-users] Re: Writing a script to run multiple simulations at once

2023-06-14 Thread Jason Lowe-Power via gem5-users
Hi all, You can use python multiprocessing with gem5. See https://github.com/gem5/gem5/tree/develop/src/python/gem5/utils/multiprocessing for details. So, in theory, you can create scripts such that you can run `./gem5 run.py` which will run a set of different experiments. You could potentially e

[gem5-users] Re: Writing a script to run multiple simulations at once

2023-06-14 Thread Eliot Moss via gem5-users
On 6/14/2023 11:30 AM, Derek Christ wrote: Hello Eliot Moss, [one ell please] a shared Python file with parameter settings sounds useful. What I meant with running gem5 without the gem5 executable was to use the compiled library directly from the Python configuration script. From wh

[gem5-users] Re: Writing a script to run multiple simulations at once

2023-06-14 Thread Derek Christ via gem5-users
Hello Elliot Moss, a shared Python file with parameter settings sounds useful. What I meant with running gem5 without the gem5 executable was to use the compiled library directly from the Python configuration script. From what I have seen, the gem5 executable sets up some internal state and th

[gem5-users] Re: Writing a script to run multiple simulations at once

2023-06-14 Thread Eliot Moss via gem5-users
On 6/14/2023 2:32 AM, Derek Christ via gem5-users wrote: Hello, maybe I have missed something in the official docs, but I'm not sure how to run multiple simulations with different parameters concurrently to speed up the process. What I have done is I created a Python script that sets environm

[gem5-users] Re: Writing a script to run multiple simulations at once

2023-06-14 Thread Derek Christ via gem5-users
Hi Ayaz, thanks for your quick response. Yeah, argparse is one possibility. But it is cumbersome and bugprone to implement a new option for every single configuration parameter I want to vary. Also, I would need a way not only to parse the options, but also to generate the gem5 command with t

[gem5-users] Re: Writing a script to run multiple simulations at once

2023-06-14 Thread Ayaz Akram via gem5-users
Hi Derek, I am not sure if I have understood your question correctly, but the gem5 interface is basically a Python run script in which you can add parameters as well (that can be set from the command line or in shell scripts). For example, you can look at the following link to see how `argparse` i