Skip to content

How can I use the free memory #231

Answered by shi-eric
cadop asked this question in Q&A
Jun 5, 2024 · 1 comments · 4 replies
Discussion options

You must be logged in to vote

It's a Device property, so you should be able to do something like:

cuda_device = wp.get_device("cuda:0")
cuda_device_free_mem_mib = cuda_device.free_memory / (1024*1024)

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@cadop
Comment options

@cadop
Comment options

@shi-eric
Comment options

@shi-eric
Comment options

Answer selected by cadop
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants