#[repr(u32)]pub enum cutensorPlanPreferenceAttribute_t {
CUTENSOR_PLAN_PREFERENCE_AUTOTUNE_MODE = 0,
CUTENSOR_PLAN_PREFERENCE_CACHE_MODE = 1,
CUTENSOR_PLAN_PREFERENCE_INCREMENTAL_COUNT = 2,
CUTENSOR_PLAN_PREFERENCE_ALGO = 3,
CUTENSOR_PLAN_PREFERENCE_KERNEL_RANK = 4,
CUTENSOR_PLAN_PREFERENCE_JIT = 5,
CUTENSOR_PLAN_PREFERENCE_GPU_ARCH = 6,
}Expand description
This enum lists all attributes of a cutensorPlanPreference_t object that can be modified.
Variants§
CUTENSOR_PLAN_PREFERENCE_AUTOTUNE_MODE = 0
cutensorAutotuneMode_t: Determines if recurrent executions of the plan (e.g., via cutensorContract, cutensorPermute) should autotune (i.e., try different kernels); see section “Plan Cache” for details.
CUTENSOR_PLAN_PREFERENCE_CACHE_MODE = 1
cutensorCacheMode_t: Determines if the corresponding algorithm/kernel for this plan should be cached and it gives fine control over what is considered a cachehit.
CUTENSOR_PLAN_PREFERENCE_INCREMENTAL_COUNT = 2
int32_t: Only applicable if cutensorPlanPreferenceAttribute_t::CUTENSOR_PLAN_PREFERENCE_CACHE_MODE is set to cutensorAutotuneMode_t::CUTENSOR_AUTOTUNE_MODE_INCREMENTAL.
CUTENSOR_PLAN_PREFERENCE_ALGO = 3
cutensorAlgo_t: Fixes a certain cutensorAlgo_t.
CUTENSOR_PLAN_PREFERENCE_KERNEL_RANK = 4
int32_t: Fixes a kernel (a sub variant of an algo; e.g., kernel_rank==1 while algo == cutensorAlgo_t::CUTENSOR_ALGO_TGETT would select the second-best GETT kernel/variant according to cuTENSOR’s performance model; kernel_rank==2 would select the third-best).
CUTENSOR_PLAN_PREFERENCE_JIT = 5
cutensorJitMode_t: determines if just-in-time compilation is enabled or disabled (default: cutensorJitMode_t::CUTENSOR_JIT_MODE_NONE).
CUTENSOR_PLAN_PREFERENCE_GPU_ARCH = 6
int32_t: Plan for a specific GPU architecture and not one associated with the context. Value should encode SM version via 10 * SM.major + SM.minor. Currently only SM versions 80, 90 and 100 are supported.
Trait Implementations§
Source§impl Clone for cutensorPlanPreferenceAttribute_t
impl Clone for cutensorPlanPreferenceAttribute_t
Source§fn clone(&self) -> cutensorPlanPreferenceAttribute_t
fn clone(&self) -> cutensorPlanPreferenceAttribute_t
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 cutensorPlanPreferenceAttribute_t
impl Eq for cutensorPlanPreferenceAttribute_t
Source§impl From<cutensorPlanPreferenceAttribute_t> for u32
impl From<cutensorPlanPreferenceAttribute_t> for u32
Source§fn from(enum_value: cutensorPlanPreferenceAttribute_t) -> Self
fn from(enum_value: cutensorPlanPreferenceAttribute_t) -> Self
Source§impl Ord for cutensorPlanPreferenceAttribute_t
impl Ord for cutensorPlanPreferenceAttribute_t
Source§fn cmp(&self, other: &cutensorPlanPreferenceAttribute_t) -> Ordering
fn cmp(&self, other: &cutensorPlanPreferenceAttribute_t) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialEq for cutensorPlanPreferenceAttribute_t
impl PartialEq for cutensorPlanPreferenceAttribute_t
Source§fn eq(&self, other: &cutensorPlanPreferenceAttribute_t) -> bool
fn eq(&self, other: &cutensorPlanPreferenceAttribute_t) -> bool
self and other values to be equal, and is used by ==.