Remove references to numa_rank
Signed-off-by: Ralph Castain <rhc@pmix.org>
Этот коммит содержится в:
родитель
86709b1c80
Коммит
f608575eec
@ -755,28 +755,6 @@ int ompi_rte_init(int *pargc, char ***pargv)
|
|||||||
opal_process_info.proc_is_bound = false;
|
opal_process_info.proc_is_bound = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* get our numa rank from PMIx */
|
|
||||||
if (opal_process_info.proc_is_bound) {
|
|
||||||
OPAL_MODEX_RECV_VALUE_OPTIONAL(rc, PMIX_NUMA_RANK,
|
|
||||||
&opal_process_info.my_name, &u16ptr, PMIX_UINT16);
|
|
||||||
if (PMIX_SUCCESS != rc) {
|
|
||||||
if (ompi_singleton) {
|
|
||||||
/* just assume the numa_rank is invalid, set to UINT16_MAX */
|
|
||||||
u16 = UINT16_MAX;
|
|
||||||
} else {
|
|
||||||
ret = opal_pmix_convert_status(rc);
|
|
||||||
error = "numa rank";
|
|
||||||
goto error;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
opal_process_info.my_numa_rank = u16;
|
|
||||||
} else {
|
|
||||||
/* If processes are not bound, the numa_rank is not available
|
|
||||||
* Assign UINT16_MAX to the numa_rank to indicate an invalid value
|
|
||||||
*/
|
|
||||||
opal_process_info.my_numa_rank = UINT16_MAX;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* get our local peers */
|
/* get our local peers */
|
||||||
if (0 < opal_process_info.num_local_peers) {
|
if (0 < opal_process_info.num_local_peers) {
|
||||||
/* if my local rank if too high, then that's an error */
|
/* if my local rank if too high, then that's an error */
|
||||||
|
@ -40,7 +40,6 @@ opal_process_info_t opal_process_info = {
|
|||||||
.num_local_peers = 0, /* there is nobody else but me */
|
.num_local_peers = 0, /* there is nobody else but me */
|
||||||
.my_local_rank = 0, /* I'm the only process around here */
|
.my_local_rank = 0, /* I'm the only process around here */
|
||||||
.my_node_rank = 0,
|
.my_node_rank = 0,
|
||||||
.my_numa_rank = UINT16_MAX, /* Assume numa_rank is unavailable, set to UINT16_MAX */
|
|
||||||
.cpuset = NULL,
|
.cpuset = NULL,
|
||||||
.pid = 0,
|
.pid = 0,
|
||||||
.num_procs = 0,
|
.num_procs = 0,
|
||||||
|
@ -114,7 +114,6 @@ typedef struct opal_process_info_t {
|
|||||||
uint32_t num_local_peers; /**< number of procs from my job that share my node with me */
|
uint32_t num_local_peers; /**< number of procs from my job that share my node with me */
|
||||||
uint16_t my_local_rank; /**< local rank on this node within my job */
|
uint16_t my_local_rank; /**< local rank on this node within my job */
|
||||||
uint16_t my_node_rank;
|
uint16_t my_node_rank;
|
||||||
uint16_t my_numa_rank; /**< rank on this processes NUMA node. A value of UINT16_MAX indicates unavailable numa_rank */
|
|
||||||
char *cpuset; /**< String-representation of bitmap where we are bound */
|
char *cpuset; /**< String-representation of bitmap where we are bound */
|
||||||
pid_t pid;
|
pid_t pid;
|
||||||
uint32_t num_procs;
|
uint32_t num_procs;
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user