WSL2 Ubuntu22.04 安装CUDNN,CUDA, TensorRT

LD_LIBRARY_PATH="/usr/lib/wsl/lib/:/usr/local/cuda/lib64:"

declare -x PATH="/home/user/.local/bin:/usr/local/cuda/bin/:/usr/lib/wsl/lib/:/usr/local/cuda/lib64/:/usr/local/cuda/:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:

需要  修改环境变量  vim ~/.bashrc

例子:

export LD_LIBRARY_PATH=/usr/local/cuda-11.0/lib64:${LD_LIBRARY_PATH}

生效 source ~/.bashrc

cudnn 才能测试通过。

否则会报缺少SO

你可能感兴趣的:(linux,服务器,java)