These calls were mistakenly added in r25164.
This commit was SVN r25176. The following SVN revision numbers were found above: r25164 --> open-mpi/ompi@51129cc2a8
Этот коммит содержится в:
родитель
8347385630
Коммит
57323570e3
@ -109,16 +109,6 @@ OPAL_DECLSPEC int opal_maffinity_base_set(opal_maffinity_base_segment_t *segment
|
||||
OPAL_DECLSPEC int opal_maffinity_base_node_name_to_id(char *, int *);
|
||||
OPAL_DECLSPEC int opal_maffinity_base_bind(opal_maffinity_base_segment_t *, size_t, int);
|
||||
|
||||
/**
|
||||
* Report a bind failure using the normal mechanisms if a component
|
||||
* fails to bind memory -- according to the value of the
|
||||
* maffinity_base_bind_failure_action MCA parameter.
|
||||
*/
|
||||
OPAL_DECLSPEC int opal_maffinity_base_report_bind_failure(const char *file,
|
||||
int line,
|
||||
const char *msg,
|
||||
int rc);
|
||||
|
||||
/**
|
||||
* Shut down the maffinity MCA framework.
|
||||
*
|
||||
|
@ -33,6 +33,7 @@
|
||||
#include "opal/mca/base/mca_base_param.h"
|
||||
#include "opal/mca/maffinity/maffinity.h"
|
||||
#include "opal/mca/maffinity/base/base.h"
|
||||
#include "opal/mca/hwloc/base/base.h"
|
||||
#include "maffinity_hwloc.h"
|
||||
#include "opal/mca/hwloc/hwloc.h"
|
||||
|
||||
@ -91,8 +92,8 @@ static int hwloc_module_set(opal_maffinity_base_segment_t *segments,
|
||||
/* bozo check */
|
||||
if (NULL == opal_hwloc_topology) {
|
||||
msg = "hwloc_set_area_membind() failure - topology not available";
|
||||
return opal_maffinity_base_report_bind_failure(__FILE__, __LINE__,
|
||||
msg, rc);
|
||||
return opal_hwloc_base_report_bind_failure(__FILE__, __LINE__,
|
||||
msg, rc);
|
||||
}
|
||||
|
||||
/* This module won't be used unless the process is already
|
||||
@ -122,8 +123,8 @@ static int hwloc_module_set(opal_maffinity_base_segment_t *segments,
|
||||
hwloc_bitmap_free(cpuset);
|
||||
}
|
||||
if (OPAL_SUCCESS != rc) {
|
||||
return opal_maffinity_base_report_bind_failure(__FILE__, __LINE__,
|
||||
msg, rc);
|
||||
return opal_hwloc_base_report_bind_failure(__FILE__, __LINE__,
|
||||
msg, rc);
|
||||
}
|
||||
return OPAL_SUCCESS;
|
||||
}
|
||||
@ -147,8 +148,8 @@ static int hwloc_module_bind(opal_maffinity_base_segment_t *segs,
|
||||
/* bozo check */
|
||||
if (NULL == opal_hwloc_topology) {
|
||||
msg = "hwloc_set_area_membind() failure - topology not available";
|
||||
return opal_maffinity_base_report_bind_failure(__FILE__, __LINE__,
|
||||
msg, rc);
|
||||
return opal_hwloc_base_report_bind_failure(__FILE__, __LINE__,
|
||||
msg, rc);
|
||||
}
|
||||
|
||||
cpuset = hwloc_bitmap_alloc();
|
||||
@ -175,8 +176,8 @@ static int hwloc_module_bind(opal_maffinity_base_segment_t *segs,
|
||||
hwloc_bitmap_free(cpuset);
|
||||
}
|
||||
if (OPAL_SUCCESS != rc) {
|
||||
return opal_maffinity_base_report_bind_failure(__FILE__, __LINE__,
|
||||
msg, rc);
|
||||
return opal_hwloc_base_report_bind_failure(__FILE__, __LINE__,
|
||||
msg, rc);
|
||||
}
|
||||
return OPAL_SUCCESS;
|
||||
}
|
||||
|
Загрузка…
Ссылка в новой задаче
Block a user