[gem5-users] Re: RISCV Power/Energy Estimation

2023-05-09 Thread 최순원 via gem5-users
Dear Andreas and Nikos

Thank you very much.
I will compare python scripts and my stats.txt.

After that If I got the correct output files, how to calculate a total
power consumption of core? Is there a equation to calculate a total power
consumption?

Best regards,
Choi


2023년 5월 10일 (수) 오전 2:05, Νικόλαος Ταμπουρατζής 님이
작성:

>   Dear Choi,
>
> I have the same results with you except from Runtime Dynamic. As
> Andreas said, you may need to check the stats.txt file and the
> GEM5toMcPAT.py python script.
>
>
> Best regards,
> Nikos
>
>
> Quoting Andreas Brokalakis via gem5-users :
>
> > Dear Choi,
> >
> >there seems to be a problem with your results. If you see the
> > Runtime Dynamic results, it mentions that they are either inf or
> > nan. This means that in the xml file that was produced from the
> > python script, the runtime statistics have not been written properly.
> >As such McPAT does not compute the dynamic power consumption
> > based on the runtime statistics produced by the gem5 simulation. It
> > only computes a maximum power draw (something like a TDP value
> > instead of a power value related to the program that you are
> > actually running).
> >
> >To correct this error you need to check the stats.txt file and
> > the python script to see whether the version of gem5 that you are
> > using somehow has modified the syntax or structure of the stats.txt
> > file and therefore you need to account for these changes when you
> > parse it with the python script.
> >
> >Best regards,
> >Andreas
> >
> >
> >
> >  On Tue, May 9, 2023 at 7:35 PM 최순원 via gem5-users
> >  wrote:
> >
> >> Dear Νικόλαος Ταμπουρατζής,
> >>
> >>  Your description is perfect. I was able to get
> >> "mcpatOutput.txt" without any problem like this.
> >>
> >>
> >>  If you don't mind, can I ask you two more questions?
> >>
> >>  1) How can I get the total power consumption of the processor
> >> from the output file information?
> >>
> >> 2) Can I see the your "mcpatOutput.txt" file? I want to compare
> >> with my output file.
> >>
> >>  Thanks for your time.
> >>
> >>  Best regards,
> >>  Choi
> >>
> >>  2023년 5월 10일 (수) 오전 12:56, Νικόλαος Ταμπουρατζής
> >> 님이 작성:
> >>
> >>> _Dear Soonwon,_
> >>>_ _
> >>>_I had used McPAT v1.3. Specifically, you can do the following:_
> >>>_ _
> >>>_1) git clone https://github.com/H2020-COSSIM/cMcPAT.git
> >>>  _
> >>>_2) cd cMcPAT/mcpat_
> >>>
> >>>
> >>>_3) make all
> >>>  _
> >>>_4) cd cMcPAT/Scripts (here you can see the GEM5ToMcPAT.py).
> >>> Usage: GEM5toMcPAT.py [options]   >>> file (json)>  -o 
> >>>  _
> >>>_Example GEM5ToMcPAT.py $GEM5/m5out/stats.txt
> >>> $GEM5/m5out/config.json
> >>>
> cMcPAT/mcpat/ProcessorDescriptionFiles/ARM_AtomicSimpleCPU_template.xml -o
> >>> cMcPAT/mcpatNode.xml
> >>>  _
> >>>_To be noticed to replace the correct of the above paths
> >>> and the mcpatNode.xml will be produced._
> >>>
> >>>
> >>>_5) Run McPAT using the mcpatNode.xml from step 4:
> >>> cMcPAT/mcpat/mcpat -infile cMcPAT/mcpatNode.xml -print_level 1 >
> >>> cMcPAT/mcpatOutput.txt_
> >>>_ _
> >>>_You may use print_level from 1 to 5 (more detailed output).
> >>>
> >>> In the above example I have used a generic
> >>> ARM_AtomicSimpleCPU_template.xml an I tested using the latest gem5
> >>> version (v22.1). You may change it according your ARM processor._
> >>>
> >>>_Best regards,
> >>> Nikos
> >>>
> >>> Quoting 최순원 via gem5-users :_
> >>>
>  _Hello, I read your question, “RISCV Power/Energy Estimation”.
> 
>  I’m sorry because It is not a answer to your question.
> 
>  You said that “I got power/energy estimations of ARM and X86 ISAs
>  through McPAT.”.
>  I want to measure a ARM core’s power consumption.
>  I got the gem5 simulations results, “stats.txt”, but I can’t see
>  the power consumption of cpu.
> 
>  Can you tell me how you got the CPU power consumption?
> 
>  Best regards,
>  Soonwon Choi[1]_
> >>>
> >>>
> >>>
> >>
> >> 
> >> gem5-users mailing list -- gem5-users@gem5.org
> >> To unsubscribe send an email to gem5-users-leave@gem5.org_
>
>
>
> Links:
> --
> [1]
>
___
gem5-users mailing list -- gem5-users@gem5.org
To unsubscribe send an email to gem5-users-le...@gem5.org


