本文整理汇总了Python中common.CpuConfig.get方法的典型用法代码示例。如果您正苦于以下问题:Python CpuConfig.get方法的具体用法?Python CpuConfig.get怎么用?Python CpuConfig.get使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类common.CpuConfig
的用法示例。
在下文中一共展示了CpuConfig.get方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: __init__
# 需要导入模块: from common import CpuConfig [as 别名]
# 或者: from common.CpuConfig import get [as 别名]
def __init__(self, system, num_cpus, cpu_clock, cpu_voltage="1.0V"):
cpu_config = [CpuConfig.get("atomic"), None, None, None, None]
super(AtomicCluster, self).__init__(system, num_cpus, cpu_clock, cpu_voltage, *cpu_config)
示例2: getCPUClass
# 需要导入模块: from common import CpuConfig [as 别名]
# 或者: from common.CpuConfig import get [as 别名]
def getCPUClass(cpu_type):
"""Returns the required cpu class and the mode of operation."""
cls = CpuConfig.get(cpu_type)
return cls, cls.memory_mode()
示例3: __init__
# 需要导入模块: from common import CpuConfig [as 别名]
# 或者: from common.CpuConfig import get [as 别名]
def __init__(self, system, num_cpus, cpu_clock, cpu_voltage="1.0V"):
cpu_config = [ CpuConfig.get("ArmV8KvmCPU"), None, None, None, None ]
super(KvmCluster, self).__init__(system, num_cpus, cpu_clock,
cpu_voltage, *cpu_config)
示例4: __init__
# 需要导入模块: from common import CpuConfig [as 别名]
# 或者: from common.CpuConfig import get [as 别名]
def __init__(self, system, num_cpus, cpu_clock,
cpu_voltage="1.0V"):
cpu_config = [ CpuConfig.get("ex5_LITTLE"), ex5_LITTLE.L1I,
ex5_LITTLE.L1D, ex5_LITTLE.WalkCache, ex5_LITTLE.L2 ]
super(Ex5LittleCluster, self).__init__(system, num_cpus, cpu_clock,
cpu_voltage, *cpu_config)