[parsec-users] Bind CPUs to threads in SPLASH-2 benchmark

kishore kumar kishoreguptaos at gmail.com
Wed Apr 23 13:11:40 EDT 2014


I think that the way you are binding threads is incorrect.  Search in
google for using sched_setaffinity(). See which function in your code
pthreads are calling. In that function you should grab their tid and bind
to sched_setaffinity().  See the man page of sched_setaffinity().

Best,
Kishore


On Wed, Apr 23, 2014 at 9:57 AM, shervin hajiamini
<hajamini_2006 at yahoo.com>wrote:

> Hi all,
>
> I am using parsec (version 3) and I want to run the SPLASH-2 benchmark
> (which is integrated in parsec 3.0) on Gem5 simulator. I need to bind (pin)
> the CPUs to the threads in the entire execution of a SPLASH-2 workload. I
> have tried using pthread ‘setaffinity’ for the binding but the simulation
> gives segmentation fault.
>
> I have attached ‘fft’ source code (fft.C) to this email wherein lines
> 461-472 show the statements I use for binding the cores to the threads. I
> greatly appreciate if anyone gives me a hint on how I should correctly
> implement the binding for SPLASH-2.
>
> Thank you very much,
> Shervin
>
>
> _______________________________________________
> parsec-users mailing list
> parsec-users at lists.cs.princeton.edu
> https://lists.cs.princeton.edu/mailman/listinfo/parsec-users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cs.princeton.edu/pipermail/parsec-users/attachments/20140423/10092fa9/attachment.htm>


More information about the parsec-users mailing list