PaddlePaddle/Paddle

安装报错

Opened this issue · 1 comments

bug描述 Describe the Bug

(base) jyw@jyw-Z790-GAMING-X-AX:~$ conda create -n paddle_env2 python=3.9
Retrieving notices: ...working... done
Channels:

  • defaults
    Platform: linux-64
    Collecting package metadata (repodata.json): done
    Solving environment: done

Package Plan

environment location: /home/jyw/anaconda3/envs/paddle_env2

added / updated specs:
- python=3.9

The following packages will be downloaded:

package                    |            build
---------------------------|-----------------
python-3.9.21              |       he870216_1        25.1 MB
------------------------------------------------------------
                                       Total:        25.1 MB

The following NEW packages will be INSTALLED:

_libgcc_mutex pkgs/main/linux-64::_libgcc_mutex-0.1-main
_openmp_mutex pkgs/main/linux-64::_openmp_mutex-5.1-1_gnu
ca-certificates pkgs/main/linux-64::ca-certificates-2024.11.26-h06a4308_0
ld_impl_linux-64 pkgs/main/linux-64::ld_impl_linux-64-2.40-h12ee557_0
libffi pkgs/main/linux-64::libffi-3.4.4-h6a678d5_1
libgcc-ng pkgs/main/linux-64::libgcc-ng-11.2.0-h1234567_1
libgomp pkgs/main/linux-64::libgomp-11.2.0-h1234567_1
libstdcxx-ng pkgs/main/linux-64::libstdcxx-ng-11.2.0-h1234567_1
ncurses pkgs/main/linux-64::ncurses-6.4-h6a678d5_0
openssl pkgs/main/linux-64::openssl-3.0.15-h5eee18b_0
pip pkgs/main/linux-64::pip-24.2-py39h06a4308_0
python pkgs/main/linux-64::python-3.9.21-he870216_1
readline pkgs/main/linux-64::readline-8.2-h5eee18b_0
setuptools pkgs/main/linux-64::setuptools-75.1.0-py39h06a4308_0
sqlite pkgs/main/linux-64::sqlite-3.45.3-h5eee18b_0
tk pkgs/main/linux-64::tk-8.6.14-h39e8969_0
tzdata pkgs/main/noarch::tzdata-2024b-h04d1e81_0
wheel pkgs/main/linux-64::wheel-0.44.0-py39h06a4308_0
xz pkgs/main/linux-64::xz-5.4.6-h5eee18b_1
zlib pkgs/main/linux-64::zlib-1.2.13-h5eee18b_1

Proceed ([y]/n)? y

Downloading and Extracting Packages:

Preparing transaction: done
Verifying transaction: done
Executing transaction: done

To activate this environment, use

$ conda activate paddle_env2

To deactivate an active environment, use

$ conda deactivate

(base) jyw@jyw-Z790-GAMING-X-AX:$ conda activate paddle_env2
(paddle_env2) jyw@jyw-Z790-GAMING-X-AX:
$ conda install paddlepaddle-gpu==2.6.2 cudatoolkit=11.7 -c https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/Paddle/ -c conda-forge
Channels:

Package Plan

environment location: /home/jyw/anaconda3/envs/paddle_env2

added / updated specs:
- cudatoolkit=11.7
- paddlepaddle-gpu==2.6.2

The following packages will be downloaded:

package                    |            build
---------------------------|-----------------
astor-0.8.1                |     pyhd8ed1ab_1          29 KB  conda-forge
ca-certificates-2024.12.14 |       hbcca054_0         153 KB  conda-forge
certifi-2024.12.14         |     pyhd8ed1ab_0         158 KB  conda-forge
libblas-3.9.0              |26_linux64_openblas          16 KB  conda-forge
libcblas-3.9.0             |26_linux64_openblas          16 KB  conda-forge
liblapack-3.9.0            |26_linux64_openblas          16 KB  conda-forge
libwebp-base-1.5.0         |       h851e524_0         420 KB  conda-forge
xorg-libxau-1.0.12         |       hb9d3cd8_0          14 KB  conda-forge
------------------------------------------------------------
                                       Total:         822 KB

The following NEW packages will be INSTALLED:

