[gem5-users] Re: How to use Gem5?

2023-12-24 Thread Anamika via gem5-users
Hi,

I want to compute the power consumption of the processor, while encoding
data. (power consumed by an specific application like encoder/decoder)

I have python script for the encoder. (Creating the SimObject is yet a task
for me, I am going through the video available on YouTube for creating
theSimObject.)

The stats and output are stored in m5out stats.txt file.
But I don't know how power will be computed.
What should be the command I should give to run my script?

Kindly help.
Thank you...


On Fri, Dec 22, 2023, 05:48 Hoa Nguyen  wrote:

> Hi Anamika,
>
> Hey there. The se.py script has been depreciated in favor of the new gem5
> standard library. You can find examples of using the standard library,
> https://github.com/gem5/gem5/tree/stable/configs/example/gem5_library.
>
> The internal of the standard library (how components are constructed and
> connected) are here,
> https://github.com/gem5/gem5/tree/stable/src/python/gem5.
>
> Regarding developing a simulation component (or a SimObject), which is a
> media decoder accelerator in your case, you can start from learning gem5
> here,
> https://www.gem5.org/documentation/learning_gem5/part2/helloobject/, or
> the tutorial from 2022 gem5 bootcamp,
> https://youtube.com/watch?v=OcXA1D4b1RA.
>
> At a high level, every SimObject has a Python class that is binded to a
> C++ class. The Python interface provides a way for you to input the
> parameters to your component and to connect SimObjects. You'd need to
> implement the C++ part, which performs the functionalities of the
> SimObject, like decoding a stream of bits.
>
> Regards,
> Hoa Nguyen
>
> On Thu, Dec 21, 2023, 09:36 Anamika via gem5-users 
> wrote:
>
>> Gem5 is primarily a computer architecture simulator. Can I use it to
>> simulate it for specific application wiz. encode a 4k video file (HEVC) as
>> input data to a LDPC encoder, followed by MQAM modulation for energy
>> consumption estimation? If Yes, where to start? How to create the
>> SimObjects?
>>
>> # Set up video encoding components class HEVCEncoder(SimObject):
>> pass
>> class LDPC(SimObject):
>> pass
>> class MQAMModulator(SimObject):
>> pass
>>
>>   Thank You, Regards
>> Anamika
>> ___
>> 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] Support for ARM MPAM and RISC-V CBQRI in GEM5!

2023-12-24 Thread Amir Kh via gem5-users
Hello everyone,

I'm looking for information regarding the availability of support for ARM MPAM 
and RISC-V CBQRI in GEM5. If anyone has any knowledge about these features or 
can provide assistance, I would greatly appreciate it. Thank you in advance for 
your help.

Best regards,

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


[gem5-users] Entropy Pool and getrandom - X86 FS Simulation

2023-12-24 Thread Abdelrahman S. Hussein via gem5-users
Hello,

I am trying to run Cassandra benchmark from the Dacapo benchmark suite. I
am using gem5 v23.0.1 and the simulation is full system X86 ISA.

During the initialization phase of the Cassandra benchmark during the
simulation on gem5, I encountered this error:
```shell
: getrandom indicates that the entropy pool has not been
initialized. Rather than continue with poor entropy, this process will
block until entropy is available.
```

So, I would like to inquire if the entropy pool is supported in gem5 by
default or if there is something I need to do/implement. I am basically
restoring the checkpoint using AtomicSimpleCPU after booting to run the
initialize the workload (i.e., Cassandra) but it gave me this error (or
warning, not sure).

So, would you please help me with that?

Thanks,
~Abdelrahman

--

*Best,Abdelrahman Hussein*
___
gem5-users mailing list -- gem5-users@gem5.org
To unsubscribe send an email to gem5-users-le...@gem5.org


[gem5-users] Computing Power for running an application using gen5 simulator.

2023-12-24 Thread Anamika via gem5-users
I want to compute the power consumption of the processor, while encoding
data. (power consumed by an specific application like encoder/decoder)

I have python script for the encoder. (Creating the SimObject is yet a task
for me, I am going through the video available on YouTube for creating
theSimObject.)

The stats and output are stored in m5out stats.txt file.
But I don't know how power will be computed.
What should be the command I should give to run my script?

Kindly help.
Thank you...
___
gem5-users mailing list -- gem5-users@gem5.org
To unsubscribe send an email to gem5-users-le...@gem5.org