Controlling memory usage with host_callback #10793
Unanswered
davisyoshida
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Consider the following program:
This causes an OOM on my 8GB GPU. The total size of the arrays returned from the
hcb.call
calls is about 16GB, but I should be able to do this computation by preventing the later callbacks from executing until the memory to hold their result is freed (in fact I expected this to be done automatically). What's the best way to do so?Beta Was this translation helpful? Give feedback.
All reactions