[gem5-users] Re: RISCV Power/Energy Estimation

2023-05-09 Thread Νικόλαος Ταμπουρατζής via gem5-users

 Dear Choi,

I have the same results with you except from Runtime Dynamic. As  
Andreas said, you may need to check the stats.txt file and the  
GEM5toMcPAT.py python script.



Best regards,
Nikos


Quoting Andreas Brokalakis via gem5-users :


Dear Choi,
    
   there seems to be a problem with your results. If you see the  
Runtime Dynamic results, it mentions that they are either inf or  
nan. This means that in the xml file that was produced from the  
python script, the runtime statistics have not been written properly.
   As such McPAT does not compute the dynamic power consumption  
based on the runtime statistics produced by the gem5 simulation. It  
only computes a maximum power draw (something like a TDP value  
instead of a power value related to the program that you are  
actually running).

    
   To correct this error you need to check the stats.txt file and  
the python script to see whether the version of gem5 that you are  
using somehow has modified the syntax or structure of the stats.txt  
file and therefore you need to account for these changes when you  
parse it with the python script.

    
   Best regards,
   Andreas
    
    

 On Tue, May 9, 2023 at 7:35 PM 최순원 via gem5-users  
 wrote:



Dear Νικόλαος Ταμπουρατζής,
  
 Your description is perfect. I was able to get  
"mcpatOutput.txt" without any problem like this.


  
 If you don't mind, can I ask you two more questions?
  
 1) How can I get the total power consumption of the processor  
from the output file information?


2) Can I see the your "mcpatOutput.txt" file? I want to compare  
with my output file.

  
 Thanks for your time.
  
 Best regards,
 Choi

 2023년 5월 10일 (수) 오전 12:56, Νικόλαος Ταμπουρατζής  
님이 작성:



_Dear Soonwon,_
   _ _
   _I had used McPAT v1.3. Specifically, you can do the following:_
   _ _
   _1) git clone https://github.com/H2020-COSSIM/cMcPAT.git
 _
   _2) cd cMcPAT/mcpat_

    
   _3) make all
 _
   _4) cd cMcPAT/Scripts (here you can see the GEM5ToMcPAT.py).
Usage: GEM5toMcPAT.py [options]  file (json)>  -o 

 _
   _Example GEM5ToMcPAT.py $GEM5/m5out/stats.txt  
$GEM5/m5out/config.json  
cMcPAT/mcpat/ProcessorDescriptionFiles/ARM_AtomicSimpleCPU_template.xml -o  
cMcPAT/mcpatNode.xml

 _
   _To be noticed to replace the correct of the above paths  
and the mcpatNode.xml will be produced._


    
   _5) Run McPAT using the mcpatNode.xml from step 4:  
cMcPAT/mcpat/mcpat -infile cMcPAT/mcpatNode.xml -print_level 1 >  
cMcPAT/mcpatOutput.txt_

   _ _
   _You may use print_level from 1 to 5 (more detailed output).

In the above example I have used a generic  
ARM_AtomicSimpleCPU_template.xml an I tested using the latest gem5  
version (v22.1). You may change it according your ARM processor._


   _Best regards,
Nikos

Quoting 최순원 via gem5-users :_


_Hello, I read your question, “RISCV Power/Energy Estimation”.

