Skip to main content

cutensorEstimateWorkspaceSize

Function cutensorEstimateWorkspaceSize 

Source
pub unsafe extern "C" fn cutensorEstimateWorkspaceSize(
    handle: cutensorHandle_t,
    desc: cutensorOperationDescriptor_t,
    planPref: cutensorPlanPreference_t,
    workspacePref: cutensorWorksizePreference_t,
    workspaceSizeEstimate: *mut u64,
) -> cutensorStatus_t
Expand description

Determines the required workspaceSize for the given operation encoded by desc.

§Parameters

  • handle: Opaque handle holding cuTENSOR’s library context.
  • desc: This opaque struct encodes the operation.
  • planPref: This opaque struct restricts the space of viable candidates.
  • workspacePref: This parameter influences the size of the workspace; see cutensorWorksizePreference_t for details.
  • workspaceSizeEstimate: The workspace size (in bytes) that is required for the given operation.

§Return value