cuda.bindings._v2.driver.pointer_get_attribute#

cuda.bindings._v2.driver.pointer_get_attribute(int attribute, uint64_t ptr)#

Return an attribute of a pointer.

The type of the result depends on attribute: an int (also for pointers and device addresses), a bool, or a PointerAttributeP2PTokens_v1 for P2P_TOKENS.

Parameters:
Returns:

The attribute value.

Return type:

int | bool | PointerAttributeP2PTokens_v1

See also

cuPointerGetAttribute