Open willehlad opened 1 year ago
Hi @willehlad, sorry for this. We had some code to set the GPU but I think it only worked with some versions of nvidia-smi. I just pushed a fix, let me know if you have time to try it and if it works!
i have no idea what your response was.. i'm new to github so not sure what you're showing me in the response .. is it a possible out of memory error.. which wouldn't make much sense as it's asking for a directory.
thanks howie
Hi Giodiro..now i am getting the following error..
File "D:\plenoxels\main.py", line 10, in get_freer_gpu os.system('nvidia-smi -q -d Memory |grep -A5 GPU|grep Free >tmp') NameError: name 'os' is not defined
sorry to waste your time ;p
Howie
Hi Howie,
I'm not sure why you'd get 'os' is not defined
since os is imported before that line, but regardless an easy workaround is to just replace the line gpu = get_freer_gpu()
with gpu = 0
or whichever gpu number you want to use.
Hi.. right from the off i am getting the error..
File "D:\plenoxels\main.py", line 14, in get_freer_gpu memory_available = [int(x.split()[2]) for x in open('tmp', 'r').readlines()] FileNotFoundError: [Errno 2] No such file or directory: 'tmp'
thanks Howie