anyio conda-forge/noarch::anyio-4.7.0-pyhd8ed1ab_0
astor conda-forge/noarch::astor-0.8.1-pyhd8ed1ab_1
certifi conda-forge/noarch::certifi-2024.12.14-pyhd8ed1ab_0
cudatoolkit conda-forge/linux-64::cudatoolkit-11.7.1-h4bc3d14_13
cudnn conda-forge/linux-64::cudnn-8.4.1.50-hed8a83a_0
decorator conda-forge/noarch::decorator-5.1.1-pyhd8ed1ab_1
exceptiongroup conda-forge/noarch::exceptiongroup-1.2.2-pyhd8ed1ab_1
freetype conda-forge/linux-64::freetype-2.12.1-h267a509_2
h11 conda-forge/noarch::h11-0.14.0-pyhd8ed1ab_1
h2 conda-forge/noarch::h2-4.1.0-pyhd8ed1ab_1
hpack conda-forge/noarch::hpack-4.0.0-pyhd8ed1ab_1
httpcore conda-forge/noarch::httpcore-1.0.7-pyh29332c3_1
httpx conda-forge/noarch::httpx-0.28.1-pyhd8ed1ab_0
hyperframe conda-forge/noarch::hyperframe-6.0.1-pyhd8ed1ab_1
idna conda-forge/noarch::idna-3.10-pyhd8ed1ab_1
lcms2 conda-forge/linux-64::lcms2-2.16-hb7c19ff_0
lerc conda-forge/linux-64::lerc-4.0.0-h27087fc_0
libblas conda-forge/linux-64::libblas-3.9.0-26_linux64_openblas
libcblas conda-forge/linux-64::libcblas-3.9.0-26_linux64_openblas
libdeflate conda-forge/linux-64::libdeflate-1.20-hd590300_0
libgcc conda-forge/linux-64::libgcc-14.2.0-h77fa898_1
libgfortran conda-forge/linux-64::libgfortran-14.2.0-h69a702a_1
libgfortran5 conda-forge/linux-64::libgfortran5-14.2.0-hd5240d6_1
libjpeg-turbo conda-forge/linux-64::libjpeg-turbo-3.0.0-hd590300_1
liblapack conda-forge/linux-64::liblapack-3.9.0-26_linux64_openblas
libopenblas conda-forge/linux-64::libopenblas-0.3.28-pthreads_h94d23a6_1
libpng conda-forge/linux-64::libpng-1.6.43-h2797004_0
libstdcxx conda-forge/linux-64::libstdcxx-14.2.0-hc0a3c3a_1
libtiff conda-forge/linux-64::libtiff-4.6.0-h1dd3fc0_3
libwebp-base conda-forge/linux-64::libwebp-base-1.5.0-h851e524_0
libxcb conda-forge/linux-64::libxcb-1.15-h0b41bf4_0
libzlib conda-forge/linux-64::libzlib-1.2.13-h4ab18f5_6
numpy conda-forge/linux-64::numpy-2.0.2-py39h9cb892a_1
openjpeg conda-forge/linux-64::openjpeg-2.5.2-h488ebb8_0
opt_einsum conda-forge/noarch::opt_einsum-3.3.0-pyhc1e730c_2
paddlepaddle-gpu anaconda/cloud/Paddle/linux-64::paddlepaddle-gpu-2.6.2-py39_gpu_cuda11.7_many_linux
pillow conda-forge/linux-64::pillow-10.3.0-py39h90c7501_0
protobuf conda-forge/linux-64::protobuf-5.28.3-py39hf88036b_0
pthread-stubs conda-forge/linux-64::pthread-stubs-0.4-hb9d3cd8_1002
python_abi conda-forge/linux-64::python_abi-3.9-2_cp39
sniffio conda-forge/noarch::sniffio-1.3.1-pyhd8ed1ab_1
typing_extensions conda-forge/noarch::typing_extensions-4.12.2-pyha770c72_1
xorg-libxau conda-forge/linux-64::xorg-libxau-1.0.12-hb9d3cd8_0
xorg-libxdmcp conda-forge/linux-64::xorg-libxdmcp-1.1.5-hb9d3cd8_0
zstd conda-forge/linux-64::zstd-1.5.6-ha6fb4c9_0

The following packages will be UPDATED:

ca-certificates pkgs/main::ca-certificates-2024.11.26~ --> conda-forge::ca-certificates-2024.12.14-hbcca054_0
libgcc-ng pkgs/main::libgcc-ng-11.2.0-h1234567_1 --> conda-forge::libgcc-ng-14.2.0-h69a702a_1
libgomp pkgs/main::libgomp-11.2.0-h1234567_1 --> conda-forge::libgomp-14.2.0-h77fa898_1
libstdcxx-ng pkgs/main::libstdcxx-ng-11.2.0-h12345~ --> conda-forge::libstdcxx-ng-14.2.0-h4852527_1
openssl pkgs/main::openssl-3.0.15-h5eee18b_0 --> conda-forge::openssl-3.4.0-hb9d3cd8_0
zlib pkgs/main::zlib-1.2.13-h5eee18b_1 --> conda-forge::zlib-1.2.13-h4ab18f5_6

