Closed alexzhou907 closed 2 years ago
Hi, thank you very much for the issue!
I've never tested my code with multi-GPUs. I'll investigate this issue on a server and update this ASAP.
Hi, the CUDA kernel seems to need a guard. I'm still not sure what is going on here, but adding the guard fixed this issue on my server :D
More info: https://discuss.pytorch.org/t/c-cuda-extension-with-multiple-gpus/91241
Please pull the new commit and verify if it works on your machine. Remember to recompile the CUDA extension.
I have a 4 gpu server and I use the following code to test cal_iou function
When device is 'cuda:0' it seems to work fine, but when it is 'cuda:1' or 'cuda:2' or 'cuda:3', area gives 0 always. What is wrong?