当前位置: 首页>>代码示例>>Python>>正文


Python Simulation.setWorkCountOptions方法代码示例

本文整理汇总了Python中Simulation.setWorkCountOptions方法的典型用法代码示例。如果您正苦于以下问题:Python Simulation.setWorkCountOptions方法的具体用法?Python Simulation.setWorkCountOptions怎么用?Python Simulation.setWorkCountOptions使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Simulation的用法示例。


在下文中一共展示了Simulation.setWorkCountOptions方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: not

# 需要导入模块: import Simulation [as 别名]
# 或者: from Simulation import setWorkCountOptions [as 别名]
    bm = [SysConfig(disk=options.disk_image, mem=options.mem_size)]

# Check for timing mode because ruby does not support atomic accesses
if not (options.cpu_type == "detailed" or options.cpu_type == "timing"):
    print >> sys.stderr, "Ruby requires TimingSimpleCPU or O3CPU!!"
    sys.exit(1)
(CPUClass, test_mem_mode, FutureClass) = Simulation.setCPUClass(options)

CPUClass.clock = options.clock

if buildEnv['TARGET_ISA'] == "alpha":
    system = makeLinuxAlphaRubySystem(test_mem_mode, bm[0])
elif buildEnv['TARGET_ISA'] == "x86":
    system = makeLinuxX86System(test_mem_mode, options.num_cpus, bm[0], True)
    #system = addExternalDisk(system)
    Simulation.setWorkCountOptions(system, options)
else:
    fatal("incapable of building non-alpha or non-x86 full system!")
if options.mem_size:
    bm[0]=SysConfig(disk=bm[0].disk, mem=options.mem_size,script=bm[0].script())
if options.kernel is not None:
    system.kernel = binary(options.kernel)

if options.script is not None:
    system.readfile = options.script

#Added by Tianyun for adding bm binary path to command line
if options.obj is None:
	print "Please specify the benchmark binary";
	sys.exit(1)
else:
开发者ID:hoangt,项目名称:SynchroTrace,代码行数:33,代码来源:ruby_fs.py

示例2: not

# 需要导入模块: import Simulation [as 别名]
# 或者: from Simulation import setWorkCountOptions [as 别名]
# Check for timing mode because ruby does not support atomic accesses
if not (options.cpu_type == "detailed" or options.cpu_type == "timing"):
    print >> sys.stderr, "Ruby requires TimingSimpleCPU or O3CPU!!"
    sys.exit(1)
(CPUClass, test_mem_mode, FutureClass) = Simulation.setCPUClass(options)

TestMemClass = Simulation.setMemClass(options)

for cluster in xrange(2):
    if buildEnv['TARGET_ISA'] == "alpha":
        #system = makeLinuxAlphaRubySystem(test_mem_mode, bm[0])
        clusters.append(makeLinuxAlphaRubySystem(test_mem_mode, bm[0]))
    elif buildEnv['TARGET_ISA'] == "x86":
        #system = makeLinuxX86System(test_mem_mode, options.num_cpus, bm[0], True)
        clusters.append(makeLinuxX86System(test_mem_mode, options.num_cpus, bm[0], True))
        Simulation.setWorkCountOptions(clusters[cluster], options)
    else:
        fatal("incapable of building non-alpha or non-x86 full system!")
# Command line
clusters[0].boot_osflags = 'earlyprintk=ttyS0 console=ttyS0 lpj=7999923 ' + \
                           'root=/dev/hda1'
clusters[0].kernel = binary('x86_64-vmlinux-2.6.22.9')

clusters[0].cache_line_size = options.cacheline_size
clusters[1].cache_line_size = options.cacheline_size


# Create a top-level voltage domain and clock domain
clusters[0].voltage_domain = VoltageDomain(voltage = options.sys_voltage)
clusters[1].voltage_domain = VoltageDomain(voltage = options.sys_voltage)
开发者ID:djangkrix,项目名称:gem5,代码行数:32,代码来源:ruby_fs.py

示例3: build_test_system

# 需要导入模块: import Simulation [as 别名]
# 或者: from Simulation import setWorkCountOptions [as 别名]
test_sys = build_test_system(np)
if len(bm) == 2:
    drive_sys = build_drive_system(np)
    root = makeDualRoot(True, test_sys, drive_sys, options.etherdump)
elif len(bm) == 1 and options.dist:
    # This system is part of a dist-gem5 simulation
    root = makeDistRoot(test_sys,
                        options.dist_rank,
                        options.dist_size,
                        options.dist_server_name,
                        options.dist_server_port,
                        options.dist_sync_repeat,
                        options.dist_sync_start,
                        options.ethernet_linkspeed,
                        options.ethernet_linkdelay,
                        options.etherdump);
elif len(bm) == 1:
    root = Root(full_system=True, system=test_sys)
else:
    print "Error I don't know how to create more than 2 systems."
    sys.exit(1)

if options.timesync:
    root.time_sync_enable = True

if options.frame_capture:
    VncServer.frame_capture = True

Simulation.setWorkCountOptions(test_sys, options)
Simulation.run(options, root, test_sys, FutureClass)
开发者ID:abusse,项目名称:gem5,代码行数:32,代码来源:fs.py

示例4: drop

# 需要导入模块: import Simulation [as 别名]
# 或者: from Simulation import setWorkCountOptions [as 别名]
)
parser.add_option(
    "--max-stats", action="store", type="int", default=10000, help="the maximum number of stats to drop (NOT IMPL)"
)

(options, args) = parser.parse_args()

if args:
    print "Error: script doesn't take any positional arguments"
    sys.exit(1)

# Build System

(main_sys, FutureClass) = PARDg5Main.build_system(options)
root = Root(full_system=True, system=main_sys)

if options.dumpreset_stats:
    when, period = options.dumpreset_stats.split(",", 1)
    main_sys.dumpstats_delay = int(when)
    main_sys.dumpstats_period = int(period)
    print "PARDg5-V: dumpreset-stats @ <", when, ",", period, ">"

if options.timesync:
    root.time_sync_enable = True

if options.frame_capture:
    VncServer.frame_capture = True

Simulation.setWorkCountOptions(main_sys, options)
Simulation.run(options, root, main_sys, FutureClass)
开发者ID:tianweizhang,项目名称:pard,代码行数:32,代码来源:PARDg5-Main.py


注:本文中的Simulation.setWorkCountOptions方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。