I do not believe m5threads is necessary any longer, Brandon Potter’s work on 
adding dynamic linker/loader support to gem5 allows for you to dynamically load 
the host’s pthreads library. I also believe, although Brandon can correct me if 
I am wrong, that with some of the patches he currently has on RB that you no 
longer need to provision for the number of threads that you will need prior to 
running. I believe his patches for clone/exec allow this to happen dynamically.

-Tony

From: gem5-users [mailto:[email protected]] On Behalf Of Jason 
Lowe-Power
Sent: Sunday, November 20, 2016 12:22 PM
To: gem5 users mailing list <[email protected]>
Subject: Re: [gem5-users] Simulating multiprogrammed & multithreaded workloads 
in SE mode?

Hi Majid,

Yes. This is possible. To run multiple different processes, you can create 
multiple CPUs with multiple "LiveProcess" objects. For multi-threaded 
applications, I believe you need to have enough CPUs create (enough hardware 
contexts) and then link to m5threads instead of the pthreads library.

Hopefully this will get your started down the right path.

Jason

On Fri, Nov 18, 2016 at 1:48 AM Majid Namaki Shoushtari 
<[email protected]<mailto:[email protected]>> wrote:
I was wondering if there is a way to simulate multiprogrammed/multithreaded 
workloads in SE mode?
Just to clarify: I mean running for example two programs that spawn 4 threads 
each.

As I understand this is not possible with the current se.py script, but is it 
theoretically possible to run such simulations in SE mode?
If yes, could you please give some hints on how to modify se.py accordingly?

Thanks,
Majid
_______________________________________________
gem5-users mailing list
[email protected]<mailto:[email protected]>
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
_______________________________________________
gem5-users mailing list
[email protected]
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users

Reply via email to