You should do gem5.opt configs/example/se.py --help
It's clearly documented there how to do this. -i INPUT, --input=INPUT Read stdin from a file. --output=OUTPUT Redirect stdout to a file. --errout=ERROUT Redirect stderr to a file. So for your case.... gem5.opt configs/example/se.py --cmd=milc --input=su3imp.in On Tue, Dec 18, 2012 at 4:43 AM, hanfeng QIN <hanfeng.h...@gmail.com> wrote: > I found the simulator will sleep when I run 433.milc and 437.leslie3d from > SPEC CPU2K6 in SE mode. However, both of them run normally on native real > machine. Compared with the native run, I guess this phenomenon may relate > to how gem5 processes '-c' and '-o' options. I check the run time > parameters passed to them and find both of these two programs need an > standard input redirected from a file. In details, > > milc < su3imp.in > > leslie3d < leslie3d.in > > When the above commands are processed by gem5, the embedded '<' in > workload command will behave abnormally that it redirects the standard > input of the gem5 simulator instead of the workload itself as expected. I > think this is the root evil of the strange sleep. > > I wonder whether anyone met this bug before. If so, I expect some > suggestions to fix it. > > Thanks, > Hanfeng > > > ______________________________**_________________ > gem5-users mailing list > gem5-users@gem5.org > http://m5sim.org/cgi-bin/**mailman/listinfo/gem5-users<http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users> >
_______________________________________________ gem5-users mailing list gem5-users@gem5.org http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users