Did the logs show that the CUDA runtime was also installed?
If so, what does torch.version.cuda return?
Note that the binaries ship with their own CUDA runtime (as well as cudnn, NCCL etc.), so your local CUDA toolkit won’t be used unless you build PyTorch from source or any custom CUDA extension.