File tree Expand file tree Collapse file tree 1 file changed +9
-7
lines changed Expand file tree Collapse file tree 1 file changed +9
-7
lines changed Original file line number Diff line number Diff line change @@ -702,13 +702,14 @@ static int count_providers(struct fi_info *provider_list)
702
702
return num_provider ;
703
703
}
704
704
705
- /* Calculate the current process package rank.
706
- * @param (IN) process_info struct opal_process_info_t information
707
- * about the current process. used to get
708
- * num_local_peers, myprocid.rank, and
709
- * my_local_rank.
705
+ /**
706
+ * @brief the current process package rank.
707
+ *
708
+ * @param[in] process_info struct opal_process_info_t information
709
+ * about the current process. used to get
710
+ * num_local_peers, myprocid.rank.
710
711
*
711
- * @param (OUT) uint32_t package rank or myprocid.rank
712
+ * @return package rank or myprocid.rank
712
713
*
713
714
* If successful, returns PMIX_PACKAGE_RANK, or an
714
715
* equivalent calculated package rank.
@@ -768,8 +769,9 @@ static uint32_t get_package_rank(opal_process_info_t *process_info)
768
769
relative_locality = opal_hwloc_compute_relative_locality (process_info -> locality ,
769
770
locality_string );
770
771
free (locality_string );
772
+ locality_string = NULL ;
771
773
772
- if ((uint16_t ) pname .vpid == process_info -> my_local_rank ) {
774
+ if ((uint16_t ) pname .vpid == process_info -> myprocid . rank ) {
773
775
return ranks_on_package ;
774
776
}
775
777
You can’t perform that action at this time.
0 commit comments