I’m sorry because It is not a answer to your question.

You said that “I got power/energy estimations of ARM and X86 ISAs  
through McPAT.”.

I want to measure a ARM core’s power consumption.
I got the gem5 simulations results, “stats.txt”, but I can’t see  
the power consumption of cpu.


Can you tell me how you got the CPU power consumption?

Best regards,
Soonwon Choi[1]_



 



gem5-users mailing list -- gem5-users@gem5.org
To unsubscribe send an email to gem5-users-leave@gem5.org_




Links:
--
[1]
___
gem5-users mailing list -- gem5-users@gem5.org
To unsubscribe send an email to gem5-users-le...@gem5.org


[gem5-users] Re: RISCV Power/Energy Estimation

2023-05-09 Thread Andreas Brokalakis via gem5-users
Dear Choi,

there seems to be a problem with your results. If you see the Runtime
Dynamic results, it mentions that they are either inf or nan. This means
that in the xml file that was produced from the python script, the runtime
statistics have not been written properly.
As such McPAT does not compute the dynamic power consumption based on the
runtime statistics produced by the gem5 simulation. It only computes a
maximum power draw (something like a TDP value instead of a power value
related to the program that you are actually running).

To correct this error you need to check the stats.txt file and the python
script to see whether the version of gem5 that you are using somehow has
modified the syntax or structure of the stats.txt file and therefore you
need to account for these changes when you parse it with the python script.

Best regards,
Andreas



On Tue, May 9, 2023 at 7:35 PM 최순원 via gem5-users 
wrote:

> Dear Νικόλαος Ταμπουρατζής,
>
> Your description is perfect. I was able to get "mcpatOutput.txt" without
> any problem like this.
> [image: image.png]
>
> If you don't mind, can I ask you two more questions?
>
> 1) How can I get the total power consumption of the processor from the
> output file information?
>
> 2) Can I see the your "mcpatOutput.txt" file? I want to compare with my
> output file.
>
> Thanks for your time.
>
> Best regards,
> Choi
>
> 2023년 5월 10일 (수) 오전 12:56, Νικόλαος Ταμπουρατζής <
> ntampourat...@ece.auth.gr>님이 작성:
>
>> Dear Soonwon,
>>
>> I had used McPAT v1.3. Specifically, you can do the following:
>>
>> 1) git clone https://github.com/H2020-COSSIM/cMcPAT.git
>>
>> 2) cd cMcPAT/mcpat
>>
>>
>> 3) make all
>>
>> 4) cd cMcPAT/Scripts (here you can see the GEM5ToMcPAT.py).
>> Usage: GEM5toMcPAT.py [options]  > (json)>  -o 
>>
>> Example GEM5ToMcPAT.py $GEM5/m5out/stats.txt $GEM5/m5out/config.json
>> cMcPAT/mcpat/ProcessorDescriptionFiles/ARM_AtomicSimpleCPU_template.xml -o
>> cMcPAT/mcpatNode.xml
>>
>> To be noticed to replace the correct of the above paths and the
>> mcpatNode.xml will be produced.
>>
>>
>> 5) Run McPAT using the mcpatNode.xml from step 4: cMcPAT/mcpat/mcpat
>> -infile cMcPAT/mcpatNode.xml -print_level 1 > cMcPAT/mcpatOutput.txt
>>
>> You may use print_level from 1 to 5 (more detailed output).
>>
>> In the above example I have used a generic
>> ARM_AtomicSimpleCPU_template.xml an I tested using the latest gem5 version
>> (v22.1). You may change it according your ARM processor.
>>
>> Best regards,
>> Nikos
>>
>> Quoting 최순원 via gem5-users :
>>
>> Hello, I read your question, “RISCV Power/Energy Estimation”.
>>
>> I’m sorry because It is not a answer to your question.
>>
>> You said that “I got power/energy estimations of ARM and X86 ISAs through
>> McPAT.”.
>> I want to measure a ARM core’s power consumption.
>> I got the gem5 simulations results, “stats.txt”, but I can’t see the
>> power consumption of cpu.
>>
>> Can you tell me how you got the CPU power consumption?
>>
>> Best regards,
>> Soonwon Choi
>>
>>
>>
>> ___
> gem5-users mailing list -- gem5-users@gem5.org
> To unsubscribe send an email to gem5-users-le...@gem5.org
>
___
gem5-users mailing list -- gem5-users@gem5.org
To unsubscribe send an email to gem5-users-le...@gem5.org


