[Advcomparch] problima epanalipsis read configuration

Konstantinos Nikas knikas at cslab.ece.ntua.gr
Tue Apr 5 11:46:43 EEST 2011


Καλημέρα,

ο simics πρέπει να κλείνει όταν τελειώνει η κάθε προσομοίωση που τρέχεις.

Απλά θα φτιάξεις ένα bash script, το οποίο θα καλεί επαναληπτικά το simics:

#!/bin/bash

for i in {1..6}
do
   ./simics -stall -e "$mem_id"=$i -x script
done

το οποίο script θα είναι σαν αυτό που λες απλά χωρίς το while αφού τώρα 
τις τιμές του $mem_id θα τις περνάει το bash script. Οπότε η προσομοίωση 
θα κάνει exit και το bash script σου θα ξεκινάει τον επόμενο simics.

Κ.

On 04/05/2011 11:14 AM, sp k wrote:
> kalimera
>
> exo ftiaxei ena script epanaliptiko pou gia na kano oles tis prosomoioseis
> einai tis morfis:
> ---------------------------------------------------------------------------------------------------------------------------
> # Για να παρω στατιστικα !!!
>
> $mem_id = 1
>
> while $mem_id < 7 { //esto oti exo mono 6 cache hierarchy
>
> echo (" Παιρνω στατιστικα , περιπτωση hierarchy-> "+ $mem_id)
> $CACHE_HIERARCHY = ("cache-hierarchy"+$mem_id)
>
>
> read-configuration
> /home/clainmain/simics-workspace/checkpoints/after-first-break-art_bench
> echo " μολις διαβασα after-first-break-art_bench "
>
>
>
> #We disable breakpoints
> . . . .
> . . .
> . . . . .
>
> #Collect statistics
>
> $outputfile = (art_statistics/out_art+ $mem_id)
> output-file-start $outputfile
>
> dc.statistics
> ic.statistics
> l2c.statistics
>
> ptime
> output-file-stop $outputfile
>
> $mem_id+=1
>
> }
>
> exit
> ------------------------------------------------------------------------------
> kalei aftomata chache hierarchy kai apothikeyei aftomata se arithmimena
> arxeia
>
> to trexo dokimastika 1 fora (xoris while ) kai leitourgei apsoga
> energopoio to while kai stin arxi tis protis epanalipsis emfanizei:
>
> Παιρνω στατιστικα , περιπτωση hierarchy-> 2
> Using object prefix 'machine_0_'
> [default_sync_domain error] min-latency can not change once links have
> been connected
> There is already at least a link (component 'ethernet_link_cmp0' with
> link name 'link0') with the same link name, which is probably not what
> you want. Choose a different link name for your new link.
> Failed reading configuration: Error setting attribute link_name in
> machine_0_ethernet_link_cmp0: illegal value
> This has left the configuration system in an inconsistent state.
> Restarting Simics is recommended.
> [script_take_statistics:16] error in 'read-configuration' command
> Error - interrupting script.
>
> diavasa sto list archive oti ofiletai sto oti den exei kanei exit apo
> tin konsola simics kai les sto simics na trexei ena mixanima pou idi
> trexei.. ,ok
> yparxei tropos na to parakampso to broblima xoris na ftiaxo kainourioapo
> tin arxi script (den nomizo na prolabaino...)
>
>
>
> eyxaristo
>
>
>
> _______________________________________________
> Advcomparch mailing list
> Advcomparch at lists.cslab.ece.ntua.gr
> http://lists.cslab.ece.ntua.gr/mailman/listinfo/advcomparch

-- 
Dr. Konstantinos Nikas
Computing Systems Laboratory
School of Electrical and Computer Engineering
National Technical University of Athens

Tel: +30-210-7724159
e-mail: knikas at cslab.ece.ntua.gr
http://www.cslab.ece.ntua.gr/~knikas



More information about the Advcomparch mailing list