Hi Bobba:
I have read this URL
"http://pages.cs.wisc.edu/~david/courses/cs758/Fall2007/handouts/hw-logtm.html"
and want to run deque on target machine. I make a 16 processors and
2GB memory target running sol9 on it. I use this target compile
executable deque code and copy them back to GEMS/microbenmarks. Then
just do as tutorial indicates, however, when I run .sh file generate
by gen-scripts.py. It seems encountering some problems. The output
like this:
/********** below is the output when I run .sh file************/
n@localhost scripts]$
./deque-TM-1024ops-32bkoff-1c-2p-1t-default-None-Perfect_-Perfect_-Perfect_-10000.sh
Using: /opt/develop/scimics/simics220/GEMS_HOME/gems-2.1/simics-2.2.19/x86-linux
Swap dir set to /var/tmp
Checking out a license... done: commercial license.
Scanning modules...
Looking for additional Simics modules in ./modules
Loading module list cache...
Module list cache loaded.
Loading module list cache...
Module list cache loaded.
Module scanning done.
+----------------+ Copyright 1998-2005 by Virtutech, All Rights Reserved
| Virtutech | Version: simics-2.2.19
| Simics | Compiled: Tue Aug 16 20:22:30 CEST 2005
+----------------+
www.simics.com "Virtutech" and "Simics" are trademarks of Virtutech AB
Type 'copyright' for details on copyright.
Type 'license' for details on warranty, copying, etc.
Type 'readme' for further information about this version.
Type 'help help' for info on the on-line documentation.
Simics is running on a Linux host.
Adding directories in SIMICS_EXTRA_LIB to Pythons search path.
Module python-frontend loaded
[../../../gen-scripts/microbench.simics:1] @import time, sim_commands,
string, sys, getpass, os
[../../../gen-scripts/microbench.simics:2] @from cli import *
[../../../gen-scripts/microbench.simics:3]
@sys.path.append("../../../gen-scripts")
[../../../gen-scripts/microbench.simics:4] @import mfacet
[../../../gen-scripts/microbench.simics:5] @import workloads
[../../../gen-scripts/microbench.simics:6] @import microbench
[../../../gen-scripts/microbench.simics:7] @from text_console_common import *
[../../../gen-scripts/microbench.simics:8] @from
mod_xterm_console_commands import *
[../../../gen-scripts/microbench.simics:9]
[../../../gen-scripts/microbench.simics:10] @env_dict =
workloads.prepare_env_dictionary(simics = 1)
[../../../gen-scripts/microbench.simics:11]
#@workloads.print_all_variables(env_dict)
[../../../gen-scripts/microbench.simics:12] @microbench_dir =
workloads.get_var(env_dict, "MICROBENCH_DIR")
[../../../gen-scripts/microbench.simics:13] @benchmark =
workloads.get_var(env_dict, "BENCHMARK")
[../../../gen-scripts/microbench.simics:14] @print "BENCHMARK: %s" % benchmark
BENCHMARK: deque
[../../../gen-scripts/microbench.simics:15] @script =
"../../../%s/%s/%s.simics" % (microbench_dir, benchmark, benchmark)
[../../../gen-scripts/microbench.simics:16]
@mfacet.run_sim_command("run-command-file %s" % script)
### Executing "run-command-file
../../../microbenchmarks/transactional/deque/deque.simics"
Looking up ../../../microbenchmarks/transactional/deque/deque.simics
[../../../microbenchmarks/transactional/deque/deque.simics:1] @import
microbench, workloads, mfacet
[../../../microbenchmarks/transactional/deque/deque.simics:2]
[../../../microbenchmarks/transactional/deque/deque.simics:3] ######
Read simulation parameters
[../../../microbenchmarks/transactional/deque/deque.simics:4]
@env_dict = workloads.prepare_env_dictionary(simics = 1)
[../../../microbenchmarks/transactional/deque/deque.simics:5]
@processors = int(workloads.get_var(env_dict, "PROCESSORS"))
[../../../microbenchmarks/transactional/deque/deque.simics:6] #
0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
[../../../microbenchmarks/transactional/deque/deque.simics:7]
@ruby_proc_map = (1, 2, 2, 4, 4, 8, 8, 8, 8, 16, 16, 16, 16, 16, 16,
16, 16)
[../../../microbenchmarks/transactional/deque/deque.simics:16]
@if(processors <= 16):
ruby_procs = ruby_proc_map[processors]
proc_no = [0, 1, 4, 5, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19]
elif (processors <= 32):
ruby_procs = 32
proc_no = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15,
32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47]
else:
processors = -1
[../../../microbenchmarks/transactional/deque/deque.simics:16]
[../../../microbenchmarks/transactional/deque/deque.simics:17] @print
"running simics with %d processors" % ruby_procs
running simics with 2 processors
[../../../microbenchmarks/transactional/deque/deque.simics:18]
[../../../microbenchmarks/transactional/deque/deque.simics:19]
@lock_type = workloads.get_var(env_dict, "LOCK_TYPE")
[../../../microbenchmarks/transactional/deque/deque.simics:20]
@transactions = int(workloads.get_var(env_dict, "TRANSACTIONS"))
[../../../microbenchmarks/transactional/deque/deque.simics:21]
@dump_interval = int(workloads.get_var(env_dict, "DUMP_INTERVAL"))
[../../../microbenchmarks/transactional/deque/deque.simics:22]
@env_dict = workloads.prepare_env_dictionary(simics = 1)
[../../../microbenchmarks/transactional/deque/deque.simics:23]
@visualizer = int(workloads.get_var(env_dict, "XACT_VISUALIZER"))
[../../../microbenchmarks/transactional/deque/deque.simics:24]
@results_dir = workloads.get_var(env_dict, "RESULTS_DIR")
[../../../microbenchmarks/transactional/deque/deque.simics:25]
@filename_prefix = "%s/%s" % (results_dir,
workloads.get_microbench_output_file_name_prefix(env_dict, 0))
[../../../microbenchmarks/transactional/deque/deque.simics:26]
[../../../microbenchmarks/transactional/deque/deque.simics:27]
@arg_str = workloads.get_var(env_dict, "MBENCH_ARG_STRING")
[../../../microbenchmarks/transactional/deque/deque.simics:28]
[../../../microbenchmarks/transactional/deque/deque.simics:29]
@mfacet.run_sim_command('read-configuration
"/opt/develop/scimics/simics220/GEMS_HOME/gems-2.1/checkpoints/yan_checkpoints/16p/16p_2G_golden/16p_2G_golden.conf"'
% ruby_procs)
Traceback (most recent call last):
File "<string>", line 1, in ?
TypeError: not all arguments converted
Command aborted
[../../../microbenchmarks/transactional/deque/deque.simics:29] the
command did not complete properly; interrupting script
[../../../gen-scripts/microbench.simics:16] the command did not
complete properly; interrupting script
/*******************above is the
output******************************************/
I have traced these scripts, seeming all right.
Could you give me a hand to solve this problem. Thank you very much.
|