From df28c63164822888490eb270df3bf45d4888f330 Mon Sep 17 00:00:00 2001 From: Ralph Castain Date: Mon, 22 Aug 2011 16:28:40 +0000 Subject: [PATCH] If we are on a single processor, then we are effectively bound - so have the macro correctly report it. Thanks to Pascal Deveze for the patch. This commit was SVN r25068. --- opal/mca/paffinity/paffinity.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/opal/mca/paffinity/paffinity.h b/opal/mca/paffinity/paffinity.h index ea51af86cf..5c5b42c7e6 100644 --- a/opal/mca/paffinity/paffinity.h +++ b/opal/mca/paffinity/paffinity.h @@ -217,7 +217,8 @@ typedef struct opal_paffinity_base_cpu_set_t { num_bound++; \ } \ } \ - if (0 < num_bound && num_bound < num_processors) { \ + if (0 < num_bound && (1 == num_processors || \ + num_bound < num_processors)) { \ *(bound) = true; \ } \ } \