pub unsafe extern "C" fn cuDeviceSetGraphMemAttribute(
device: CUdevice,
attr: CUgraphMem_attribute,
value: *mut c_void,
) -> CUresult
Expand description
\brief Set asynchronous allocation attributes related to graphs
Valid attributes are:
- ::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_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 - pointer to value to set
\return ::CUDA_SUCCESS, ::CUDA_ERROR_INVALID_DEVICE
\sa ::cuDeviceGetGraphMemAttribute, ::cuGraphAddMemAllocNode, ::cuGraphAddMemFreeNode