1
1

add an index to indicate which socket group I belong to.

This commit was SVN r20672.
Этот коммит содержится в:
Rich Graham 2009-03-02 14:39:54 +00:00
родитель daf7673aff
Коммит 7ef1550267
2 изменённых файлов: 9 добавлений и 0 удалений

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

@ -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++;
}