diff options
author | Roland Haas <rhaas@caltech.edu> | 2012-03-20 09:32:06 -0700 |
---|---|---|
committer | Barry Wardell <barry.wardell@gmail.com> | 2012-09-11 18:23:13 +0100 |
commit | 2d46435ded5de7b2466aad20f405c700751a61c7 (patch) | |
tree | e5eeeb3cf30d63d9f4cd1cae1c620b069e41578b /Carpet/Carpet/src/SetupGH.cc | |
parent | 4b5daec50c1db3c2926074337749bd1c4abada35 (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/Carpet/src/SetupGH.cc')
-rw-r--r-- | Carpet/Carpet/src/SetupGH.cc | 4 |
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); } |