ActiveNeRF icon indicating copy to clipboard operation
ActiveNeRF copied to clipboard

Setting Cuda device

Open at82 opened this issue 1 year ago • 2 comments

Hi, I'm trying to make run_nerf.py use a specific gpu on my machine by setting os.environ['CUDA_VISIBLE_DEVICES'] = 'gpu id'

before importing torch, but it always tries uses gpu 0. How can I solve this problem? Thanks.

at82 avatar May 01 '23 20:05 at82

Before you run the code, set this command in your terminal shell: export CUDA_VISIBLE_DEVICES=0

YZsZY avatar May 04 '23 08:05 YZsZY

Thanks for your response. I have tried this before but the code always uses gpu 0 and it also blows up the gpu memory.

at82 avatar May 09 '23 13:05 at82