#[non_exhaustive]#[repr(u32)]pub enum PlanPreferenceAttribute {
AutotuneMode = 0,
CacheMode = 1,
IncrementalCount = 2,
Algorithm = 3,
KernelRank = 4,
JitMode = 5,
GpuArch = 6,
}Expand description
Attributes of a PlanPreference that can be read or modified.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
AutotuneMode = 0
AutotuneMode: determines whether recurrent executions of the plan autotune.
CacheMode = 1
CacheMode: determines whether the algorithm or kernel for this plan is cached and controls what is considered a cache hit.
IncrementalCount = 2
i32: only applicable when PlanPreferenceAttribute::CacheMode is set to AutotuneMode::Incremental.
Algorithm = 3
Algorithm: fixes the algorithm.
KernelRank = 4
i32: fixes a kernel subvariant of an algorithm; for example, kernel_rank == 1 with Algorithm::Tgett selects the second-best GETT kernel variant according to cuTENSOR’s performance model, while kernel_rank == 2 selects the third-best.
JitMode = 5
JitMode: determines whether just-in-time compilation is enabled (default: JitMode::None).
GpuArch = 6
i32: plan for a specific GPU architecture instead of the architecture associated with the context.
The value encodes the SM version as 10 * SM.major + SM.minor.
Currently only SM versions 80, 90 and 100 are supported.
Trait Implementations§
Source§impl Clone for PlanPreferenceAttribute
impl Clone for PlanPreferenceAttribute
Source§fn clone(&self) -> PlanPreferenceAttribute
fn clone(&self) -> PlanPreferenceAttribute
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for PlanPreferenceAttribute
Source§impl Debug for PlanPreferenceAttribute
impl Debug for PlanPreferenceAttribute
Source§impl Display for PlanPreferenceAttribute
impl Display for PlanPreferenceAttribute
impl Eq for PlanPreferenceAttribute
Source§impl From<PlanPreferenceAttribute> for u32
impl From<PlanPreferenceAttribute> for u32
Source§fn from(enum_value: PlanPreferenceAttribute) -> Self
fn from(enum_value: PlanPreferenceAttribute) -> Self
Source§impl From<PlanPreferenceAttribute> for cutensorPlanPreferenceAttribute_t
impl From<PlanPreferenceAttribute> for cutensorPlanPreferenceAttribute_t
Source§fn from(value: PlanPreferenceAttribute) -> Self
fn from(value: PlanPreferenceAttribute) -> Self
Source§impl From<cutensorPlanPreferenceAttribute_t> for PlanPreferenceAttribute
impl From<cutensorPlanPreferenceAttribute_t> for PlanPreferenceAttribute
Source§fn from(value: cutensorPlanPreferenceAttribute_t) -> Self
fn from(value: cutensorPlanPreferenceAttribute_t) -> Self
Source§impl Hash for PlanPreferenceAttribute
impl Hash for PlanPreferenceAttribute
Source§impl PartialEq for PlanPreferenceAttribute
impl PartialEq for PlanPreferenceAttribute
Source§fn eq(&self, other: &PlanPreferenceAttribute) -> bool
fn eq(&self, other: &PlanPreferenceAttribute) -> bool
self and other values to be equal, and is used by ==.