示例#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)