The following packages will be SUPERSEDED by a higher-priority channel:

_libgcc_mutex pkgs/main::_libgcc_mutex-0.1-main --> conda-forge::_libgcc_mutex-0.1-conda_forge
_openmp_mutex pkgs/main::_openmp_mutex-5.1-1_gnu --> conda-forge::_openmp_mutex-4.5-2_gnu

Proceed ([y]/n)? y

Downloading and Extracting Packages:

Preparing transaction: done
Verifying transaction: done
Executing transaction: / By downloading and using the CUDA Toolkit conda packages, you accept the terms and conditions of the CUDA End User License Agreement (EULA): https://docs.nvidia.com/cuda/eula/index.html

done
(paddle_env2) jyw@jyw-Z790-GAMING-X-AX:~$ python3
Python 3.9.21 (main, Dec 11 2024, 16:24:11)
[GCC 11.2.0] :: Anaconda, Inc. on linux
Type "help", "copyright", "credits" or "license" for more information.

import paddle
paddle.utils.run_check()
Running verify PaddlePaddle program ...
I1222 15:54:02.282560 9434 program_interpreter.cc:212] New Executor is Running.
W1222 15:54:02.284003 9434 gpu_resources.cc:119] Please NOTE: device: 0, GPU Compute Capability: 8.9, Driver API Version: 12.6, Runtime API Version: 11.7
W1222 15:54:02.295070 9434 gpu_resources.cc:164] device: 0, cuDNN Version: 8.4.
W1222 15:54:03.694506 9434 dynamic_loader.cc:314] The third-party dynamic library (libcuda.so) that Paddle depends on is not configured correctly. (error code is libcuda.so: cannot open shared object file: No such file or directory)
Suggestions:

  1. Check if the third-party dynamic library (e.g. CUDA, CUDNN) is installed correctly and its version is matched with paddlepaddle you installed.
  2. Configure third-party dynamic library environment variables as follows:
  • Linux: set LD_LIBRARY_PATH by export LD_LIBRARY_PATH=...
  • Windows: set PATH by `set PATH=XXX;

C++ Traceback (most recent call last):

No stack trace in paddle, may be caused by external reasons.


Error Message Summary:

FatalError: Segmentation fault is detected by the operating system.
[TimeInfo: *** Aborted at 1734854043 (unix time) try "date -d @1734854043" if you are using GNU date ***]
[SignalInfo: *** SIGSEGV (@0x0) received by PID 9434 (TID 0x7f54f5ace180) from PID 0 ***]

Segmentation fault (core dumped)
(paddle_env2) jyw@jyw-Z790-GAMING-X-AX:~$ nvidia-smi
Sun Dec 22 15:55:05 2024
+-----------------------------------------------------------------------------------------+
| NVIDIA-SMI 560.35.03 Driver Version: 560.35.03 CUDA Version: 12.6 |
|-----------------------------------------+------------------------+----------------------+
| 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 4090 Off | 00000000:01:00.0 Off | Off |
| 0% 49C P0 132W / 450W | 14859MiB / 24564MiB | 19% Default |
| | | N/A |
+-----------------------------------------+------------------------+----------------------+

+-----------------------------------------------------------------------------------------+
| Processes: |
| GPU GI CI PID Type Process name GPU Memory |
| ID ID Usage |
|=========================================================================================|
| 0 N/A N/A 1680 G /usr/lib/xorg/Xorg 18MiB |
| 0 N/A N/A 1829 G /usr/bin/gnome-shell 13MiB |
| 0 N/A N/A 2177 G /usr/libexec/gnome-initial-setup 6MiB |
| 0 N/A N/A 3888 C python 7252MiB |
| 0 N/A N/A 4263 C python 7534MiB |
+-----------------------------------------------------------------------------------------+
(paddle_env2) jyw@jyw-Z790-GAMING-X-AX:~$ nvcc --version
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2022 NVIDIA Corporation
Built on Tue_May__3_18:49:52_PDT_2022
Cuda compilation tools, release 11.7, V11.7.64
Build cuda_11.7.r11.7/compiler.31294372_0

其他补充信息 Additional Supplementary Information

(base) jyw@jyw-Z790-GAMING-X-AX:~$ conda create -n paddle_env2 python=3.9
Retrieving notices: ...working... done
Channels:

  • defaults
    Platform: linux-64
    Collecting package metadata (repodata.json): done
    Solving environment: done

Package Plan

environment location: /home/jyw/anaconda3/envs/paddle_env2

added / updated specs:
- python=3.9

The following packages will be downloaded:

package                    |            build
---------------------------|-----------------
python-3.9.21              |       he870216_1        25.1 MB
------------------------------------------------------------
                                       Total:        25.1 MB

The following NEW packages will be INSTALLED:

_libgcc_mutex pkgs/main/linux-64::_libgcc_mutex-0.1-main
_openmp_mutex pkgs/main/linux-64::_openmp_mutex-5.1-1_gnu
ca-certificates pkgs/main/linux-64::ca-certificates-2024.11.26-h06a4308_0
ld_impl_linux-64 pkgs/main/linux-64::ld_impl_linux-64-2.40-h12ee557_0
libffi pkgs/main/linux-64::libffi-3.4.4-h6a678d5_1
libgcc-ng pkgs/main/linux-64::libgcc-ng-11.2.0-h1234567_1
libgomp pkgs/main/linux-64::libgomp-11.2.0-h1234567_1
libstdcxx-ng pkgs/main/linux-64::libstdcxx-ng-11.2.0-h1234567_1
ncurses pkgs/main/linux-64::ncurses-6.4-h6a678d5_0
openssl pkgs/main/linux-64::openssl-3.0.15-h5eee18b_0
pip pkgs/main/linux-64::pip-24.2-py39h06a4308_0
python pkgs/main/linux-64::python-3.9.21-he870216_1
readline pkgs/main/linux-64::readline-8.2-h5eee18b_0
setuptools pkgs/main/linux-64::setuptools-75.1.0-py39h06a4308_0
sqlite pkgs/main/linux-64::sqlite-3.45.3-h5eee18b_0
tk pkgs/main/linux-64::tk-8.6.14-h39e8969_0
tzdata pkgs/main/noarch::tzdata-2024b-h04d1e81_0
wheel pkgs/main/linux-64::wheel-0.44.0-py39h06a4308_0
xz pkgs/main/linux-64::xz-5.4.6-h5eee18b_1
zlib pkgs/main/linux-64::zlib-1.2.13-h5eee18b_1

Proceed ([y]/n)? y

Downloading and Extracting Packages:

Preparing transaction: done
Verifying transaction: done
Executing transaction: done

To activate this environment, use

$ conda activate paddle_env2

To deactivate an active environment, use

$ conda deactivate

(base) jyw@jyw-Z790-GAMING-X-AX:$ conda activate paddle_env2
(paddle_env2) jyw@jyw-Z790-GAMING-X-AX:
$ conda install paddlepaddle-gpu==2.6.2 cudatoolkit=11.7 -c https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/Paddle/ -c conda-forge
Channels:

Package Plan

environment location: /home/jyw/anaconda3/envs/paddle_env2

added / updated specs:
- cudatoolkit=11.7
- paddlepaddle-gpu==2.6.2

The following packages will be downloaded:

package                    |            build
---------------------------|-----------------
astor-0.8.1                |     pyhd8ed1ab_1          29 KB  conda-forge
ca-certificates-2024.12.14 |       hbcca054_0         153 KB  conda-forge
certifi-2024.12.14         |     pyhd8ed1ab_0         158 KB  conda-forge
libblas-3.9.0              |26_linux64_openblas          16 KB  conda-forge
libcblas-3.9.0             |26_linux64_openblas          16 KB  conda-forge
liblapack-3.9.0            |26_linux64_openblas          16 KB  conda-forge
libwebp-base-1.5.0         |       h851e524_0         420 KB  conda-forge
xorg-libxau-1.0.12         |       hb9d3cd8_0          14 KB  conda-forge
------------------------------------------------------------
                                       Total:         822 KB

The following NEW packages will be INSTALLED:

anyio conda-forge/noarch::anyio-4.7.0-pyhd8ed1ab_0
astor conda-forge/noarch::astor-0.8.1-pyhd8ed1ab_1
certifi conda-forge/noarch::certifi-2024.12.14-pyhd8ed1ab_0
cudatoolkit conda-forge/linux-64::cudatoolkit-11.7.1-h4bc3d14_13
cudnn conda-forge/linux-64::cudnn-8.4.1.50-hed8a83a_0
decorator conda-forge/noarch::decorator-5.1.1-pyhd8ed1ab_1
exceptiongroup conda-forge/noarch::exceptiongroup-1.2.2-pyhd8ed1ab_1
freetype conda-forge/linux-64::freetype-2.12.1-h267a509_2
h11 conda-forge/noarch::h11-0.14.0-pyhd8ed1ab_1
h2 conda-forge/noarch::h2-4.1.0-pyhd8ed1ab_1
hpack conda-forge/noarch::hpack-4.0.0-pyhd8ed1ab_1
httpcore conda-forge/noarch::httpcore-1.0.7-pyh29332c3_1
httpx conda-forge/noarch::httpx-0.28.1-pyhd8ed1ab_0
hyperframe conda-forge/noarch::hyperframe-6.0.1-pyhd8ed1ab_1
idna conda-forge/noarch::idna-3.10-pyhd8ed1ab_1
lcms2 conda-forge/linux-64::lcms2-2.16-hb7c19ff_0
lerc conda-forge/linux-64::lerc-4.0.0-h27087fc_0
libblas conda-forge/linux-64::libblas-3.9.0-26_linux64_openblas
libcblas conda-forge/linux-64::libcblas-3.9.0-26_linux64_openblas
libdeflate conda-forge/linux-64::libdeflate-1.20-hd590300_0
libgcc conda-forge/linux-64::libgcc-14.2.0-h77fa898_1
libgfortran conda-forge/linux-64::libgfortran-14.2.0-h69a702a_1
libgfortran5 conda-forge/linux-64::libgfortran5-14.2.0-hd5240d6_1
libjpeg-turbo conda-forge/linux-64::libjpeg-turbo-3.0.0-hd590300_1
liblapack conda-forge/linux-64::liblapack-3.9.0-26_linux64_openblas
libopenblas conda-forge/linux-64::libopenblas-0.3.28-pthreads_h94d23a6_1
libpng conda-forge/linux-64::libpng-1.6.43-h2797004_0
libstdcxx conda-forge/linux-64::libstdcxx-14.2.0-hc0a3c3a_1
libtiff conda-forge/linux-64::libtiff-4.6.0-h1dd3fc0_3
libwebp-base conda-forge/linux-64::libwebp-base-1.5.0-h851e524_0
libxcb conda-forge/linux-64::libxcb-1.15-h0b41bf4_0
libzlib conda-forge/linux-64::libzlib-1.2.13-h4ab18f5_6
numpy conda-forge/linux-64::numpy-2.0.2-py39h9cb892a_1
openjpeg conda-forge/linux-64::openjpeg-2.5.2-h488ebb8_0
opt_einsum conda-forge/noarch::opt_einsum-3.3.0-pyhc1e730c_2
paddlepaddle-gpu anaconda/cloud/Paddle/linux-64::paddlepaddle-gpu-2.6.2-py39_gpu_cuda11.7_many_linux
pillow conda-forge/linux-64::pillow-10.3.0-py39h90c7501_0
protobuf conda-forge/linux-64::protobuf-5.28.3-py39hf88036b_0
pthread-stubs conda-forge/linux-64::pthread-stubs-0.4-hb9d3cd8_1002
python_abi conda-forge/linux-64::python_abi-3.9-2_cp39
sniffio conda-forge/noarch::sniffio-1.3.1-pyhd8ed1ab_1
typing_extensions conda-forge/noarch::typing_extensions-4.12.2-pyha770c72_1
xorg-libxau conda-forge/linux-64::xorg-libxau-1.0.12-hb9d3cd8_0
xorg-libxdmcp conda-forge/linux-64::xorg-libxdmcp-1.1.5-hb9d3cd8_0
zstd conda-forge/linux-64::zstd-1.5.6-ha6fb4c9_0

The following packages will be UPDATED:

ca-certificates pkgs/main::ca-certificates-2024.11.26~ --> conda-forge::ca-certificates-2024.12.14-hbcca054_0
libgcc-ng pkgs/main::libgcc-ng-11.2.0-h1234567_1 --> conda-forge::libgcc-ng-14.2.0-h69a702a_1
libgomp pkgs/main::libgomp-11.2.0-h1234567_1 --> conda-forge::libgomp-14.2.0-h77fa898_1
libstdcxx-ng pkgs/main::libstdcxx-ng-11.2.0-h12345~ --> conda-forge::libstdcxx-ng-14.2.0-h4852527_1
openssl pkgs/main::openssl-3.0.15-h5eee18b_0 --> conda-forge::openssl-3.4.0-hb9d3cd8_0
zlib pkgs/main::zlib-1.2.13-h5eee18b_1 --> conda-forge::zlib-1.2.13-h4ab18f5_6

The following packages will be SUPERSEDED by a higher-priority channel:

_libgcc_mutex pkgs/main::_libgcc_mutex-0.1-main --> conda-forge::_libgcc_mutex-0.1-conda_forge
_openmp_mutex pkgs/main::_openmp_mutex-5.1-1_gnu --> conda-forge::_openmp_mutex-4.5-2_gnu

Proceed ([y]/n)? y

Downloading and Extracting Packages:

Preparing transaction: done
Verifying transaction: done
Executing transaction: / By downloading and using the CUDA Toolkit conda packages, you accept the terms and conditions of the CUDA End User License Agreement (EULA): https://docs.nvidia.com/cuda/eula/index.html

done
(paddle_env2) jyw@jyw-Z790-GAMING-X-AX:~$ python3
Python 3.9.21 (main, Dec 11 2024, 16:24:11)
[GCC 11.2.0] :: Anaconda, Inc. on linux
Type "help", "copyright", "credits" or "license" for more information.

import paddle
paddle.utils.run_check()
Running verify PaddlePaddle program ...
I1222 15:54:02.282560 9434 program_interpreter.cc:212] New Executor is Running.
W1222 15:54:02.284003 9434 gpu_resources.cc:119] Please NOTE: device: 0, GPU Compute Capability: 8.9, Driver API Version: 12.6, Runtime API Version: 11.7
W1222 15:54:02.295070 9434 gpu_resources.cc:164] device: 0, cuDNN Version: 8.4.
W1222 15:54:03.694506 9434 dynamic_loader.cc:314] The third-party dynamic library (libcuda.so) that Paddle depends on is not configured correctly. (error code is libcuda.so: cannot open shared object file: No such file or directory)
Suggestions:

  1. Check if the third-party dynamic library (e.g. CUDA, CUDNN) is installed correctly and its version is matched with paddlepaddle you installed.
  2. Configure third-party dynamic library environment variables as follows:
  • Linux: set LD_LIBRARY_PATH by export LD_LIBRARY_PATH=...
  • Windows: set PATH by `set PATH=XXX;

