Set the affinity. Only use 1 core of each module on bulldozer.
This commit is contained in:
parent
a1ead62f28
commit
6ae2f868fd
|
@ -492,7 +492,7 @@ static void disable_affinity(void) {
|
|||
|
||||
#ifndef USE_OPENMP
|
||||
for(i=0; i< count; i++){
|
||||
lprocmask[i] &= ((unsigned long *)&cpu_orig_mask[0])[i];
|
||||
lprocmask[i] &= common->avail[i];
|
||||
}
|
||||
#endif
|
||||
|
||||
|
@ -751,7 +751,7 @@ void gotoblas_affinity_init(void) {
|
|||
if (common -> num_nodes > 1) numa_mapping();
|
||||
|
||||
common -> final_num_procs = 0;
|
||||
for(i = 0; i < common -> avail_count; i++) common -> final_num_procs += popcount(common -> avail[i]);
|
||||
for(i = 0; i < common -> avail_count; i++) common -> final_num_procs += rcount(common -> avail[i]) + 1; //Make the max cpu number.
|
||||
|
||||
for (cpu = 0; cpu < common -> final_num_procs; cpu ++) common -> cpu_use[cpu] = 0;
|
||||
|
||||
|
|
Loading…
Reference in New Issue