cuda.bindings._v2.driver.StreamMemOpAtomicReductionParams#
- class cuda.bindings._v2.driver.StreamMemOpAtomicReductionParams#
Empty-initialize an instance of CUstreamMemOpAtomicReductionParams_st.
See also
CUstreamMemOpAtomicReductionParams_st
- __init__(*args, **kwargs)#
Methods
__init__(*args, **kwargs)from_buffer(buffer)Create an StreamMemOpAtomicReductionParams instance with the memory from the given buffer.
from_data(data)Create an StreamMemOpAtomicReductionParams instance wrapping the given NumPy array.
from_ptr(intptr_t ptr, bool readonly=False)Create an StreamMemOpAtomicReductionParams instance wrapping the given pointer.
Attributes
addressThe address the atomic operation will be operated on
aliasFor driver internal use.
data_typeSee CUstreamAtomicReductionDataType
flags_Must be 0
operationint:
ptrGet the pointer address to the data as Python
int.reduction_opSee CUstreamAtomicReductionOpType
valueThe operand value the atomic operation will operate with