本文整理汇总了Python中Simulation.getCPUClass方法的典型用法代码示例。如果您正苦于以下问题:Python Simulation.getCPUClass方法的具体用法?Python Simulation.getCPUClass怎么用?Python Simulation.getCPUClass使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Simulation
的用法示例。
在下文中一共展示了Simulation.getCPUClass方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: fatal
# 需要导入模块: import Simulation [as 别名]
# 或者: from Simulation import getCPUClass [as 别名]
fatal("gem5-gpu SE doesn't currently work with non-x86 or non-ARM system!")
#
# CPU type configuration
#
if options.cpu_type != "timing" and options.cpu_type != "TimingSimpleCPU" \
and options.cpu_type != "detailed" and options.cpu_type != "DerivO3CPU":
print "Warning: gem5-gpu only known to work with timing and detailed CPUs: Proceed at your own risk!"
(CPUClass, test_mem_mode, FutureClass) = Simulation.setCPUClass(options)
# If fast-forwarding, set the fast-forward CPU and mem mode for
# timing rather than atomic
if options.fast_forward:
assert(CPUClass == AtomicSimpleCPU)
assert(test_mem_mode == "atomic")
CPUClass, test_mem_mode = Simulation.getCPUClass("TimingSimpleCPU")
#
# Memory space configuration
#
(cpu_mem_range, gpu_mem_range, total_mem_range) = GPUConfig.configureMemorySpaces(options)
#
# Setup benchmark to be run
#
process = LiveProcess()
process.executable = options.cmd
process.cmd = [options.cmd] + options.options.split()
if options.input != "":
process.input = options.input