物理机环境:
显卡nvidai; 物理机cuda12.0以上版本,我的是12.2
docker 容器:
1:注意,共享内存要大于2G,最好设8G;(--shm-size=2g)
ubuntu20.04 gcc-9 g++-9
安装方式:
- 在容器中查看gcc版本,如果没有GLIBCXX_3.4.30 则要升级gcc-9到gcc-11
strings /usr/lib/x86_64-linux-gnu/libstdc++.so.6 | grep GLIBCXX ======如果出现一下内容,如果 没有GLIBCXX_3.4.30
- 升级gcc 和g++
首先更新apt 源,具体的请自行百度sudo add-apt-repository ppa:ubuntu-toolchain-r/test
sudo apt update
sudo apt install gcc-11
sudo apt install g+±11
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-9 50
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-11 50
sudo update-alternatives --install /usr/bin/gcc g++ /usr/bin/g+±9 50
sudo update-alternatives --config gcc
- 安装paddle,其他版本查看开始使用_飞桨-源于产业实践的开源深度学习平台
python -m pip install paddlepaddle-gpu==2.6.1.post120 -f https://www.paddlepaddle.org.cn/whl/linux/mkl/avx/stable.html