[parsec-users] Binding threads to cores

Carter, Nicholas P nicholas.p.carter at intel.com
Mon Feb 10 00:25:09 EST 2014


I'd suggest that you look at the Holocaust package for binding threads to hardware resources.  It provides a more human comprehensible interface than many of the threading packages and is portable.  I haven't used the p thread binding functions much, so can't comment on the code you sent.


Sent from my Verizon Wireless 4G LTE smartphone


-------- Original message --------
From: shervin hajiamini
Date:02/09/2014 8:20 PM (GMT-08:00)
To: parsec-users at lists.cs.princeton.edu
Subject: [parsec-users] Binding threads to cores

Hi all,

I apologize to bring up this question here since it's not related to the parsec benchmarks but I didn't find any other relevant resource to ask my question from.

I want to bind (pin) the threads to cores in SPLASH-2 benchmarks and I want to do this inside the source code. In the attached is fft.C file wherein lines 457-467 I use 'pthread_setaffinity_np' for binding threads to cores.

I appreciate if anybody could let me know whether my implementation is correct or how I should implement the binding otherwise. As 'pthread_create' is already generated after compiling 'fft.C' file, I don't know if I should have my own 'pthread_create' function (line #467).

Thank you very much,
Shervin Amini


More information about the parsec-users mailing list