cvlab-epfl / detecting-the-unexpected

Detecting the Unexpected via Image Resynthesis
Other
56 stars 10 forks source link

CUDA out of memory #3

Closed RamyaRaghuraman closed 4 years ago

RamyaRaghuraman commented 4 years ago

Hi @adynathos,

CUDA runs out of memory at "eval_obj.run_semseg(dset, b_show=False)"

Is there any way to clear the cache memory in CUDA?

adynathos commented 4 years ago

In 020db5cb63d869db50c2f6fd40c41189143f0f4d I add the ability to:

Hopefully these help with the GPU memory.

Olive-fcj commented 3 years ago

Is there any way to limit the gpu id?

adynathos commented 3 years ago

@Olive-fcj Control which GPU is used with CUDA_VISIBLE_DEVICES=n, where n is the id of the GPU starting from 0.

https://developer.nvidia.com/blog/cuda-pro-tip-control-gpu-visibility-cuda_visible_devices/