pub unsafe extern "C" fn cutensorCreatePlanPreference(
handle: cutensorHandle_t,
pref: *mut cutensorPlanPreference_t,
algo: cutensorAlgo_t,
jitMode: cutensorJitMode_t,
) -> cutensorStatus_tExpand description
Allocates the cutensorPlanPreference_t, enabling users to limit the applicable kernels for a given plan/operation.
§Parameters
handle: Opaque handle holding cuTENSOR’s library context.pref: Pointer to the structure holding the cutensorPlanPreference_t allocated by this function. See cutensorPlanPreference_t.algo: Allows users to select a specific algorithm.cutensorAlgo_t::CUTENSOR_ALGO_DEFAULTlets the heuristic choose the algorithm. Any value >= 0 selects a specific GEMM-like algorithm and deactivates the heuristic. If a specified algorithm is not supportedcutensorStatus_t::CUTENSOR_STATUS_NOT_SUPPORTEDis returned. See cutensorAlgo_t for additional choices.jitMode: Determines if cuTENSOR is allowed to use JIT-compiled kernels (leading to a longer plan-creation phase); see cutensorJitMode_t.