Skip to main content

plan_preference_set_algo

Function plan_preference_set_algo 

Source
pub unsafe fn plan_preference_set_algo(
    handle: cutensorHandle_t,
    pref: cutensorPlanPreference_t,
    algo: cutensorAlgo_t,
) -> Result<(), CutensorError>
Expand description

Set the pinned algorithm on a plan-preference object. Used by the contraction autotune to probe a specific cutensorAlgo_t value.

ยงSafety

handle and pref must be valid.