def thread_to_rank(self, thread): """ Translate a global thread id into a rank from this team. """ return gasnet.node2rank(TEAM_WORLD._team_id, thread)
def myrank(self): """ The rank of MYTHREAD within this team. """ return gasnet.node2rank(self._team_id, MYTHREAD)