コード例 #1
0
ファイル: simulator.py プロジェクト: zzhou/Qsim_Topology
 def __init__(self, *args, **kwargs):
     BGBaseSystem.__init__(self, *args, **kwargs)
     self.process_groups.item_cls = BGSimProcessGroup
     self.config_file = kwargs.get("config_file", None)
     self.failed_components = sets.Set()
     if self.config_file is not None:
         self.configure(self.config_file)
コード例 #2
0
ファイル: simulator.py プロジェクト: zzhou/Qsim_Topology_BGQ
 def __init__ (self, *args, **kwargs):
     BGBaseSystem.__init__(self, *args, **kwargs)
     self.process_groups.item_cls = BGSimProcessGroup
     self.config_file = kwargs.get("config_file", None)
     self.failed_components = sets.Set()
     if self.config_file is not None:
         self.configure(self.config_file)
コード例 #3
0
ファイル: bgsystem.py プロジェクト: zzhou/Qsim_PowerAware
 def __init__ (self, *args, **kwargs):
     BGBaseSystem.__init__(self, *args, **kwargs)
     sys.setrecursionlimit(5000)
     self.process_groups.item_cls = BGProcessGroup
     self.diag_pids = dict()
     self.configure()
     # initiate the process before starting any threads
     thread.start_new_thread(self.update_partition_state, tuple())
コード例 #4
0
 def __init__(self, *args, **kwargs):
     BGBaseSystem.__init__(self, *args, **kwargs)
     sys.setrecursionlimit(5000)  #why this magic number?
     self.process_groups.item_cls = BGSimProcessGroup
     self.config_file = kwargs.get("config_file", None)
     self.failed_components = set()
     if self.config_file is not None:
         self.configure(self.config_file)
コード例 #5
0
ファイル: bgsystem.py プロジェクト: zzhou/Qsim_Topology
 def __init__(self, *args, **kwargs):
     BGBaseSystem.__init__(self, *args, **kwargs)
     sys.setrecursionlimit(5000)
     self.process_groups.item_cls = BGProcessGroup
     self.diag_pids = dict()
     self.configure()
     # initiate the process before starting any threads
     thread.start_new_thread(self.update_partition_state, tuple())
コード例 #6
0
ファイル: simulator.py プロジェクト: wtangiit/Qsim
 def __init__ (self, *args, **kwargs):
     BGBaseSystem.__init__(self, *args, **kwargs)
     sys.setrecursionlimit(5000) #why this magic number?
     self.process_groups.item_cls = BGSimProcessGroup
     self.config_file = kwargs.get("config_file", None)
     self.failed_components = set()
     if self.config_file is not None:
         self.configure(self.config_file)
コード例 #7
0
ファイル: simulator.py プロジェクト: benmcclelland/cobalt
 def __init__ (self, *args, **kwargs):
     BGBaseSystem.__init__(self, *args, **kwargs)
     sys.setrecursionlimit(5000) #why this magic number?
     self.process_groups.item_cls = BGSimProcessGroup
     self.node_card_cache = dict()
     self.failed_components = set()
     self.config_file = kwargs.get("config_file", get_config_option('bgsystem', 'system_def_file', None))
     if self.config_file is not None:
         self.logger.log(1, "init: loading machine configuration")
         self.configure(self.config_file)
         self.logger.log(1, "init: recomputing partition state")
         self._recompute_partition_state()
コード例 #8
0
 def __init__(self, *args, **kwargs):
     BGBaseSystem.__init__(self, *args, **kwargs)
     sys.setrecursionlimit(5000)  #why this magic number?
     self.process_groups.item_cls = BGSimProcessGroup
     self.node_card_cache = dict()
     self.failed_components = set()
     self.config_file = kwargs.get(
         "config_file",
         get_config_option('bgsystem', 'system_def_file', None))
     if self.config_file is not None:
         self.logger.log(1, "init: loading machine configuration")
         self.configure(self.config_file)
         self.logger.log(1, "init: recomputing partition state")
         self._recompute_partition_state()
コード例 #9
0
ファイル: bgsystem.py プロジェクト: benmcclelland/cobalt-orcm
    def __init__ (self, *args, **kwargs):
        BGBaseSystem.__init__(self, *args, **kwargs)
        sys.setrecursionlimit(5000)
        self.process_groups.item_cls = BGProcessGroup
        self.bp_cache = dict()
        self.node_card_cache = dict()
        self.wire_cache = dict()
        self.busted_switches = set()
        self.busted_wires = set()
        self.logger.debug("init: loading machine configuration")
        self.configure()
        self.logger.debug("init: recomputing partition state")
        self._recompute_partition_state()

        # initiate the process before starting any threads
        thread.start_new_thread(self.update_partition_state, tuple())