From d3fb39073f33c527e405074e5d408c6c4127bae4 Mon Sep 17 00:00:00 2001 From: Ralph Castain Date: Thu, 2 Jul 2009 17:48:04 +0000 Subject: [PATCH] Initialize a variable to ensure we get the correct number of bound processors This commit was SVN r21590. --- opal/mca/paffinity/paffinity.h | 1 + 1 file changed, 1 insertion(+) diff --git a/opal/mca/paffinity/paffinity.h b/opal/mca/paffinity/paffinity.h index 45e0b12166..509505f920 100644 --- a/opal/mca/paffinity/paffinity.h +++ b/opal/mca/paffinity/paffinity.h @@ -193,6 +193,7 @@ typedef struct opal_paffinity_base_cpu_set_t { int i, num_processors, num_bound; \ opal_paffinity_base_get_processor_info(&num_processors); \ *(bound) = false; \ + num_bound = 0; \ for (i=0; i < num_processors; i++) { \ if (OPAL_PAFFINITY_CPU_ISSET(i, (cpuset))) { \ num_bound++; \