Hi,

I am trying to run multiple workloads on the same cpu. It works fine for a
test program. However, when I try to run spec2006, I get the following
error:

Global frequency set at 1000000000000 ticks per second
0: system.remote_gdb.listener: listening for remote gdb #0 on port 7000
0: system.remote_gdb.listener: listening for remote gdb #1 on port 7001
panic: same statistic name used twice!
name=system.cpu.workload1.num_syscalls
 @ cycle 0
[setName:build/ALPHA/base/statistics.cc, line 187]
Memory Usage: 611268 KBytes
Program aborted at cycle 0
Aborted

Removing this variable does not help either.

Any suggestions, please!!

Here is my script:

if options.cpu_type == "detailed" or options.cpu_type == "inorder":
    #check for SMT workload
    workloads = options.benchmark.split(';')
    if len(workloads) > 1:
        process = []
        smt_idx = 0
        for wrkld in workloads:
            print wrkld
            if wrkld == 'bzip2':
                smt_process = alphaspec2006.bzip2
            elif options.benchmark == 'gcc':
                smt_process = alphaspec2006.gcc
            elif options.benchmark == 'mcf':
                smt_process = alphaspec2006.mcf
            elif options.benchmark == 'gobmk':
                smt_process = alphaspec2006.gobmk;
            elif options.benchmark == 'hmmer':
                smt_process = alphaspec2006.hmmer
            elif options.benchmark == 'sjeng':
                smt_process = alphaspec2006.sjeng
            elif options.benchmark == 'libquantum':
                smt_process = alphaspec2006.libquantum
            elif options.benchmark == 'h264ref':
                smt_process = alphaspec2006.h264ref
            elif wrkld == 'omnetpp':
                smt_process = alphaspec2006.omnetpp
                print "In here"
            elif options.benchmark == 'astar':
                smt_process = alphaspec2006.astar
            elif options.benchmark == 'xalancbmk':
                smt_process = alphaspec2006.xalancbmk
            elif options.benchmark == 'specrand_i':
                smt_process = alphaspec2006.specrand_i
            process += [smt_process, ]
            smt_idx += 1
    numThreads = len(workloads)
(CPUClass, test_mem_mode, FutureClass) = Simulation.setCPUClass(options)
CPUClass.clock = '2GHz'
CPUClass.numThreads = numThreads;

np = 1#options.num_cpus

system = System(cpu = [CPUClass(cpu_id=i) for i in xrange(np)],
                physmem = PhysicalMemory(range=AddrRange("512MB")),
                membus = Bus(), mem_mode = test_mem_mode)

system.system_port = system.membus.slave
system.physmem.port = system.membus.master
CacheConfig.config_cache(options, system)

for i in xrange(np):
    system.cpu[i].workload = process

    if options.fastmem:
        system.cpu[0].physmem_port = system.physmem.port

root = Root(full_system = False, system = system)

Simulation.run(options, root, system, FutureClass)

Thanks,
-- 
Heba
_______________________________________________
gem5-users mailing list
gem5-users@gem5.org
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users

Reply via email to