cuda.bindings._v2.driver.device_get_mem_pool#
- cuda.bindings._v2.driver.device_get_mem_pool(int dev) intptr_t#
Gets the current mempool for a device.
Returns the last pool provided to
cuDeviceSetMemPoolfor this device or the device’s default memory pool ifcuDeviceSetMemPoolhas never been called. By default the current mempool is the default mempool for a device. Otherwise the returned pool must have been set withcuDeviceSetMemPool.- Parameters:
dev (int) – Device for which to query the current memory pool.
- Returns:
Returned current memory pool of the device.
- Return type:
intptr_t
See also
cuDeviceGetMemPool