aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErik Schnetter <schnetter@gmail.com>2012-03-16 21:26:02 -0400
committerErik Schnetter <schnetter@gmail.com>2012-03-16 21:26:02 -0400
commit45424e544a90f1eb86cdf9a4b465ed98e1119e94 (patch)
treee5e2b4b752d60483aa0a148317f9c91646999faf
parenta6eb7908cafdeec1cd5c5ab4d25097a6c0c0a81c (diff)
Carpet: Don't warn when there are more cores then threads
-rw-r--r--Carpet/Carpet/src/SetupGH.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/Carpet/Carpet/src/SetupGH.cc b/Carpet/Carpet/src/SetupGH.cc
index efc931215..e52597646 100644
--- a/Carpet/Carpet/src/SetupGH.cc
+++ b/Carpet/Carpet/src/SetupGH.cc
@@ -378,9 +378,9 @@ namespace Carpet {
CCTK_VInfo (CCTK_THORNSTRING,
"This process runs on %d core%s: %s",
num_cores, num_cores==1 ? "" : "s", buf.str().c_str());
- if (num_cores != mynthreads) {
+ if (mynthreads > num_cores) {
CCTK_WARN (CCTK_WARN_ALERT,
- "The number of threads for this process is different from its number of cores. This may indicate a performance problem.");
+ "The number of threads for this process is larger its number of cores. This may indicate a performance problem.");
}
}
#endif