pub unsafe extern "C" fn cutensorEstimateWorkspaceSize(
handle: cutensorHandle_t,
desc: cutensorOperationDescriptor_t,
planPref: cutensorPlanPreference_t,
workspacePref: cutensorWorksizePreference_t,
workspaceSizeEstimate: *mut u64,
) -> cutensorStatus_tExpand 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; seecutensorWorksizePreference_tfor details.workspaceSizeEstimate: The workspace size (in bytes) that is required for the given operation.
§Return value
cutensorStatus_t::CUTENSOR_STATUS_INVALID_VALUE: if some input data is invalid (this typically indicates an user error).cutensorStatus_t::CUTENSOR_STATUS_NOT_INITIALIZED: if the handle is not initialized.cutensorStatus_t::CUTENSOR_STATUS_SUCCESS: The operation completed successfully.