📅  最后修改于: 2022-03-11 14:49:26.784000             🧑  作者: Mango
sudo nano ~/.bashsrc
add this two line at the end of file
export PATH=/usr/local/cuda/bin${PATH:+:${PATH}}
export LD_LIBRARY_PATH=/usr/local/cuda/lib64\
${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}