remove the setenv line and it should work. try adding a few echo commands to see what is going on. Ali
On May 12, 2012, at 10:11 PM, ef wrote: > I apologize for bugging you, but I can't seem to get it: > > my .rcS file has: > > n=`/sbin/m5 initparam` > > Which I think is correct. > But I still can't seem to pass n to the rcs file. Ill show you something I > tried which is obviously incorrect, so hopefully I can be pointed in the > right direction: > > setenv n 4 > ./build/ALPHA_FS/m5.opt configs/example/fs.py -n $n -b canneal > > Obviously doesn't work. Any help would be greatly appreciated. > > On Sat, May 12, 2012 at 6:31 PM, Ali Saidi <[email protected]> wrote: > Take a look at the advanced bash scripting guide: > http://tldp.org/LDP/abs/html/ > > > Pretty much: > val=`m5 initparam` > and -b Canneal -n $val > > Ali > > On May 12, 2012, at 5:27 PM, ef wrote: > >> I am confused here, I understand how to get the initparam in the rcs file. I >> see that under src/sim/System.py I can set the parameter : >> init_param = Param.UInt64(4, "numerical value to pass into simulator") >> In this example I set it to 4, how do I do this by the command line. >> >> Is there anyway to pass the value through here instead of manually editing >> System.py: >> ./build/ALPHA_FS/m5.opt configs/example/fs.py -n 4 -b canneal >> >> Thanks in advance >> >> On Mon, May 7, 2012 at 11:27 PM, Ali Saidi <[email protected]> wrote: >> Hi, >> >> >> You can use initparam to pass one parameter. Normally I would have one rcS >> script per benchmark and use the initparam to select the number (4) in this >> case. >> >> >> Ali >> >> >> On 07.05.2012 22:09, ef wrote: >> >>> Is it possible to pass any arguments to the rcS file? >>> >>> For instance on the command line to run gem5 I set -b Canneal and -n 4 can >>> I pass Canneal and 4 to the rcS file? >>> Thanks in advance. >> >> >> >> _______________________________________________ >> gem5-users mailing list >> [email protected] >> http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users >> >> _______________________________________________ >> gem5-users mailing list >> [email protected] >> http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users > > > _______________________________________________ > gem5-users mailing list > [email protected] > http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users > > _______________________________________________ > gem5-users mailing list > [email protected] > http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
_______________________________________________ gem5-users mailing list [email protected] http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
