1
1
- Minor fixes in the wrappers

This commit was SVN r6902.
Этот коммит содержится в:
Jeff Squyres 2005-08-16 16:11:32 +00:00
родитель f6a64706ad
Коммит a00e37f516
3 изменённых файлов: 10 добавлений и 7 удалений

Просмотреть файл

@ -26,7 +26,8 @@ libmca_paffinity_base_la_SOURCES = \
$(headers) \
paffinity_base_close.c \
paffinity_base_select.c \
paffinity_base_open.c
paffinity_base_open.c \
paffinity_base_wrappers.c
# Conditionally install the header files

Просмотреть файл

@ -101,7 +101,7 @@ extern "C" {
*
* If no paffinity components were available, or if the
* opal_paffinity_base_select() was never invoked, OPAL_NOT_FOUND
* is returned.
* is returned and num_procs is set to -1.
*/
OMPI_DECLSPEC int opal_paffinity_base_get_num_processors(int *num_procs);
@ -134,9 +134,9 @@ extern "C" {
* Get this process' CPU affinitity virtual ID number and assign
* it to \em id.
*
* * If no paffinity components were available, or if the
* If no paffinity components were available, or if the
* opal_paffinity_base_select() was never invoked, OPAL_NOT_FOUND
* is returned.
* is returned and id is set to -1.
*/
OMPI_DECLSPEC int opal_paffinity_base_get(int *id);

Просмотреть файл

@ -26,9 +26,10 @@
int opal_paffinity_base_get_num_processors(int *num_procs)
{
if (!opal_paffinity_base_selected) {
*num_procs = -1;
return OPAL_ERR_NOT_FOUND;
}
return opal_paffinity_base_module->paff_get_num_processors(num_procs);
return opal_paffinity_base_module->paff_module_get_num_processors(num_procs);
}
@ -37,14 +38,15 @@ int opal_paffinity_base_set(int id)
if (!opal_paffinity_base_selected) {
return OPAL_ERR_NOT_FOUND;
}
return opal_paffinity_base_module->paff_set(id);
return opal_paffinity_base_module->paff_module_set(id);
}
int opal_paffinity_base_get(int *id)
{
if (!opal_paffinity_base_selected) {
*id = -1;
return OPAL_ERR_NOT_FOUND;
}
return opal_paffinity_base_module->paff_get(id);
return opal_paffinity_base_module->paff_module_get(id);
}