client/src/unifycr.c
static int find_rank_idx(int rank,\
		int *local_rank_lst, int local_rank_cnt) {
	int i;
	for (i = 0; i < local_rank_cnt; i++) {
		if (local_rank_lst[i] == rank) {
			return i;
		}
	}

	return -1;

}
/**
* find the local index of a given rank among all ranks
* collocated on the same node
* @param local_rank_lst: a list of local ranks
* @param local_rank_cnt: number of local ranks
* @return index of rank in local_rank_lst
*/
find the local index of a given rank among all ranks
collocated on the same node
find the local index of a given rank among all ranks collocated on the same node
static int find_rank_idx(int rank,\
		int *local_rank_lst, int local_rank_cnt) {
	int i;
	for (i = 0; i < local_rank_cnt; i++) {
		if (local_rank_lst[i] == rank) {
			return i;
		}
	}
	return -1;
}
static int find_rank_idx ( int rank , int * local_rank_lst , int local_rank_cnt ) { int i ; for ( i = 0 ; i < local_rank_cnt ; i ++ ) { if ( local_rank_lst [ i ] == rank ) { return i ; } } return -1 ; }
find the local index of a given rank among all ranks
collocated on the same node
find the local index of a given rank among all ranks collocated on the same node