ARM-software / workload-automation

A framework for automating workload execution and measurement collection on ARM devices.
Apache License 2.0
147 stars 117 forks source link

Setting GPU frequency #1264

Open fastpooh opened 3 weeks ago

fastpooh commented 3 weeks ago

** Hello, I am currently using pixel6 and pixel8. I used to set CPU frequency for both devices for my research using .yaml file on workload automation.

I am wondering if there is a way to set GPU frequency using workload automation. Also, is there any way I can change CPU/GPU frequency real-time? ex) set GPU frequency to 324000 after 3 seconds.

marcbonnici commented 2 weeks ago

Hello,

I am wondering if there is a way to set GPU frequency using workload automation.

Setting the GPU frequency is not a configuration parameter that WA currently specifically exposes, however as part of an agenda you can use sysfile_values [1] to specify the configuration paths and the desired runtime frequencies. WA will then ensure these values are configured as part of the device configuration stage.

Also, is there any way I can change CPU/GPU frequency real-time?

WA configuration is designed to configure the device to a known state before a workload commence. Therefore you could configure multiple workloads with different frequencies, however WA doesn't support adjusting this during a workload itself. To achieve this today this would likely require a customized workload to configure the device at the desired time.

[1] https://workload-automation.readthedocs.io/en/latest/user_information.html#configuring-workloads