Hi,

Thank you so much, will definitely contribute if I can do that. On a similar 
note, I have first tried to change voltage and frequency of shader in 
gem5/configs/example/apu_se.py (line 412). The thing is, beyond a certain range 
of GPU frequency, it crashes which makes sense. But if I put gpu_voltage=0.0V 
it still works fine as it is (with same ticks and all). Even I have changed 
CPUvoltage and gpu_voltage to 0.0V but it works which is wired. Where may be 
the issue do you think?

Regards,
Kazi
________________________________
From: Matt Sinclair <sincl...@cs.wisc.edu>
Sent: Monday, April 3, 2023 5:00 PM
To: gem5-users@gem5.org <gem5-users@gem5.org>
Cc: Mejbaul Islam, Kazi M. <kmejbaulis...@ufl.edu>; Poremba, Matthew 
<matthew.pore...@amd.com>; srikan...@gmail.com <srikan...@gmail.com>
Subject: Re: How to change voltage and frequency of individual ComputeUnit for 
GPU?

[External Email]
Hi Kazi,

Srikant (CC'd) previously added some support for things like this 
(https://gem5-review.googlesource.com/c/public/gem5/+/61589<https://nam10.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgem5-review.googlesource.com%2Fc%2Fpublic%2Fgem5%2F%2B%2F61589&data=05%7C01%7Ckmejbaulislam%40ufl.edu%7C48e15cbe38e348f945ef08db34866a8c%7C0d4da0f84a314d76ace60a62331e1b84%7C0%7C0%7C638161524140252353%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=8uZWWy6MRrTlYItcNhNpy4pijQZ2USNgDp3KbtOBm%2Bk%3D&reserved=0>),
 but in the L1/L2 caches instead of the CUs specifically.  From a cursory check 
I don't see this support directly integrated into the CUs, but since they are 
ClockedObject's 
(https://gem5.googlesource.com/public/gem5/+/refs/heads/develop/src/sim/clocked_object.hh#107<https://nam10.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgem5.googlesource.com%2Fpublic%2Fgem5%2F%2B%2Frefs%2Fheads%2Fdevelop%2Fsrc%2Fsim%2Fclocked_object.hh%23107&data=05%7C01%7Ckmejbaulislam%40ufl.edu%7C48e15cbe38e348f945ef08db34866a8c%7C0d4da0f84a314d76ace60a62331e1b84%7C0%7C0%7C638161524140252353%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=WTl%2BfTaLRstvaDxzlIeu28k0gTg8YpK4n860LGaMEIA%3D&reserved=0>,
 
https://gem5.googlesource.com/public/gem5/+/refs/heads/develop/src/sim/ClockedObject.py#50<https://nam10.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgem5.googlesource.com%2Fpublic%2Fgem5%2F%2B%2Frefs%2Fheads%2Fdevelop%2Fsrc%2Fsim%2FClockedObject.py%2350&data=05%7C01%7Ckmejbaulislam%40ufl.edu%7C48e15cbe38e348f945ef08db34866a8c%7C0d4da0f84a314d76ace60a62331e1b84%7C0%7C0%7C638161524140252353%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=qIJHEJidxQDHK9vEow56jEpNXYgPe72g9%2FzacIJmG7o%3D&reserved=0>)
 my guess is you could use the above patch as a model to add the support you 
want.

If you do add it, it would be great if you can add this back as a feature for 
the community!

Thanks,
Matt
________________________________
From: Mejbaul Islam, Kazi M. via gem5-users <gem5-users@gem5.org>
Sent: Monday, April 3, 2023 3:49 AM
To: gem5-users@gem5.org <gem5-users@gem5.org>
Cc: Mejbaul Islam, Kazi M. <kmejbaulis...@ufl.edu>
Subject: [gem5-users] How to change voltage and frequency of individual 
ComputeUnit for GPU?

Hello,

In gem5/configs/example/apu_se.py, ComputeUnit is used to build GPU. Is there 
any way to change voltage and frequency of each individual ComputeUnit?

Best,
Kazi
_______________________________________________
gem5-users mailing list -- gem5-users@gem5.org
To unsubscribe send an email to gem5-users-le...@gem5.org

Reply via email to