物理机环境:

显卡nvidai; 物理机cuda12.0以上版本,我的是12.2

docker 容器:

1:注意,共享内存要大于2G,最好设8G;(--shm-size=2g)

ubuntu20.04  gcc-9 g++-9

安装方式:

  1. 在容器中查看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 
    
  2. 升级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

  3. 安装paddle,其他版本查看开始使用_飞桨-源于产业实践的开源深度学习平台
    python -m pip install paddlepaddle-gpu==2.6.1.post120 -f https://www.paddlepaddle.org.cn/whl/linux/mkl/avx/stable.html
Logo

分享最新的 NVIDIA AI Software 资源以及活动/会议信息,精选收录AI相关技术内容,欢迎大家加入社区并参与讨论。

更多推荐