Beispiel #1
0
 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)
Beispiel #2
0
 def myrank(self):
     """ The rank of MYTHREAD within this team. """
     return gasnet.node2rank(self._team_id, MYTHREAD)