1# Copyright (c) 2006-2007 The Regents of The University of Michigan 2# All rights reserved. 3# 4# Redistribution and use in source and binary forms, with or without 5# modification, are permitted provided that the following conditions are 6# met: redistributions of source code must retain the above copyright 7# notice, this list of conditions and the following disclaimer; 8# redistributions in binary form must reproduce the above copyright --- 16 unchanged lines hidden (view full) --- 25# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 26# 27# Authors: Ron Dreslinski 28 29# Simple test script 30# 31# "m5 test.py" 32 |
33from __future__ import print_function 34 |
35import os 36import optparse 37import sys 38 39import m5 40from m5.objects import * 41 42# -------------------- --- 24 unchanged lines hidden (view full) --- 67 help="ROot directory of Splash2", 68 default="/dist/splash2/codes/") 69parser.add_option("-b", "--benchmark", 70 help="Splash 2 benchmark to run") 71 72(options, args) = parser.parse_args() 73 74if args: |
75 print("Error: script doesn't take any positional arguments") |
76 sys.exit(1) 77 78# -------------------- 79# Define Splash2 Benchmarks 80# ==================== 81class Cholesky(Process): 82 executable = options.rootdir + '/kernels/cholesky/CHOLESKY' 83 cmd = 'CHOLESKY -p' + str(options.numcpus) + ' '\ --- 210 unchanged lines hidden (view full) --- 294m5.instantiate() 295 296# simulate until program terminates 297if options.maxtick: 298 exit_event = m5.simulate(options.maxtick) 299else: 300 exit_event = m5.simulate(m5.MaxTick) 301 |
302print('Exiting @ tick', m5.curTick(), 'because', exit_event.getCause()) |
303 |