Skip to main content

cutensorPlanGetAttribute

Function cutensorPlanGetAttribute 

Source
pub unsafe extern "C" fn cutensorPlanGetAttribute(
    handle: cutensorHandle_t,
    plan: cutensorPlan_t,
    attr: cutensorPlanAttribute_t,
    buf: *mut c_void,
    sizeInBytes: size_t,
) -> cutensorStatus_t
Expand description

Retrieves information about an already-created plan (see cutensorPlanAttribute_t)

Block-sparse contraction plans only support cutensorPlanAttribute_t::CUTENSOR_PLAN_REQUIRED_WORKSPACE.

§Parameters

  • plan: Denotes an already-created plan (e.g., via cutensorCreatePlan or cutensorCreatePlanAutotuned).
  • attr: Requested attribute.
  • buf: On successful exit: Holds the information of the requested attribute.
  • sizeInBytes: size of buf in bytes.

§Return value