Skip to main content

cutensorOperationDescriptorSetAttribute

Function cutensorOperationDescriptorSetAttribute 

Source
pub unsafe extern "C" fn cutensorOperationDescriptorSetAttribute(
    handle: cutensorHandle_t,
    desc: cutensorOperationDescriptor_t,
    attr: cutensorOperationDescriptorAttribute_t,
    buf: *const c_void,
    sizeInBytes: size_t,
) -> cutensorStatus_t
Expand description

Set attribute of a cutensorOperationDescriptor_t object.

Currently not supported for blocksparse contraction descriptors.

§Parameters

  • handle: Opaque handle holding cuTENSOR’s library context.
  • desc: Operation descriptor that will be modified.
  • attr: Specifies the attribute that will be set.
  • buf: This buffer (of size sizeInBytes) determines the value to which attr will be set.
  • sizeInBytes: Size of buf (in bytes).

§Return value