plan_preference_get_attribute#

nvmath.bindings.cutensor.plan_preference_get_attribute(
intptr_t handle,
intptr_t pref,
int attr,
intptr_t buf,
size_t size_in_bytes,
)[source]#

Get attribute of a cutensorPlanPreference_t object.

Parameters:
  • handle (intptr_t) – Opaque handle holding cuTENSOR’s library context.

  • pref (intptr_t) – This opaque struct restricts the search space of viable candidates.

  • attr (PlanPreferenceAttribute) – Requested attribute.

  • buf (intptr_t) – On successful exit: Holds the information of the requested attribute.

  • size_in_bytes (size_t) – Size of buf (in bytes); see cutensorPlanPreferenceAttribute_t for the exact size.

Note

To compute the attribute size, use the itemsize of the corresponding data type, which can be queried using get_plan_preference_attribute_dtype().

See also

cutensorPlanPreferenceGetAttribute