[mvapich-discuss] Process affinity setting

Arnold, Galen Wesley gwarnold at illinois.edu
Fri Feb 24 14:31:39 EST 2012


Vaibhav,

I use syntax like:

numactl --cpunodebind $node

with mpirun, but yeah what you've shown looks reasonable and should work.

You can also force the issue and set the affinity from within the code.  It takes just a few system calls.  For an example of that see:

http://www.ncsa.illinois.edu/UserInfo/Resources/Hardware/DellNVIDIACluster/Doc/Architecture.html#Affinity
http://www.ncsa.illinois.edu/UserInfo/Resources/Hardware/DellNVIDIACluster/Download/setaffinity_for_nvidia.tgz

-Galen

From: mvapich-discuss-bounces at cse.ohio-state.edu [mailto:mvapich-discuss-bounces at cse.ohio-state.edu] On Behalf Of vaibhav dutt
Sent: Friday, February 24, 2012 1:12 PM
To: mvapich-discuss at cse.ohio-state.edu
Subject: [mvapich-discuss] Process affinity setting

Hi,

I was wondering whether the command taskset works with mpirun in MVAPICH.
For example, mpirun -n 4 -hostfile hostfile.txt taskset -c 0,1  ./xyz.
I tried this but it did not work for me. The CPU mapping of MVAPICH apparently is not
working for me and processes are still migrating. Can anybody help me with this.

Thanks.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.cse.ohio-state.edu/pipermail/mvapich-discuss/attachments/20120224/329ca3f8/attachment.html


More information about the mvapich-discuss mailing list