-
Notifications
You must be signed in to change notification settings - Fork 203
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Freeing large buffers takes a while #594
Labels
Comments
The problem here is that your buffers fall beyond the
The split pool doesn't suffer from this, but has other issues. |
Fixed on latest CUDA.jl with CUDA 11.2:
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is the issue mentioned in denizyuret/Knet.jl#624 (comment)
Here is an MWE: https://gist.github.com/denizyuret/e4155b9e2aeae5e19af6e1fdd2f6716b
The size argument to
main
is adjusted to push the GPU memory to its limits, 500 works on a T4, may have to lower it if you have less memory.I used the latest CUDA master and Knet#dy/fix624.
gcnode
callsunsafe_free!
at https://github.com/denizyuret/Knet.jl/blob/8a944bf853ea7555bfa33909a2d2be4d0ddf0473/src/autograd_gpu/gcnode.jl#L87Here is output from TimerOutputs with instrumented code -- the top line shows 32ms/call for unsafe_free!
The text was updated successfully, but these errors were encountered: