Skip to content

Commit 51d46ff

Browse files
igor-ivanovhjelmn
authored andcommitted
oshmem: Remove needless code
Signed-off-by: Igor Ivanov <[email protected]> (cherry picked from open-mpi/ompi@9f12098)
1 parent e01ef04 commit 51d46ff

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

oshmem/runtime/oshmem_shmem_init.c

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -304,20 +304,6 @@ static int _shmem_init(int argc, char **argv, int requested, int *provided)
304304
goto error;
305305
}
306306

307-
/* TODO: DO WE NEED IT? There is issue with call add_proc twice so
308-
* we need to use btl info got from PML add_procs() before call of SPML add_procs()
309-
*/
310-
{
311-
ompi_proc_t** procs = NULL;
312-
size_t nprocs = 0;
313-
procs = ompi_proc_world(&nprocs);
314-
while (nprocs--) {
315-
oshmem_group_all->proc_array[nprocs]->proc_endpoints[OMPI_PROC_ENDPOINT_TAG_BML] =
316-
procs[nprocs]->proc_endpoints[OMPI_PROC_ENDPOINT_TAG_BML];
317-
}
318-
free(procs);
319-
}
320-
321307
ret =
322308
MCA_SPML_CALL(add_procs(oshmem_group_all->proc_array, oshmem_group_all->proc_count));
323309
if (OSHMEM_SUCCESS != ret) {

0 commit comments

Comments
 (0)