cuda.bindings._v2.driver.mem_pool_destroy#
- cuda.bindings._v2.driver.mem_pool_destroy(intptr_t pool)#
Destroys the specified memory pool.
If any pointers obtained from this pool haven’t been freed or the pool has free operations that haven’t completed when
cuMemPoolDestroyis invoked, the function will return immediately and the resources associated with the pool will be released automatically once there are no more outstanding allocations. Destroying the current mempool of a device sets the default mempool of that device as the current mempool for that device.- Parameters:
pool (intptr_t) – Memory pool to destroy.
Note
A device’s default memory pool cannot be destroyed.
See also
cuMemPoolDestroy