[gem5-users] Re: RISCV Power/Energy Estimation

2023-05-09 Thread 최순원 via gem5-users
Dear Νικόλαος Ταμπουρατζής,

Your description is perfect. I was able to get "mcpatOutput.txt" without
any problem like this.
[image: image.png]

If you don't mind, can I ask you two more questions?

1) How can I get the total power consumption of the processor from the
output file information?

2) Can I see the your "mcpatOutput.txt" file? I want to compare with my
output file.

Thanks for your time.

Best regards,
Choi

2023년 5월 10일 (수) 오전 12:56, Νικόλαος Ταμπουρατζής 님이
작성:

> Dear Soonwon,
>
> I had used McPAT v1.3. Specifically, you can do the following:
>
> 1) git clone https://github.com/H2020-COSSIM/cMcPAT.git
>
> 2) cd cMcPAT/mcpat
>
>
> 3) make all
>
> 4) cd cMcPAT/Scripts (here you can see the GEM5ToMcPAT.py).
> Usage: GEM5toMcPAT.py [options]   (json)>  -o 
>
> Example GEM5ToMcPAT.py $GEM5/m5out/stats.txt $GEM5/m5out/config.json
> cMcPAT/mcpat/ProcessorDescriptionFiles/ARM_AtomicSimpleCPU_template.xml -o
> cMcPAT/mcpatNode.xml
>
> To be noticed to replace the correct of the above paths and the
> mcpatNode.xml will be produced.
>
>
> 5) Run McPAT using the mcpatNode.xml from step 4: cMcPAT/mcpat/mcpat
> -infile cMcPAT/mcpatNode.xml -print_level 1 > cMcPAT/mcpatOutput.txt
>
> You may use print_level from 1 to 5 (more detailed output).
>
> In the above example I have used a generic
> ARM_AtomicSimpleCPU_template.xml an I tested using the latest gem5 version
> (v22.1). You may change it according your ARM processor.
>
> Best regards,
> Nikos
>
> Quoting 최순원 via gem5-users :
>
> Hello, I read your question, “RISCV Power/Energy Estimation”.
>
> I’m sorry because It is not a answer to your question.
>
> You said that “I got power/energy estimations of ARM and X86 ISAs through
> McPAT.”.
> I want to measure a ARM core’s power consumption.
> I got the gem5 simulations results, “stats.txt”, but I can’t see the power
> consumption of cpu.
>
> Can you tell me how you got the CPU power consumption?
>
> Best regards,
> Soonwon Choi
>
>
>
>
___
gem5-users mailing list -- gem5-users@gem5.org
To unsubscribe send an email to gem5-users-le...@gem5.org


[gem5-users] Re: gem5 garnet 3.0 standalone

2023-05-09 Thread Karim Soliman via gem5-users
Thank you so much for your help.

Best Regards,
*Eng. Karim Soliman*
Teaching Assistant
Computer Engineering Department
Pharos University in Alexandria (P.U.A)


On Tue, May 9, 2023 at 6:10 PM gabriel.busnot--- via gem5-users <
gem5-users@gem5.org> wrote:

> Hi Karim,
>
> You can run simulation for a few thousand cycles using
> m5.simulate(some_amount_of_ticks), then reset stats using m5.stats.reset()
> and then run m5.simulate again. You will collect stats on a warmed up
> system.
>
> Regards,
>
> Gabriel
> ___
> gem5-users mailing list -- gem5-users@gem5.org
> To unsubscribe send an email to gem5-users-le...@gem5.org
>
___
gem5-users mailing list -- gem5-users@gem5.org
To unsubscribe send an email to gem5-users-le...@gem5.org


[gem5-users] Re: RISCV Power/Energy Estimation

