File tree Expand file tree Collapse file tree 1 file changed +5
-9
lines changed Expand file tree Collapse file tree 1 file changed +5
-9
lines changed Original file line number Diff line number Diff line change 26
26
* Copyright (c) 2018-2021 Triad National Security, LLC. All rights
27
27
* reserved.
28
28
* Copyright (c) 2022 IBM Corporation. All rights reserved
29
+ * Copyright (c) 2023 Jeffrey M. Squyres. All rights reserved.
29
30
* $COPYRIGHT$
30
31
*
31
32
* Additional copyrights may follow
@@ -382,28 +383,23 @@ int mca_pml_ob1_add_procs(ompi_proc_t** procs, size_t nprocs)
382
383
if (nprocs == 0 )
383
384
return OMPI_SUCCESS ;
384
385
385
- OBJ_CONSTRUCT (& reachable , opal_bitmap_t );
386
- rc = opal_bitmap_init (& reachable , (int )nprocs );
387
- if (OMPI_SUCCESS != rc )
388
- return rc ;
389
-
390
386
/* make sure remote procs are using the same PML as us */
391
387
if (OMPI_SUCCESS != (rc = mca_pml_base_pml_check_selected ("ob1" ,
392
388
procs ,
393
389
nprocs ))) {
394
390
return rc ;
395
391
}
396
392
393
+ if (NULL == mca_bml .bml_add_procs ) {
394
+ return OMPI_ERR_UNREACH ;
395
+ }
396
+
397
397
OBJ_CONSTRUCT (& reachable , opal_bitmap_t );
398
398
rc = opal_bitmap_init (& reachable , (int )nprocs );
399
399
if (OMPI_SUCCESS != rc ) {
400
400
return rc ;
401
401
}
402
402
403
- if (NULL == mca_bml .bml_add_procs ) {
404
- return OMPI_ERR_UNREACH ;
405
- }
406
-
407
403
rc = mca_bml .bml_add_procs (nprocs , procs , & reachable );
408
404
OBJ_DESTRUCT (& reachable );
409
405
if (OMPI_SUCCESS != rc ) {
You can’t perform that action at this time.
0 commit comments