This repository was archived by the owner on Sep 30, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +11
-6
lines changed Expand file tree Collapse file tree 2 files changed +11
-6
lines changed Original file line number Diff line number Diff line change 22/*
33 * Copyright (c) 2013-2015 Mellanox Technologies, Inc.
44 * All rights reserved.
5- * Copyright (c) 2014 Research Organization for Information Science
5+ * Copyright (c) 2014-2016 Research Organization for Information Science
66 * and Technology (RIST). All rights reserved.
77 * Copyright (c) 2015 Los Alamos National Security, LLC. All rights
88 * reserved.
@@ -640,6 +640,12 @@ int mca_spml_yoda_add_procs(oshmem_proc_t** procs, size_t nprocs)
640640 goto cleanup_and_return ;
641641 }
642642
643+ /* create_btl_idx requires the proc was add_proc'ed, so do it now */
644+ rc = MCA_PML_CALL (add_procs (procs , nprocs ));
645+ if (OMPI_SUCCESS != rc ) {
646+ goto cleanup_and_return ;
647+ }
648+
643649 /* create btl index and map */
644650 rc = create_btl_list ();
645651 if (OSHMEM_SUCCESS != rc ) {
Original file line number Diff line number Diff line change 11/*
22 * Copyright (c) 2013 Mellanox Technologies, Inc.
33 * All rights reserved.
4- * Copyright (c) 2014-2015 Research Organization for Information Science
4+ * Copyright (c) 2014-2016 Research Organization for Information Science
55 * and Technology (RIST). All rights reserved.
6- * Copyright (c) 2015 Cisco Systems, Inc. All rights reserved.
6+ * Copyright (c) 2015 Cisco Systems, Inc. All rights reserved.
77 * Copyright (c) 2016 ARM, Inc. All rights reserved.
88 * $COPYRIGHT$
99 *
@@ -79,8 +79,7 @@ int oshmem_proc_group_init(void)
7979 == (oshmem_group_all =
8080 oshmem_proc_group_create (0 ,
8181 1 ,
82- oshmem_num_procs ()))) {
83- oshmem_proc_group_destroy (oshmem_group_all );
82+ ompi_comm_size (oshmem_comm_world )))) {
8483 return OSHMEM_ERROR ;
8584 }
8685
@@ -151,7 +150,7 @@ oshmem_group_t* oshmem_proc_group_create(int pe_start,
151150
152151 group -> my_pe = oshmem_proc_pe (oshmem_proc_local ());
153152 group -> is_member = 0 ;
154- for (i = 0 ; i < oshmem_num_procs ( ) ; i ++ ) {
153+ for (i = 0 ; i < ompi_comm_size ( oshmem_comm_world ) ; i ++ ) {
155154 proc = oshmem_proc_find (i );
156155 if (NULL == proc ) {
157156 opal_output (0 ,
You can’t perform that action at this time.
0 commit comments