frequency_controller
zeus.optimizer.pipeline_frequency.frequency_controller
Controller that sets the GPU's frequency in a non-blocking fashion.
FrequencyController
Spawns a separate process that sets the GPU frequency.
Source code in zeus/optimizer/pipeline_frequency/frequency_controller.py
13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 |
|
__init__
__init__(device_id=0)
Parameters:
Name | Type | Description | Default |
---|---|---|---|
device_id |
int
|
Device ID of the GPU to control. |
0
|
Source code in zeus/optimizer/pipeline_frequency/frequency_controller.py
16 17 18 19 20 21 22 23 24 25 26 |
|
set_frequency
set_frequency(frequency)
Set the GPU's frequency asynchronously.
If frequency
is zero, returns without doing anything.
Source code in zeus/optimizer/pipeline_frequency/frequency_controller.py
28 29 30 31 32 33 34 |
|
end
end()
Stop the controller process.
Source code in zeus/optimizer/pipeline_frequency/frequency_controller.py
36 37 38 |
|
_controller_process
_controller_process(device_id)
Receive frequency values through a queue and apply it.
Source code in zeus/optimizer/pipeline_frequency/frequency_controller.py
40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 |
|