pub unsafe extern "C" fn cuDeviceGetGraphMemAttribute(
device: CUdevice,
attr: CUgraphMem_attribute,
value: *mut c_void,
) -> CUresult
Expand description
\brief Query asynchronous allocation attributes related to graphs
Valid attributes are:
- ::CU_GRAPH_MEM_ATTR_USED_MEM_CURRENT: Amount of memory, in bytes, currently associated with graphs
- ::CU_GRAPH_MEM_ATTR_USED_MEM_HIGH: High watermark of memory, in bytes, associated with graphs since the last time it was reset. High watermark can only be reset to zero.
- ::CU_GRAPH_MEM_ATTR_RESERVED_MEM_CURRENT: Amount of memory, in bytes, currently allocated for use by the CUDA graphs asynchronous allocator.
- ::CU_GRAPH_MEM_ATTR_RESERVED_MEM_HIGH: High watermark of memory, in bytes, currently allocated for use by the CUDA graphs asynchronous allocator.
\param device - Specifies the scope of the query \param attr - attribute to get \param value - retrieved value
\return ::CUDA_SUCCESS, ::CUDA_ERROR_INVALID_DEVICE
\sa ::cuDeviceSetGraphMemAttribute, ::cuGraphAddMemAllocNode, ::cuGraphAddMemFreeNode