Commit 5cdb1ff5 authored by Simon Marlow's avatar Simon Marlow
Browse files

Fix bug in setThreadAffinity() (Linux)

parent 77998ef4
......@@ -224,7 +224,7 @@ setThreadAffinity (nat n, nat m)
nproc = getNumberOfProcessors();
CPU_ZERO(&cs);
for (i = n; i < nproc; i+=m) {
CPU_SET(n, &cs);
CPU_SET(i, &cs);
}
sched_setaffinity(0, sizeof(cpu_set_t), &cs);
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment