Issues
Conda do not have the correct version for installing paddlepaddle gpu. In order to get the correct version you need to use pip. While using pip, cudnn is not installed, and environmental variable needs to be set to be the right path.
Working setup
OS version: Ubuntu 20.04
Python version: 3.8.10
Pip version: 21.1.3
conda version: 4.10.1
GPU: RTX 3090
cuda version: 11.2
cudnn version: 8.2.1
Installation
-
Install paddlepaddle:
python -m pip install paddlepaddle-gpu==2.1.1.post112 -f https://paddlepaddle.org.cn/whl/mkl/stable.html
-
Install cudnn via conda:
conda install -c conda-forge cudnn
-
Setup environmental variable path:
export LD_LIBRARY_PATH=/home/.../anaconda3/envs/your_env/lib:$LD_LIBRARY_PATH
where your_env
is the name of your environment in anaconda
- you may need to do this everytime you reboot your device
-
test by:
paddle.utils.run_check()
-
Success message would be: