gem5-users@gem5.org

The gem5 Users mailing list

View all threads

Run multi-program workload in SE mode

TP
Theodoros Papavasiliou
Wed, Nov 1, 2023 11:59 AM

Hello everyone,

I would like to ask 2 questions:

  1. Is it possible to run different workloads/binaries in different CPU
    cores in SE mode? That is, in each core in a multi-core system, I want to
    run a different workload/binary.

  2. If (1) is possible, is there a way to handle external file dependencies
    that binaries may have? For example, in spec2017, for some benchmarks, the
    executable needs to read files that are in the same directory as it. In a
    single-program simulation, I can run gem5 from the benchmark directory. In
    a multi-program simulation is this somehow possible?

Thank you,
Theodoros Papavasileiou

Hello everyone, I would like to ask 2 questions: 1) Is it possible to run different workloads/binaries in different CPU cores in SE mode? That is, in each core in a multi-core system, I want to run a different workload/binary. 2) If (1) is possible, is there a way to handle external file dependencies that binaries may have? For example, in spec2017, for some benchmarks, the executable needs to read files that are in the same directory as it. In a single-program simulation, I can run gem5 from the benchmark directory. In a multi-program simulation is this somehow possible? Thank you, Theodoros Papavasileiou
B
bbruce@ucdavis.edu
Mon, Nov 13, 2023 1:35 PM

I don’t believe it’s possible to run multiple processes in SE mode. What you can do is have a single muli-threader process. You could construct a single binary which utilizes pthreads and have each thread it run something different, though this could prove difficult to do.

I don’t believe it’s possible to run multiple processes in SE mode. What you can do is have a single muli-threader process. You could construct a single binary which utilizes pthreads and have each thread it run something different, though this could prove difficult to do.