예제 #1
0
파일: pygas.py 프로젝트: Ciemaar/pygas
 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)
예제 #2
0
파일: pygas.py 프로젝트: Ciemaar/pygas
 def myrank(self):
     """ The rank of MYTHREAD within this team. """
     return gasnet.node2rank(self._team_id, MYTHREAD)