From aca3e71ccd02a7293b427402cecca9fe110ab2de Mon Sep 17 00:00:00 2001 From: Ralph Castain Date: Wed, 19 Aug 2009 18:55:06 +0000 Subject: [PATCH] Don't declare us "bound" if the cpu mask is completely zero This commit was SVN r21839. --- opal/mca/paffinity/paffinity.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/opal/mca/paffinity/paffinity.h b/opal/mca/paffinity/paffinity.h index 85afd1e6e3..238a023bcd 100644 --- a/opal/mca/paffinity/paffinity.h +++ b/opal/mca/paffinity/paffinity.h @@ -204,7 +204,7 @@ typedef struct opal_paffinity_base_cpu_set_t { num_bound++; \ } \ } \ - if (num_bound < num_processors) { \ + if (0 < num_bound && num_bound < num_processors) { \ *(bound) = true; \ } \ } while(0);