If you can create tensors on the GPUs, your install should be correct.
Besides using an older version of PyTorch, your setup seems to be alright.
What do you mean by “accuracy is always 0”? If you are referring to some model performance, I would suggest to have a look at your training code or why do you think your installation might be the problem?