I downgraded pytorch to version 1.6 and cudatoolkit 10.2. The userwarning disappeared, but torch.cuda.is_available() still return false. I tried to install nvcc compiler, no luck   I also found out and read that nvcc compiler is not needed in order to run pytorch cuda. Any other suggestions? @ptrblck