plan_preference_set_attribute#
-
nvmath.
bindings. cutensor. plan_preference_set_attribute( - intptr_t handle,
- intptr_t pref,
- int attr,
- intptr_t buf,
- size_t size_in_bytes,
Set 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) – Specifies the attribute that will be set.
buf (intptr_t) – This buffer (of size size_in_bytes) determines the value to which
attrwill be set.size_in_bytes (size_t) – Size of buf (in bytes); see
cutensorPlanPreferenceAttribute_tfor 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
cutensorPlanPreferenceSetAttribute