1
1

Expose the num_procs information to the opal layer as the info is needed in several BTLs

This commit was SVN r32355.
Этот коммит содержится в:
Ralph Castain 2014-07-30 09:33:41 +00:00
родитель 6a44eb6c82
Коммит c903917f47
3 изменённых файлов: 4 добавлений и 1 удалений

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

@ -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