diff options
author | Erik Schnetter <schnetter@gmail.com> | 2012-03-16 21:20:35 -0400 |
---|---|---|
committer | Erik Schnetter <schnetter@gmail.com> | 2012-03-16 21:20:35 -0400 |
commit | a6eb7908cafdeec1cd5c5ab4d25097a6c0c0a81c (patch) | |
tree | 00e721c18a06797d38ba9bba0a74f4e7c89a42bd | |
parent | 9ec754a67361a7d20f4f348747cddc9948fd3783 (diff) |
Carpet: Don't use CPU_COUNT
-rw-r--r-- | Carpet/Carpet/src/SetupGH.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Carpet/Carpet/src/SetupGH.cc b/Carpet/Carpet/src/SetupGH.cc index 1afeffe11..efc931215 100644 --- a/Carpet/Carpet/src/SetupGH.cc +++ b/Carpet/Carpet/src/SetupGH.cc @@ -360,10 +360,11 @@ namespace Carpet { assert (not ierr); ostringstream buf; - int const num_cores = CPU_COUNT(&mask); + int num_cores = 0; bool isfirst = true; int first_active = -1; for (int n=0; n<CPU_SETSIZE; ++n) { + if (CPU_ISSET(n, &mask)) ++num_cores; if (first_active == -1 and CPU_ISSET(n, &mask)) { if (not isfirst) buf << ", "; isfirst = false; |