add an index to indicate which socket group I belong to.
This commit was SVN r20672.
Этот коммит содержится в:
родитель
daf7673aff
Коммит
7ef1550267
@ -494,6 +494,11 @@ BEGIN_C_DECLS
|
||||
*/
|
||||
int *sockets_in_use;
|
||||
|
||||
/*
|
||||
* index of my socekt within the list of sockets in use
|
||||
*/
|
||||
int my_socket_group;
|
||||
|
||||
/*
|
||||
* number of processes per socket
|
||||
*/
|
||||
|
@ -1331,6 +1331,10 @@ mca_coll_sm2_comm_query(struct ompi_communicator_t *comm, int *priority)
|
||||
cnt=0;
|
||||
for (proc = 0; proc < num_procs; proc++) {
|
||||
if( 0 < sm_module->n_procs_per_socket[proc] ) {
|
||||
/* this is the group I belong to */
|
||||
if(sm_module->socket_index[ompi_comm_rank(comm)]==proc) {
|
||||
sm_module->my_socket_group=cnt;
|
||||
}
|
||||
sm_module->sockets_in_use[cnt]=proc;
|
||||
cnt++;
|
||||
}
|
||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user