gem5-users@gem5.org

The gem5 Users mailing list

View all threads

Multi-threading in Gem5

AB
Aritra Bagchi
Mon, Nov 13, 2023 4:56 PM

Hi,

Can anyone share the methodology for running multi-threaded programmes in
Gem5 FS mode with the Ruby memory model? To be specific, I am interested in
the PARSEC benchmark suite. I have the following doubt:

Let 'A' be a programme from the PARSEC suite. Let there be 8 cores in the
simulated Gem5 system. How can we execute 'K' (K = 8) threads of 'A' on 8
available Gem5 cores? Is 'K' configurable? Can we choose any value for 'K'?

Thanks in advance,
Aritra

Hi, Can anyone share the methodology for running multi-threaded programmes in Gem5 FS mode with the Ruby memory model? To be specific, I am interested in the PARSEC benchmark suite. I have the following doubt: Let 'A' be a programme from the PARSEC suite. Let there be 8 cores in the simulated Gem5 system. How can we execute 'K' (K = 8) threads of 'A' on 8 available Gem5 cores? Is 'K' configurable? Can we choose any value for 'K'? Thanks in advance, Aritra
HP
Harshil Patel
Tue, Nov 14, 2023 12:09 AM

Hi Aritra,
I am not entirely certain about the specifics of what you want to do but my
assumption is that you intend to execute PARSEC with multiple threads in
gem5. The process should align with how you would run PARSEC on a physical
hardware machine.

Regards,
Harshil Patel.

On Mon, Nov 13, 2023 at 9:04 AM Aritra Bagchi via gem5-users <
gem5-users@gem5.org> wrote:

Hi,

Can anyone share the methodology for running multi-threaded programmes in
Gem5 FS mode with the Ruby memory model? To be specific, I am interested in
the PARSEC benchmark suite. I have the following doubt:

Let 'A' be a programme from the PARSEC suite. Let there be 8 cores in the
simulated Gem5 system. How can we execute 'K' (K = 8) threads of 'A' on 8
available Gem5 cores? Is 'K' configurable? Can we choose any value for 'K'?

Thanks in advance,
Aritra


gem5-users mailing list -- gem5-users@gem5.org
To unsubscribe send an email to gem5-users-leave@gem5.org

Hi Aritra, I am not entirely certain about the specifics of what you want to do but my assumption is that you intend to execute PARSEC with multiple threads in gem5. The process should align with how you would run PARSEC on a physical hardware machine. Regards, Harshil Patel. On Mon, Nov 13, 2023 at 9:04 AM Aritra Bagchi via gem5-users < gem5-users@gem5.org> wrote: > Hi, > > Can anyone share the methodology for running multi-threaded programmes in > Gem5 FS mode with the Ruby memory model? To be specific, I am interested in > the PARSEC benchmark suite. I have the following doubt: > > Let 'A' be a programme from the PARSEC suite. Let there be 8 cores in the > simulated Gem5 system. How can we execute 'K' (K = 8) threads of 'A' on 8 > available Gem5 cores? Is 'K' configurable? Can we choose any value for 'K'? > > > Thanks in advance, > Aritra > > _______________________________________________ > gem5-users mailing list -- gem5-users@gem5.org > To unsubscribe send an email to gem5-users-leave@gem5.org >
张聪武
Tue, Nov 14, 2023 12:11 AM

Hi Aritra,

There is a parameter for parsec benchmark to choose how many threads to run program. It should be -n thread_num, here are some parsec examples: https://github.com/bamos/parsec-benchmark#more-examples.

For gem5, this parameter can be changed in configs/example/gem5_library/x86-parsec-benchmark.py.

Regards,

Congwu Zhang

-----Original Messages-----
From:"Aritra Bagchi via gem5-users" gem5-users@gem5.org
Sent Time:2023-11-14 00:56:46 (Tuesday)
To: "The gem5 Users mailing list" gem5-users@gem5.org
Cc: "Aritra Bagchi" bagchi95aritra@gmail.com
Subject: [gem5-users] Multi-threading in Gem5

Hi,

Can anyone share the methodology for running multi-threaded programmes in Gem5 FS mode with the Ruby memory model? To be specific, I am interested in the PARSEC benchmark suite. I have the following doubt:

Let 'A' be a programme from the PARSEC suite. Let there be 8 cores in the simulated Gem5 system. How can we execute 'K' (K = 8) threads of 'A' on 8 available Gem5 cores? Is 'K' configurable? Can we choose any value for 'K'?

Thanks in advance,
Aritra

Hi Aritra, There is a parameter for parsec benchmark to choose how many threads to run program. It should be `-n thread_num`, here are some parsec examples: https://github.com/bamos/parsec-benchmark#more-examples. For gem5, this parameter can be changed in `configs/example/gem5_library/x86-parsec-benchmark.py`. Regards, Congwu Zhang -----Original Messages----- From:"Aritra Bagchi via gem5-users" <gem5-users@gem5.org> Sent Time:2023-11-14 00:56:46 (Tuesday) To: "The gem5 Users mailing list" <gem5-users@gem5.org> Cc: "Aritra Bagchi" <bagchi95aritra@gmail.com> Subject: [gem5-users] Multi-threading in Gem5 Hi, Can anyone share the methodology for running multi-threaded programmes in Gem5 FS mode with the Ruby memory model? To be specific, I am interested in the PARSEC benchmark suite. I have the following doubt: Let 'A' be a programme from the PARSEC suite. Let there be 8 cores in the simulated Gem5 system. How can we execute 'K' (K = 8) threads of 'A' on 8 available Gem5 cores? Is 'K' configurable? Can we choose any value for 'K'? Thanks in advance, Aritra