C++ Traceback (most recent call last):

No stack trace in paddle, may be caused by external reasons.


Error Message Summary:

FatalError: Segmentation fault is detected by the operating system.
[TimeInfo: *** Aborted at 1734854043 (unix time) try "date -d @1734854043" if you are using GNU date ***]
[SignalInfo: *** SIGSEGV (@0x0) received by PID 9434 (TID 0x7f54f5ace180) from PID 0 ***]

Segmentation fault (core dumped)
(paddle_env2) jyw@jyw-Z790-GAMING-X-AX:~$ nvidia-smi
Sun Dec 22 15:55:05 2024
+-----------------------------------------------------------------------------------------+
| NVIDIA-SMI 560.35.03 Driver Version: 560.35.03 CUDA Version: 12.6 |
|-----------------------------------------+------------------------+----------------------+
| 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 4090 Off | 00000000:01:00.0 Off | Off |
| 0% 49C P0 132W / 450W | 14859MiB / 24564MiB | 19% Default |
| | | N/A |
+-----------------------------------------+------------------------+----------------------+

+-----------------------------------------------------------------------------------------+
| Processes: |
| GPU GI CI PID Type Process name GPU Memory |
| ID ID Usage |
|=========================================================================================|
| 0 N/A N/A 1680 G /usr/lib/xorg/Xorg 18MiB |
| 0 N/A N/A 1829 G /usr/bin/gnome-shell 13MiB |
| 0 N/A N/A 2177 G /usr/libexec/gnome-initial-setup 6MiB |
| 0 N/A N/A 3888 C python 7252MiB |
| 0 N/A N/A 4263 C python 7534MiB |
+-----------------------------------------------------------------------------------------+
(paddle_env2) jyw@jyw-Z790-GAMING-X-AX:~$ nvcc --version
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2022 NVIDIA Corporation
Built on Tue_May__3_18:49:52_PDT_2022
Cuda compilation tools, release 11.7, V11.7.64
Build cuda_11.7.r11.7/compiler.31294372_0

From00 commented

找不到libcuda.so依赖库,需要检查下是否正确安装了cuda环境,并根据提示设置正确的LD_LIBRARY_PATH