Expose the num_procs information to the opal layer as the info is needed in several BTLs
This commit was SVN r32355.
Этот коммит содержится в:
родитель
6a44eb6c82
Коммит
c903917f47
@ -511,6 +511,7 @@ int ompi_mpi_init(int argc, char **argv, int requested, int *provided)
|
||||
opal_process_info.proc_session_dir = ompi_process_info.proc_session_dir;
|
||||
opal_process_info.num_local_peers = (int32_t)ompi_process_info.num_local_peers;
|
||||
opal_process_info.my_local_rank = (int32_t)ompi_process_info.my_local_rank;
|
||||
opal_process_info.num_procs = (uint32_t)ompi_process_info.num_procs;
|
||||
#if OPAL_HAVE_HWLOC
|
||||
opal_process_info.cpuset = ompi_process_info.cpuset;
|
||||
#endif /* OPAL_HAVE_HWLOC */
|
||||
|
@ -21,6 +21,7 @@ opal_process_info_t opal_process_info = {
|
||||
.proc_session_dir = "not yet defined",
|
||||
.num_local_peers = 1, /* I'm the only process around here */
|
||||
.my_local_rank = 0, /* I'm the only process around here */
|
||||
.num_procs = 1, /* I'm the only process I know about */
|
||||
#if OPAL_HAVE_HWLOC
|
||||
.cpuset = NULL,
|
||||
#endif
|
||||
|
@ -53,7 +53,8 @@ typedef struct opal_process_info_t {
|
||||
char *job_session_dir; /**< Session directory for job */
|
||||
char *proc_session_dir; /**< Session directory for the process */
|
||||
int32_t num_local_peers; /**< number of procs from my job that share my node with me */
|
||||
int32_t my_local_rank; /**< local rank */
|
||||
int32_t my_local_rank; /**< local rank */
|
||||
uint32_t num_procs; /**< number of peers */
|
||||
#if OPAL_HAVE_HWLOC
|
||||
char *cpuset; /**< String-representation of bitmap where we are bound */
|
||||
#endif
|
||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user