cuda.bindings._v2.driver.pointer_set_attribute#
- cuda.bindings._v2.driver.pointer_set_attribute(value, int attribute, uint64_t ptr)#
Set attributes on a previously allocated memory region.
The supported attributes are:.
CU_POINTER_ATTRIBUTE_SYNC_MEMOPS:.A boolean attribute that can either be set (1) or unset (0). When set, the region of memory that
ptrpoints to is guaranteed to always synchronize memory operations that are synchronous. If there are some previously initiated synchronous memory operations that are pending when this attribute is set, the function does not return until those memory operations are complete. See further documentation in the section titled “API synchronization behavior” to learn more about cases when synchronous memory operations can exhibit asynchronous behavior.valuewill be considered as a pointer to an unsigned integer to which this attribute is to be set.
- Parameters:
value (bytes) – Pointer to memory containing the value to be set.
attribute (PointerAttribute) – Pointer attribute to set.
ptr (uint64_t) – Pointer to a memory region allocated using CUDA memory allocation APIs.
See also
cuPointerSetAttribute