Hi Steve,
I modified the run.py to deal with the SMT part and when I run the script it
aborts. Here is the error:
M5 compiled Apr 26 2008 10:12:48
M5 started Mon May 5 10:51:52 2008
M5 executing on sunshyin.local
command line: /Users/Sunshyin/m5/build/ALPHA_SE/m5.debug sahi.py -d -n2
-cFFT:Radix
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
0: system.remote_gdb.listener: listening for remote gdb #2 on port 7002
0: system.remote_gdb.listener: listening for remote gdb #3 on port 7003
warn: Entering event queue @ 0. Starting simulation...
warn: Increasing stack size by one page.
warn: Increasing stack size by one page.
warn: ignoring syscall sigprocmask(3, 18446744073709551615, ...)
warn: ignoring syscall sigprocmask(3, 18446744073709551615, ...)
warn: ignoring syscall sigprocmask(3, 0, ...)
warn: ignoring syscall sigaction(8, 4831387552, ...)
warn: ignoring syscall sigaction(11, 4831387552, ...)
warn: ignoring syscall sigaction(10, 4831387552, ...)
warn: ignoring syscall sigaction(4, 4831387552, ...)
warn: ignoring syscall sigaction(7, 4831387552, ...)
warn: ignoring syscall sigaction(6, 4831387552, ...)
warn: ignoring syscall sigaction(12, 4831387552, ...)
warn: ignoring syscall sigaction(5, 4831387552, ...)
warn: ignoring syscall sigaction(13, 4831387552, ...)
warn: ignoring syscall sigprocmask(3, 0, ...)
warn: ignoring syscall sigaction(8, 4831387552, ...)
warn: ignoring syscall sigaction(11, 4831387552, ...)
warn: ignoring syscall sigaction(10, 4831387552, ...)
warn: ignoring syscall sigaction(4, 4831387552, ...)
warn: ignoring syscall sigaction(7, 4831387552, ...)
warn: ignoring syscall sigaction(6, 4831387552, ...)
warn: ignoring syscall sigaction(12, 4831387552, ...)
warn: ignoring syscall sigaction(5, 4831387552, ...)
warn: ignoring syscall sigaction(13, 4831387552, ...)
nxm_thread_create: no idle contexts available.
Program aborted at cycle 163629500
Abort trap
Do you know why this is happening? I am attaching the config file with this
email.
Thanks,
Sahithi
On Sat, May 3, 2008 at 8:59 PM, Steve Reinhardt <[EMAIL PROTECTED]> wrote:
> As far as I know, SPLASH benchmarks should work fine with SMT. (Someone
> speak up if they know otherwise.) You'd have to modify the
> configs/splash2/run.py script to deal with that though.
>
> I haven't done this before, so I can't provide any general directions, but
> if you have more specific questions we can try and answer those.
>
> Steve
>
> On Sat, May 3, 2008 at 9:04 AM, sahithi krishna <[EMAIL PROTECTED]>
> wrote:
>
> > Hi,
> >
> > As a part of my course project, my group is trying to study the SMT/CMP
> > hybrid architectures and study their performance. As a part of the project
> > we need to vary the parameters like number of cores and number of threads
> > supported for each core and run simulations. As per my understanding, such
> > configurations can be defined using M5, but I am confused as to how to run
> > the simulations and what benchmarks to use. I am new to the M5 simulator and
> > I trying to figure out the best way to work on my project.
> > The spec cpu benchmarks have lincense issues and currently I donot have
> > access to them. So I wanted to try the SPLASH benchmark suite. Can some one
> > help me understand how I can run these simulations using SPLASH benchmarks
> > (if it is possible). It looks like the current binaries for splash
> > benchmarks on the M5 website work only in ALPHA SE mode and they donot work
> > with SMT cores. If I try to work in ALPHA FS mode, will I be able to
> > simulate SMT/CMP architecture workloads.
> > If some one has already done these kind of simulations, your suggestions
> > would be very useful. I am trying to run the simulations on MacOs Leopard,
> > will I be able to use linux-dist to build my libraries properly.
> >
> > Thank you,
> > Sahithi
> >
> > _______________________________________________
> > m5-users mailing list
> > [email protected]
> > http://m5sim.org/cgi-bin/mailman/listinfo/m5-users
> >
>
>
> _______________________________________________
> m5-users mailing list
> [email protected]
> http://m5sim.org/cgi-bin/mailman/listinfo/m5-users
>
# Splash2 Run Script
#
import m5
from m5.objects import *
import os, optparse, sys
m5.AddToPath('../common')
# --------------------
# Define Command Line Options
# ====================
parser = optparse.OptionParser()
parser.add_option("-d", "--detailed", action="store_true")
parser.add_option("-c", "--cmd", help="workload for SMT")
parser.add_option("-t", "--timing", action="store_true")
parser.add_option("-m", "--maxtick", type="int")
parser.add_option("-n", "--numcpus",
help="Number of cpus in total", type="int")
parser.add_option("-f", "--frequency",
default = "2GHz",
help="Frequency of each CPU")
parser.add_option("--l1size",
default = "64kB")
parser.add_option("--l1latency",
default = "1ns")
parser.add_option("--l2size",
default = "512kB")
parser.add_option("--l2latency",
default = "10ns")
parser.add_option("--rootdir",
help="Root directory of Splash2",
default="/Users/Sunshyin/m5/splash2/codes")
parser.add_option("-b", "--benchmark",
help="Splash 2 benchmark to run")
(options, args) = parser.parse_args()
if args:
print "Error: script doesn't take any positional arguments"
sys.exit(1)
if not options.numcpus:
print "Specify the number of cpus with -n"
sys.exit(1)
# --------------------
# Define Splash2 Benchmarks
# ====================
class Cholesky(LiveProcess):
cwd = options.rootdir + '/kernels/cholesky'
executable = options.rootdir + '/kernels/cholesky/CHOLESKY'
cmd = ['CHOLESKY', '-p' + str(options.numcpus),
options.rootdir + '/kernels/cholesky/inputs/tk23.O']
class FFT(LiveProcess):
cwd = options.rootdir + '/kernels/fft'
executable = options.rootdir + '/kernels/fft/FFT'
cmd = ['FFT', '-p', str(options.numcpus), '-m18']
class LU_contig(LiveProcess):
executable = options.rootdir + '/kernels/lu/contiguous_blocks/LU'
cmd = ['LU', '-p', str(options.numcpus)]
cwd = options.rootdir + '/kernels/lu/contiguous_blocks'
class LU_noncontig(LiveProcess):
executable = options.rootdir + '/kernels/lu/non_contiguous_blocks/LU'
cmd = ['LU', '-p', str(options.numcpus)]
cwd = options.rootdir + '/kernels/lu/non_contiguous_blocks'
class Radix(LiveProcess):
executable = options.rootdir + '/kernels/radix/RADIX'
cmd = ['RADIX', '-n524288', '-p', str(options.numcpus)]
cwd = options.rootdir + '/kernels/radix'
class Barnes(LiveProcess):
executable = options.rootdir + '/apps/barnes/BARNES'
cmd = ['BARNES']
input = options.rootdir + '/apps/barnes/input.p' + str(options.numcpus)
cwd = options.rootdir + '/apps/barnes'
class FMM(LiveProcess):
executable = options.rootdir + '/apps/fmm/FMM'
cmd = ['FMM']
if str(options.numcpus) == '1':
input = options.rootdir + '/apps/fmm/inputs/input.2048'
else:
input = options.rootdir + '/apps/fmm/inputs/input.2048.p' + str(options.numcpus)
cwd = options.rootdir + '/apps/fmm'
class Ocean_contig(LiveProcess):
executable = options.rootdir + '/apps/ocean/contiguous_partitions/OCEAN'
cmd = ['OCEAN', '-p', str(options.numcpus)]
cwd = options.rootdir + '/apps/ocean/contiguous_partitions'
class Ocean_noncontig(LiveProcess):
executable = options.rootdir + '/apps/ocean/non_contiguous_partitions/OCEAN'
cmd = ['OCEAN', '-p', str(options.numcpus)]
cwd = options.rootdir + '/apps/ocean/non_contiguous_partitions'
class Raytrace(LiveProcess):
executable = options.rootdir + '/apps/raytrace/RAYTRACE'
cmd = ['RAYTRACE', '-p' + str(options.numcpus),
options.rootdir + '/apps/raytrace/inputs/teapot.env']
cwd = options.rootdir + '/apps/raytrace'
class Water_nsquared(LiveProcess):
executable = options.rootdir + '/apps/water-nsquared/WATER-NSQUARED'
cmd = ['WATER-NSQUARED']
if options.numcpus==1:
input = options.rootdir + '/apps/water-nsquared/input'
else:
input = options.rootdir + '/apps/water-nsquared/input.p' + str(options.numcpus)
cwd = options.rootdir + '/apps/water-nsquared'
class Water_spatial(LiveProcess):
executable = options.rootdir + '/apps/water-spatial/WATER-SPATIAL'
cmd = ['WATER-SPATIAL']
if options.numcpus==1:
input = options.rootdir + '/apps/water-spatial/input'
else:
input = options.rootdir + '/apps/water-spatial/input.p' + str(options.numcpus)
cwd = options.rootdir + '/apps/water-spatial'
# --------------------
# Base L1 Cache Definition
# ====================
class L1(BaseCache):
latency = options.l1latency
block_size = 64
mshrs = 12
tgts_per_mshr = 8
# ----------------------
# Base L2 Cache Definition
# ----------------------
class L2(BaseCache):
block_size = 64
latency = options.l2latency
mshrs = 92
tgts_per_mshr = 16
write_buffers = 8
# ----------------------
# Define the cpus
# ----------------------
busFrequency = Frequency(options.frequency)
if options.timing:
cpus = [TimingSimpleCPU(cpu_id = i,
clock=options.frequency)
for i in xrange(options.numcpus)]
elif options.detailed:
cpus = [DerivO3CPU(cpu_id = i,
clock=options.frequency)
for i in xrange(options.numcpus)]
if options.cmd:
#check for SMT workload
commands = options.cmd.split(':')
process = []
for cmmd in commands:
if cmmd == 'Cholesky':
smt_process = Cholesky()
elif cmmd == 'FFT':
smt_process = FFT()
elif cmmd == 'LUContig':
smt_process = LU_contig()
elif cmmd == 'LUNoncontig':
smt_process = LU_noncontig()
elif cmmd == 'Radix':
smt_process = Radix()
elif cmmd == 'Barnes':
smt_process = Barnes()
elif cmmd == 'FMM':
smt_process = FMM()
elif cmmd == 'OceanContig':
smt_process = Ocean_contig()
elif cmmd == 'OceanNoncontig':
smt_process = Ocean_noncontig()
elif cmmd == 'Raytrace':
smt_process = Raytrace()
elif cmmd == 'WaterNSquared':
smt_process = Water_nsquared()
elif cmmd == 'WaterSpatial':
smt_process = Water_spatial()
else:
print >> sys.stderr, """The --cmd environment variable was set to something improper.
Use Cholesky, FFT, LUContig, LUNoncontig, Radix, Barnes, FMM, OceanContig,
OceanNoncontig, Raytrace, WaterNSquared, or WaterSpatial"""
sys.exit(1)
process += [smt_process, ]
else:
cpus = [AtomicSimpleCPU(cpu_id = i,
clock=options.frequency)
for i in xrange(options.numcpus)]
# ----------------------
# Create a system, and add system wide objects
# ----------------------
system = System(cpu = cpus, physmem = PhysicalMemory(),
membus = Bus(clock = busFrequency))
system.toL2bus = Bus(clock = busFrequency)
system.l2 = L2(size = options.l2size, assoc = 8)
# ----------------------
# Connect the L2 cache and memory together
# ----------------------
system.physmem.port = system.membus.port
system.l2.cpu_side = system.toL2bus.port
system.l2.mem_side = system.membus.port
# ----------------------
# Connect the L2 cache and clusters together
# ----------------------
for cpu in cpus:
cpu.addPrivateSplitL1Caches(L1(size = options.l1size, assoc = 1),
L1(size = options.l1size, assoc = 4))
cpu.mem = cpu.dcache
# connect cpu level-1 caches to shared level-2 cache
cpu.connectMemPorts(system.toL2bus)
# --------------------
# Pick the correct Splash2 Benchmarks
# ====================
if options.cmd == "":
if options.benchmark == 'Cholesky':
process = Cholesky()
elif options.benchmark == 'FFT':
process = FFT()
elif options.benchmark == 'LUContig':
process = LU_contig()
elif options.benchmark == 'LUNoncontig':
process = LU_noncontig()
elif options.benchmark == 'Radix':
process = Radix()
elif options.benchmark == 'Barnes':
process = Barnes()
elif options.benchmark == 'FMM':
process = FMM()
elif options.benchmark == 'OceanContig':
process = Ocean_contig()
elif options.benchmark == 'OceanNoncontig':
process = Ocean_noncontig()
elif options.benchmark == 'Raytrace':
process = Raytrace()
elif options.benchmark == 'WaterNSquared':
process = Water_nsquared()
elif options.benchmark == 'WaterSpatial':
process = Water_spatial()
else:
print >> sys.stderr, """The --benchmark environment variable was set to something improper.
Use Cholesky, FFT, LUContig, LUNoncontig, Radix, Barnes, FMM, OceanContig,
OceanNoncontig, Raytrace, WaterNSquared, or WaterSpatial"""
sys.exit(1)
# ----------------------
# Define the root
# ----------------------
root = Root(system = system)
root.workload = process
# --------------------
# Assign the workload to the cpus
# ====================
for cpu in cpus:
cpu.workload = root.workload
# ----------------------
# Run the simulation
# ----------------------
if options.timing or options.detailed:
root.system.mem_mode = 'timing'
# instantiate configuration
m5.instantiate(root)
# simulate until program terminates
if options.maxtick:
exit_event = m5.simulate(options.maxtick)
else:
exit_event = m5.simulate(m5.MaxTick)
print 'Exiting @ tick', m5.curTick(), 'because', exit_event.getCause()
_______________________________________________
m5-users mailing list
[email protected]
http://m5sim.org/cgi-bin/mailman/listinfo/m5-users