Hello
It depends a lot on what type of simulation you use (SE or FS) and what type of
CPU (AtomicSimple, DerivO3 etc).
I only simulate FS and first of all, to make sure that you only get the stats
for the application (and not booting the OS + application) you first need to
reset (or dumpreset) the stats after booting. If you use AtomicSimpleCPU, there
is a system.cpu.num_fp_insts counter that is reported. For DerivO3CPU I use the
sum of several counters: system.cpu.iq.FU_type_0::FloatAdd +
system.cpu.iq.FU_type_0::FloatCmp + system.cpu.iq.FU_type_0::FloatCvt +
system.cpu.iq.FU_type_0::FloatMult + system.cpu.iq.FU_type_0::Div +
system.cpu.iq.FU_type_0::FloatSqrt.
Hope this helps.
Best regards,
Alexandru
________________________________
From: Hamid Reza Khaleghzadeh <[email protected]>
To: gems-users <[email protected]>; gem5 users mailing list
<[email protected]>; gem5 users mailing list <[email protected]>
Sent: Thursday, August 11, 2011 1:40 PM
Subject: [gem5-users] obtaining number of folating point operations
Hi all,
I want to obtain number of floating point operations that occurs in
the executed application, but cannot find any field in stat file that
determine this parameter. Could you tell e how i can get it?
Thanks.
_______________________________________________
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