We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9796d5a commit e39860aCopy full SHA for e39860a
src/pool.jl
@@ -176,9 +176,8 @@ function pool_mark(dev::CuDevice)
176
if status[] === nothing
177
limits = memory_limits()
178
179
- # configure our memory pool
180
- # XXX: is it OK to replace the pool like this? we need to, for setting limits.
181
- # how do we get other applications/libraries to use it?
+ # create a custom memory pool and assign it to the device
+ # so that other libraries and applications will use it.
182
pool = if limits.hard > 0 && CUDA.driver_version() >= v"12.2"
183
CuMemoryPool(dev; maxSize=limits.hard)
184
else
0 commit comments