Hello, Thanks for your reply.
Regarding the *SE* mode, I had the following additional queries: 1. From your response to 2, I understand we can run multi-threaded (MT) programs with #threads limited to #cpus. If someone can provide confirmation on this, that'll be helpful. Please tell if there's any documentation regarding this. I saw a recent thread related to this: https://www.mail-archive.com/gem5-users@gem5.org/msg19331.html . Did this workout? 2. I want to run PARSEC benchmarks which utilize the pthread library. How do I integrate the benchmarks with m5threads? Overall, I want to get the per-thread statistics, so static scheduling (as you said in SE) works. Do tell if there's any other way to get this. 3. Has the simultaneous multi-threading (SMT) supported in SE mode become robust in later versions of gem5? https://gem5-users.gem5.narkive.com/DCqFpzOR/gem5-smt-in-se-mode Thanks, Prakhar On Mon, Oct 31, 2022 at 1:13 PM gabriel.busnot--- via gem5-users < gem5-users@gem5.org> wrote: > Hi Prakhar, > > A standard solution to 1 would be to use M5ops: > https://www.gem5.org/documentation/general_docs/m5ops/. That small > library enables you to call magic functions from your guest binary that > will trigger events in the host simulation environment. Namely, the > dumpresetstats op will likely do what you want. > > As for 2, from what I know, each new SW thread statically maps to a HW > thread (aka CPU core) until all CPUs are running a thread. At that point, > you can’t spawn any extra SW threads. In particular, there is no thread > scheduling in the sense of context switching support in SE mode and you > can’t over commit your simulated platform with more SW threads than you > have CPU threads. > > Best, > > Gabriel > _______________________________________________ > gem5-users mailing list -- gem5-users@gem5.org > To unsubscribe send an email to gem5-users-le...@gem5.org >
_______________________________________________ gem5-users mailing list -- gem5-users@gem5.org To unsubscribe send an email to gem5-users-le...@gem5.org