You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
torch.cuda.device(1) # change this if you have a multiple graphics cards and you want to utilize them
I managed to solve it by introducing the device variable instead and adding torch.cuda.set_device(device) right after the FunctionCorrelation signature
You are correct, it should be set_device instead of just device. Thank you for letting me know! No need to issue a pull request, I just updated it and removed that line altogether. It is usually better to set CUDA_VISIBLE_DEVICES and I only had this line to avoid issues with multi-GPU systems.
Hi.
It seems that I cannot make the code to run on another GPU rather than 0-th. The following line doesn't make any difference in my case
pytorch-pwc/run.py
Line 25 in f613890
I managed to solve it by introducing the
device
variable instead and addingtorch.cuda.set_device(device)
right after theFunctionCorrelation
signaturepytorch-pwc/correlation/correlation.py
Lines 392 to 393 in f613890
and also passing this variable as an argument here
pytorch-pwc/run.py
Line 196 in f613890
and here
pytorch-pwc/run.py
Line 204 in f613890
If this is a bug do you want me to form a Pull Request?
Anyway, thanks a lot for sharing the code. It is really helpful when the official version is on CUDA 8 and PyTorch 0.2!
The text was updated successfully, but these errors were encountered: