[parsec-users] CPU Affinity

abhisekpan at gmail.com abhisekpan at gmail.com
Wed Sep 7 10:22:57 EDT 2011


Hi,

I am trying to restrict the cores on which the benchmarks run, and I am
doing the following:

I am running parsec on simics on a 16 core simulated linux-amd64 system.
When I am running canneal (say) with 4 threads, I am first setting the set
affinity hook (it  was enabled by default anyway). Then I am setting the
environment variables PARSEC_CPU_NUM and PARSEC_CPU_BASE. The commands in
the script are:


eval_cli_line('con0.input("mkdir ~/phooks_run_small \n")')
eval_cli_line('con0.input("cd parsec-2.1 \n")')
eval_cli_line('con0.input("PARSEC_CPU_NUM=4 \n")')
eval_cli_line('con0.input("PARSEC_CPU_BASE=0 \n")')
eval_cli_line('con0.input("./bin/parsecmgmt -a run -p canneal -n 4 -i
simsmall -c gcc-hooks -d ~/phooks_run_small\n")')

So this would mean canneal runs on cores 0-3 ? But, when I track the binary
through a tracker in simics, the program runs in other cores as well.

Am I missing something? Any pointers would be highly appreciated!

Thank you very much!
-- 
Abhisek
Live Long and Prosper
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cs.princeton.edu/pipermail/parsec-users/attachments/20110907/689cae3f/attachment.html>


More information about the parsec-users mailing list