[parsec-users] Per thread affinity in each benchmark

Yungang Bao ybao at CS.Princeton.EDU
Fri Apr 13 19:51:08 EDT 2012


Hi Avadh,

Thank you very much for the patch. 

Best Regards,
Yungang

----- Original Message -----
From: "avadh patel" <avadh4all at gmail.com>
To: parsec-users at lists.cs.princeton.edu
Sent: Friday, April 13, 2012 10:24:42 AM
Subject: [parsec-users] Per thread affinity in each benchmark


Hi, 


I recently saw email that you are planning to release 3.0 version. 
I have one patch that might help lot of people that uses Parsec with Marss like simulators. 
This patch adds 'per-thread-affinity' to each benchmark. In current release when 
'hooks' is used, all threads are given a range of CPUs for affinity which introduce lot of 
run-by-run variation in simulation runs. 


This patch try to fix each thread to a CPU instead of range of CPUs which reduces 
simulation run-by-run variation by eliminating thread-scheduling randomness. 


To enable per thread affinity, add -DENABLE_THREAD_AFFINITY to CFLAGS and 
CXXFLAGS in .bldconf files. Also set 'PARSEC_CPU_NUM' environment variable 
to number of CPUs you want to allocate for all threads of benchmark. 


Thanks, 
Avadh 




_______________________________________________
parsec-users mailing list
parsec-users at lists.cs.princeton.edu
https://lists.cs.princeton.edu/mailman/listinfo/parsec-users


More information about the parsec-users mailing list