I am running a MPI program and in my hostfile I have only one node. The node has 2 scokets, 8 physical cores each and the hyperthreading is disabled.
mpiexec -n 8 -f /pathtohostfile/host_file_test./a.out
I am using likwid to measure energy consumed by my program.
Question:
Since you have only one node, your 8 processes are all under control of the Linux scheduler, so, unless you use numactl
or something to pin them down, the OS will place them for best load balancing. And it may decide to migrate them. Look into numactl
and other "pinning" tools. hwloc
may also do it for you.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.