[parsec-users] How to pin threads to cores

Binh Q. Pham binhpham at cs.rutgers.edu
Thu Jul 25 15:59:54 EDT 2013

Hi Shervin,
You can search for pthread_setaffinity_np, and search in the code for the place where a new thread is launched to insert this in.
I believe gem5 has a PARSEC set up that is ready to run inside the simulator , so you should check first if there is already a way to bind threads to cores in gem5. If there is anything specific to gem5, I think you better post it there.

On Thu, 25 Jul 2013 11:43:53 -0700 (PDT)
 shervin hajiamini <hajamini_2006 at yahoo.com> wrote:
> Hi all,
> I want to run parsec workloads on GEM5 simulator. Can anybody please
> let me know how I can pin down a thread to a specific core? Do I need
> to modify parsec source codes? If so, where shall I modify the code?
> Is there any way to modify .rcS file of a benchmark for the purpose
> of pinning down the threads to cores?
> I would appreciate any help,
> Shervin

More information about the parsec-users mailing list