-
I saw this post #171 but also noticed this property: https://nvidia.github.io/warp/modules/devices.html#warp.context.Device.free_memory Maybe its obvious, but I cant figure out how to use it. wp.free_memory doesn't exist. |
Beta Was this translation helpful? Give feedback.
Answered by
shi-eric
Jun 5, 2024
Replies: 1 comment 4 replies
-
It's a cuda_device = wp.get_device("cuda:0")
cuda_device_free_mem_mib = cuda_device.free_memory / (1024*1024) |
Beta Was this translation helpful? Give feedback.
4 replies
Answer selected by
cadop
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It's a
Device
property, so you should be able to do something like: