Pytorch-Correlation-extension icon indicating copy to clipboard operation
Pytorch-Correlation-extension copied to clipboard

Correlation is zero in Multi-GPU environment

Open KangBK0120 opened this issue 2 years ago • 2 comments

Hi, first of all, thanks for sharing this module.

the correlation value is always zero in the muti-GPU environment when the inputs are not in the first GPU.

image

totally works fine as expected.

However, if I try to use other GPUs, it returns 0 correlation.

image

And by using CUDA_VISIBLE_DEVICES" to point a single GPU, this problem is gone.

image

KangBK0120 avatar Aug 20 '21 07:08 KangBK0120

I'm using torch 1.9.0 and 3090 RTX with cuda version 11.1

KangBK0120 avatar Aug 20 '21 08:08 KangBK0120

Hi, did you try to install it from source ? There was a discussion about this problem a while back and was solved by @InnovArul #59

ClementPinard avatar Aug 20 '21 15:08 ClementPinard