arrayfire icon indicating copy to clipboard operation
arrayfire copied to clipboard

[Question] How to query the size of device RAM?

Open wbrickner opened this issue 3 years ago • 1 comments

Hello,

I'd like to dynamically use different sizes of a 3D tensor based on how much device memory (video ram, regular ram, fpga memory, etc) is available at one time.

There seems to be a few functions adjacent to this, device_mem_info, etc. Nothing seems to provide device memory size, which is what I need to know.

Thank you

wbrickner avatar Jun 19 '22 21:06 wbrickner

I see af_memory_manager_get_max_memory_size, is this supported in the arrayfire-rust crate?

That is the way in which I am interacting with arrayfire.

wbrickner avatar Jun 19 '22 22:06 wbrickner