pub enum ClocksTableGen {
    Vega10(Table),
    Vega20(Table),
}
Expand description

Representation of clocks and voltage table (pp_od_clk_voltage).

NOTE: despite the names, the tables here are not exclusive to Vega10 and 20! Vega10 covers everything Vega10 and older (including Polaris), while Vega20 includes all newer gpus as well (like Navi)

Variants§

§

Vega10(Table)

Vega10 (and older) format

§

Vega20(Table)

Vega20 (and newer) format

Trait Implementations§

source§

impl ClocksTable for ClocksTableGen

source§

fn write_commands<W: Write>( &self, __enum_dispatch_arg_0: &mut W ) -> Result<(), Error>

Writes commands needed to apply the state that is in the table struct on the GPU.

source§

fn get_commands(&self) -> Result<Vec<String>, Error>

Gets the list of commands that will apply the current state of the clocks table. write_commands should generally be preferred instead.

source§

fn get_max_sclk_range(&self) -> Option<Range>

Gets the core clock range usable at the highest power level.

source§

fn get_min_sclk_range(&self) -> Option<Range>

Gets the core clock range usable at the lowest power level.

source§

fn get_max_mclk_range(&self) -> Option<Range>

Gets the memory clock range usable at the highest power level.

source§

fn get_min_mclk_range(&self) -> Option<Range>

Gets the memory clock range usable at the lowest power level.

source§

fn get_max_voltage_range(&self) -> Option<Range>

Gets the voltage range usable at the highest power level.

source§

fn get_min_voltage_range(&self) -> Option<Range>

Gets the voltage range usable at the lowest power level.

source§

fn get_current_voltage_range(&self) -> Option<Range>

Gets the current voltage range.

source§

fn get_max_sclk(&self) -> Option<i32>

Gets the current maximum core clock.

source§

fn get_current_sclk_range(&self) -> Range

Gets the current range of values for core clocks.

source§

fn get_current_mclk_range(&self) -> Range

Gets the current range of values for memory clocks.

source§

fn set_max_sclk(&mut self, __enum_dispatch_arg_0: i32) -> Result<(), Error>

Sets the maximum core clock.

source§

fn set_max_sclk_unchecked( &mut self, __enum_dispatch_arg_0: i32 ) -> Result<(), Error>

Sets the maximum core clock (without checking if it’s in the allowed range).

source§

fn set_min_sclk(&mut self, __enum_dispatch_arg_0: i32) -> Result<(), Error>

Sets the minimum core clock.

source§

fn set_min_sclk_unchecked( &mut self, __enum_dispatch_arg_0: i32 ) -> Result<(), Error>

Sets the minimum core clock (without checking if it’s in the allowed range).

source§

fn get_max_mclk(&self) -> Option<i32>

Gets the current maximum memory clock.

source§

fn set_max_mclk(&mut self, __enum_dispatch_arg_0: i32) -> Result<(), Error>

Sets the maximum memory clock.

source§

fn set_max_mclk_unchecked( &mut self, __enum_dispatch_arg_0: i32 ) -> Result<(), Error>

Sets the maximum memory clock (without checking if it’s in the allowed range).

source§

fn set_min_mclk(&mut self, __enum_dispatch_arg_0: i32) -> Result<(), Error>

Sets the minimum memory clock.

source§

fn set_min_mclk_unchecked( &mut self, __enum_dispatch_arg_0: i32 ) -> Result<(), Error>

Sets the minimum memory clock (without checking if it’s in the allowed range).

source§

fn set_max_voltage(&mut self, __enum_dispatch_arg_0: i32) -> Result<(), Error>

Sets the voltage to be used at the maximum clockspeed.

source§

fn set_max_voltage_unchecked( &mut self, __enum_dispatch_arg_0: i32 ) -> Result<(), Error>

Sets the voltage to be used at the maximum clockspeed (without checking if it’s in the allowed range).

source§

fn set_min_voltage(&mut self, __enum_dispatch_arg_0: i32) -> Result<(), Error>

Sets the voltage to be used at the minimum clockspeed.

source§

fn set_min_voltage_unchecked( &mut self, __enum_dispatch_arg_0: i32 ) -> Result<(), Error>

Sets the voltage to be used at the minimum clockspeed (without checking if it’s in the allowed range).

source§

fn get_max_sclk_voltage(&self) -> Option<i32>

Gets the current maximum voltage (used on maximum clockspeed).

source§

impl Clone for ClocksTableGen

source§

fn clone(&self) -> ClocksTableGen

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for ClocksTableGen

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl From<Table> for ClocksTableGen

source§

fn from(v: Table) -> ClocksTableGen

Converts to this type from the input type.
source§

impl From<Table> for ClocksTableGen

source§

fn from(v: Table) -> ClocksTableGen

Converts to this type from the input type.
source§

impl FromStr for ClocksTableGen

§

type Err = Error

The associated error which can be returned from parsing.
source§

fn from_str(s: &str) -> Result<Self, Error>

Parses a string s to return a value of this type. Read more
source§

impl TryInto<Table> for ClocksTableGen

§

type Error = &'static str

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<Table, <Self as TryInto<Table>>::Error>

Performs the conversion.
source§

impl TryInto<Table> for ClocksTableGen

§

type Error = &'static str

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<Table, <Self as TryInto<Table>>::Error>

Performs the conversion.

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.