From 5f021e47a9fdb51543a1e5a23ec8e1f1584060f4 Mon Sep 17 00:00:00 2001 From: Shiqing Fan Date: Wed, 23 Jul 2008 07:59:03 +0000 Subject: [PATCH] - Add support for get_processor_info in windows paffinity module. This commit was SVN r18992. --- opal/mca/paffinity/windows/paffinity_windows_module.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/opal/mca/paffinity/windows/paffinity_windows_module.c b/opal/mca/paffinity/windows/paffinity_windows_module.c index c0c19ec856..b31eeee589 100644 --- a/opal/mca/paffinity/windows/paffinity_windows_module.c +++ b/opal/mca/paffinity/windows/paffinity_windows_module.c @@ -5,7 +5,7 @@ * Copyright (c) 2004-2006 The University of Tennessee and The University * of Tennessee Research Foundation. All rights * reserved. - * Copyright (c) 2004-2005 High Performance Computing Center Stuttgart, + * Copyright (c) 2004-2008 High Performance Computing Center Stuttgart, * University of Stuttgart. All rights reserved. * Copyright (c) 2004-2005 The Regents of the University of California. * All rights reserved. @@ -41,7 +41,7 @@ static int windows_module_get_core_info(int socket, int *num_cores, int *max_cor static SYSTEM_INFO sys_info; /* - * Linux paffinity module + * Windows paffinity module */ static const opal_paffinity_base_module_1_1_0_t loc_module = { /* Initialization function */ @@ -134,7 +134,8 @@ static int windows_module_map_to_socket_core(int processor_id, int *socket, int static int windows_module_get_processor_info(int *num_processors, int *max_processor_id) { - return OPAL_ERR_NOT_SUPPORTED; + *num_processors = *max_processor_id = sys_info.dwNumberOfProcessors; + return OPAL_SUCCESS; } static int windows_module_get_socket_info(int *num_sockets, int *max_socket_num)