PaddleSpeech icon indicating copy to clipboard operation
PaddleSpeech copied to clipboard

[TTS]Docker develop-gpu-cuda10.2-cudnn7-latest 启动tts服务报错 CUDA error(100), no CUDA-capable device is detected

Open beixiang-l opened this issue 1 year ago • 2 comments

环境配置 环境window系统安装的ubuntu20.4虚拟机 Linux 024b4fd43ccc 5.10.16.3-microsoft-standard-WSL2 #1 SMP Fri Apr 2 22:23:49 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux

nvcc nvcc: NVIDIA (R) Cuda compiler driver Copyright (c) 2005-2019 NVIDIA Corporation Built on Wed_Oct_23_19:24:38_PDT_2019 Cuda compilation tools, release 10.2, V10.2.89

nvidia-smi Fri Nov 24 09:43:58 2023 +---------------------------------------------------------------------------------------+ | NVIDIA-SMI 545.29.01 Driver Version: 546.01 CUDA Version: 10.2 | |-----------------------------------------+----------------------+----------------------+ | GPU Name Persistence-M | Bus-Id Disp.A | Volatile Uncorr. ECC | | Fan Temp Perf Pwr:Usage/Cap | Memory-Usage | GPU-Util Compute M. | | | | MIG M. | |=========================================+======================+======================| | 0 NVIDIA GeForce RTX 2060 On | 00000000:02:00.0 On | N/A | | 0% 31C P8 23W / 184W | 432MiB / 12288MiB | 13% Default | | | | N/A | +-----------------------------------------+----------------------+----------------------+

+---------------------------------------------------------------------------------------+ | Processes: | | GPU GI CI PID Type Process name GPU Memory | | ID ID Usage | |=======================================================================================| | No running processes found | +---------------------------------------------------------------------------------------+

application.yaml配置文件 tts_python: # am (acoustic model) choices=['speedyspeech_csmsc', 'fastspeech2_csmsc', # 'fastspeech2_ljspeech', 'fastspeech2_aishell3', # 'fastspeech2_vctk', 'fastspeech2_mix', # 'tacotron2_csmsc', 'tacotron2_ljspeech'] am: 'fastspeech2_csmsc' am_config: am_ckpt: am_stat: phones_dict: tones_dict: speaker_dict:

# voc (vocoder) choices=['pwgan_csmsc', 'pwgan_ljspeech', 'pwgan_aishell3',
#                        'pwgan_vctk', 'mb_melgan_csmsc', 'style_melgan_csmsc',
#                        'hifigan_csmsc', 'hifigan_ljspeech', 'hifigan_aishell3',
#                        'hifigan_vctk', 'wavernn_csmsc']
voc: 'mb_melgan_csmsc'
voc_config:
voc_ckpt:
voc_stat:

# others
lang: 'zh'
device: gpu:0 # set 'gpu:id' or 'cpu'

执行启动命令: paddlespeech_server start --config_file ./demos/speech_server/conf/application.yaml grep: warning: GREP_OPTIONS is deprecated; please use an alias or script /usr/local/python3.7.0/lib/python3.7/site-packages/pkg_resources/init.py:121: DeprecationWarning: pkg_resources is deprecated as an API warnings.warn("pkg_resources is deprecated as an API", DeprecationWarning) /usr/local/python3.7.0/lib/python3.7/site-packages/pkg_resources/init.py:2870: DeprecationWarning: Deprecated call to pkg_resources.declare_namespace('mpl_toolkits'). Implementing implicit namespace packages (as specified in PEP 420) is preferred to pkg_resources.declare_namespace. See https://setuptools.pypa.io/en/latest/references/keywords.html#keyword-namespace-packages declare_namespace(pkg) /usr/local/python3.7.0/lib/python3.7/site-packages/pkg_resources/init.py:2870: DeprecationWarning: Deprecated call to pkg_resources.declare_namespace('google'). Implementing implicit namespace packages (as specified in PEP 420) is preferred to pkg_resources.declare_namespace. See https://setuptools.pypa.io/en/latest/references/keywords.html#keyword-namespace-packages declare_namespace(pkg) W1124 09:39:31.652143 202 init.cc:179] Compiled with WITH_GPU, but no GPU found in runtime. /usr/local/python3.7.0/lib/python3.7/site-packages/paddle/fluid/framework.py:517: UserWarning: You are using GPU version Paddle, but your CUDA device is not set properly. CPU device will be used by default. "You are using GPU version Paddle, but your CUDA device is not set properly. CPU device will be used by default." [2023-11-24 09:39:34,481] [ INFO] - start to init the engine [2023-11-24 09:39:34,481] [ INFO] - tts : python engine. [2023-11-24 09:39:39,022] [ ERROR] - Set device failed, please check if device is already used and the parameter 'device' in the yaml file [2023-11-24 09:39:39,022] [ ERROR] - Initialize TTS server engine Failed on device: gpu:0. [2023-11-24 09:39:39,022] [ ERROR] - (External) CUDA error(100), no CUDA-capable device is detected. [Hint: 'cudaErrorNoDevice'. This indicates that no CUDA-capable devices were detected by the installed CUDA driver. ] (at /paddle/paddle/phi/backends/gpu/cuda/cuda_info.cc:66)

这个改怎么解决?

beixiang-l avatar Nov 24 '23 09:11 beixiang-l

image image

beixiang-l avatar Nov 24 '23 09:11 beixiang-l

报错Compiled with WITH_GPU, but no GPU found in runtime. 你确定你的GPU可用吗?

zxcd avatar Jan 02 '24 11:01 zxcd