audio-webui icon indicating copy to clipboard operation
audio-webui copied to clipboard

[QUESTION] Specify a GPU

Open navarisun1982 opened this issue 2 years ago • 3 comments

How to specify a GPU?

Hello, I have 2 GPU in my workstation 0: Tesla p40 24GB 1: Quadro k4200 4GB

My main GPU is Tesla, every time i run audio-webui, it insists to run using Quadro, even through the Nvidia control panel I select to run it with tesla p40, is there any solution for this, here is the error message:

Found GPU1 Quadro K4200 which is of Cuda capability 3.0.
PyTorch no longer supports this GPU because it is too old.
The minimum Cuda capability supported by this library is 3.7.

navarisun1982 avatar Oct 25 '23 13:10 navarisun1982

You can set the GPU that is visible in the shell with:

export CUDA_VISIBLE_DEVICES=0

or just:

CUDA_VISIBLE_DEVICES=0 ./run.sh

if it still wants to try to use the Quadro try setting the GPU to 1. Seems like some things list the GPUs in different orders. CUDA vs nvidia-smi vs lspci.

Mikec78660 avatar Nov 17 '23 17:11 Mikec78660

@Mikec78660 thx for support

navarisun1982 avatar Nov 17 '23 17:11 navarisun1982

I'm having a similar issue in that my laptop has onboard intel UHD Graphics listed as 0, and my Nvidia card is 1. Audio-webui is just using the intel onboard GPU. I read the comments above, but not sure where you need to type these commands to change it. Can you give me a more step by step guide to this please?

SybarisUK avatar Jan 02 '24 11:01 SybarisUK