2023-05-09 Thread Νικόλαος Ταμπουρατζής via gem5-users

 Dear Soonwon,
  
 I had used McPAT v1.3. Specifically, you can do the following:
  
 1) git clone https://github.com/H2020-COSSIM/cMcPAT.git
 
 2) cd cMcPAT/mcpat

 3) make all
 
 4) cd cMcPAT/Scripts (here you can see the GEM5ToMcPAT.py).
Usage: GEM5toMcPAT.py [options]  (json)>  -o 

 
 Example GEM5ToMcPAT.py $GEM5/m5out/stats.txt $GEM5/m5out/config.json  
cMcPAT/mcpat/ProcessorDescriptionFiles/ARM_AtomicSimpleCPU_template.xml -o  
cMcPAT/mcpatNode.xml

 
 To be noticed to replace the correct of the above paths and the  
mcpatNode.xml will be produced.


 5) Run McPAT using the mcpatNode.xml from step 4: cMcPAT/mcpat/mcpat  
-infile cMcPAT/mcpatNode.xml -print_level 1 > cMcPAT/mcpatOutput.txt

  
 You may use print_level from 1 to 5 (more detailed output).

In the above example I have used a generic  
ARM_AtomicSimpleCPU_template.xml an I tested using the latest gem5  
version (v22.1). You may change it according your ARM processor.


 Best regards,
Nikos

Quoting 최순원 via gem5-users :


Hello, I read your question, “RISCV Power/Energy Estimation”.

I’m sorry because It is not a answer to your question.

You said that “I got power/energy estimations of ARM and X86 ISAs  
through McPAT.”.

I want to measure a ARM core’s power consumption.
I got the gem5 simulations results, “stats.txt”, but I can’t see the  
power consumption of cpu.


Can you tell me how you got the CPU power consumption?

Best regards,
Soonwon Choi[1]




Links:
--
[1]
___
gem5-users mailing list -- gem5-users@gem5.org
To unsubscribe send an email to gem5-users-le...@gem5.org


[gem5-users] How to measure a ARM core's power consumption?

2023-05-09 Thread 최순원 via gem5-users
Hello,

I'm new to gem5 and have finished "*Getting Started*" and "
*Modifying/Extending*" in the gem5 official documentation.
(https://www.gem5.org/documentation/learning_gem5/part1/simple_config/)

I create a simple configuration script as in "*Getting Started*".
(
https://gem5.googlesource.com/public/gem5/+/refs/heads/stable/configs/learning_gem5/part1/simple.py
)

And I changed from X86 to ARM core by referring to "*Extending gem5 for ARM*
".

   - ...
   - system.clk_domain.voltage_domain = VoltageDomain()
   - system.cpu = ArmTimingSimpleCPU()
   - ...

The questing starts here.
How to get the power information about the arm core in this simple system,
not the full system?
I already got a "stats.txt" file, but there is no cpu power information
there.

Thanks for your time.

Thanks,
Choi
___
gem5-users mailing list -- gem5-users@gem5.org
To unsubscribe send an email to gem5-users-le...@gem5.org


[gem5-users] RISCV Power/Energy Estimation

2023-05-09 Thread 최순원 via gem5-users
Hello, I read your question, “RISCV Power/Energy Estimation”.

I’m sorry because It is not a answer to your question.

You said that “I got power/energy estimations of ARM and X86 ISAs through
McPAT.”.
I want to measure a ARM core’s power consumption.
I got the gem5 simulations results, “stats.txt”, but I can’t see the power
consumption of cpu.

Can you tell me how you got the CPU power consumption?

Best regards,
Soonwon Choi
___
gem5-users mailing list -- gem5-users@gem5.org
To unsubscribe send an email to gem5-users-le...@gem5.org


[gem5-users] Re: gem5 garnet 3.0 standalone

2023-05-09 Thread gabriel.busnot--- via gem5-users
Hi Karim,\
\
You can run simulation for a few thousand cycles using 
m5.simulate(some_amount_of_ticks), then reset stats using m5.stats.reset() and 
then run m5.simulate again. You will collect stats on a warmed up system.

Regards,

Gabriel
___
gem5-users mailing list -- gem5-users@gem5.org
To unsubscribe send an email to gem5-users-le...@gem5.org