Retrieval-based-Voice-Conversion-WebUI icon indicating copy to clipboard operation
Retrieval-based-Voice-Conversion-WebUI copied to clipboard

GPU not found on UBUNTU 22.04.2

Open ariikamusic opened this issue 2 years ago • 3 comments

Hi! I'm trying to train on Linux Ubuntu 22.04.2, and I have torch version 2.0.1+cu118, but for some reason it will not recognize my GPU. I have an NVIDIA 1660GTX SUPER. Any ideas?

image

image

Thanks in advance!

ariikamusic avatar Jun 27 '23 20:06 ariikamusic

@ariikamusic First, this is likely an issue that is unrelated to this particular project unless you've trained models without issues previously. As such, let's go over some basic steps that may help troubleshoot the problem:

  1. Check the nvidia-smi command and make sure your GPU shows up properly.
  2. Check that you have the proper CUDA-related packages, such as CUDAToolkit, by running apt list --installed | grep cuda (you can replace cuda with other package names as well to check that you have them installed.
  3. Check that you've installed the proper version of PyTorch.
  4. Run the following Python code and determine if PyTorch can see your GPU:
import torch
print(f"PyTorch Version: {torch.__version__}")
print(f"GPUs Detected?: {torch.cuda.is_available()}")
print(f"Number of GPUs detected: {torch.cuda.device_count()}")
print(f"GPU 0 Device Information: {torch.cuda.get_device_name(0) if torch.cuda.is_available() else 'N/A'}")

or if you want a one-liner:

python -c "import torch;print(f'PyTorch Version: {torch.__version__}');print(f'GPUs Detected?: {torch.cuda.is_available()}');print(f'Number of GPUs detected: {torch.cuda.device_count()}');print(f'GPU 0 Device Information: {torch.cuda.get_device_name(0) if torch.cuda.is_available()} else None');"

Once you have more information we can continue debugging the problem. My current guess is that your installation of PyTorch is not correct, or that PyTorch 2.0 does not support your card (though that is unlikely).

blackhole077 avatar Jun 28 '23 20:06 blackhole077

You installed CPU version pytorch environment.

RVC-Boss avatar Jun 29 '23 02:06 RVC-Boss

@blackhole077 @RVC-Boss thank you for explaning! I will investigate the issue and try the solution you've provided me with. If any other issues occur, I will reply to the thread. I'm relatively new to Linux hahaha

ariikamusic avatar Jun 29 '23 06:06 ariikamusic