The official latest stable version (version 2.4.0) has been tested and supported on ubuntu 22.04!
The current stable version (version 2.3.2) of Baidu Paddle deep learning framework does not support installation on ubuntu 22.04!
Although the official website explains that the system GCC version is too high, it is actually invalid after downgrading GCC!
The solution is simple, just use the develop version instead of using the stable version.
The actual test is available, and those with experience can see it here.
The develop version officially provides the cuda 11.7 version of the whl file, but the actual test version cannot be used, while the cuda version 11.6 can be used normally.
conda create -n paddledev python=3.10
conda activate paddledev
conda install cudatoolkit=11.6 -c https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/Paddle/ -c conda-forge
python -m pip install paddlepaddle-gpu==0.0.0.post116 -f https://www.paddlepaddle.org.cn/whl/linux/gpu/develop.html
If you need to use a stable version, you can only run it in docker.
nvidia-docker run --shm-size=1g --ulimit memlock=-1 -it --rm nvcr.io/nvidia/paddlepaddle:22.10-py3
If the graphics card uses 4090, nvidia-docker will prompt that it is not supported. Don’t ignore the prompt, the actual measurement can call the 4090 graphics card normally in the paddle