Skip to main content

cudaMemPoolGetAttribute

Function cudaMemPoolGetAttribute 

Source
pub unsafe extern "C" fn cudaMemPoolGetAttribute(
    memPool: cudaMemPool_t,
    attr: cudaMemPoolAttr,
    value: *mut c_void,
) -> cudaError_t
Expand description

Gets attributes of a memory pool.

Supported attributes are:

The following properties can be also be queried on imported and default pools:

Note that as specified by cudaStreamAddCallback no CUDA function may be called from callback. cudaError_t::CUDA_ERROR_NOT_PERMITTED may, but is not guaranteed to, be returned as a diagnostic in such case.

§Parameters

  • attr: The attribute to get.
  • value: Retrieved value.

§Return value

See also: cuMemPoolGetAttribute, cudaMallocAsync, cudaFreeAsync, cudaDeviceGetDefaultMemPool, cudaDeviceGetMemPool, cudaMemPoolCreate.