aboutsummaryrefslogtreecommitdiff
path: root/Carpet
diff options
context:
space:
mode:
authorRoland Haas <rhaas@caltech.edu>2012-03-20 09:32:06 -0700
committerRoland Haas <rhaas@caltech.edu>2012-03-20 09:32:06 -0700
commit90ee72853e24dbb4afe47edd1730b2c0e00d31a8 (patch)
tree13bac72654a7e38eff047074354da7265d895785 /Carpet
parentb10f2c4dc6c7989d2e65f52f1e5c5aa4fb2284d7 (diff)
Backed out changeset 74ddd545dbb1
I give up. I cannot get this right today. The previous patch would have allowed a thread to switch sockets which is undesirable.
Diffstat (limited to 'Carpet')
-rw-r--r--Carpet/Carpet/src/SetupGH.cc4
1 files changed, 1 insertions, 3 deletions
diff --git a/Carpet/Carpet/src/SetupGH.cc b/Carpet/Carpet/src/SetupGH.cc
index 9e56e0878..da68b3162 100644
--- a/Carpet/Carpet/src/SetupGH.cc
+++ b/Carpet/Carpet/src/SetupGH.cc
@@ -356,9 +356,7 @@ namespace Carpet {
{
cpu_set_t cpumask;
CPU_ZERO(&cpumask);
- for (int i=0; i<mynthreads; ++i) {
- CPU_SET(n0 + i, &cpumask);
- }
+ CPU_SET(n0 + omp_get_thread_num(), &cpumask);
int const ierr = sched_setaffinity(0, sizeof(cpumask), &cpumask);
assert (not ierr);
}