- 博客(4)
- 收藏
- 关注
原创 不要在windows上写好文件再传到linux上运行
注意!尽量不要在windows上写了python或sh文件再传到linux上运行windows和linux的格式不一致(也可能是系统和可执行文件的位数不一样)sh文件可能会出现(cd: $’…\r’: No such file or directory)之类的错误而在python中经典的例子是pytorch中报错NotImplementedError(forward未找到?)...
2021-04-30 09:10:03 109
原创 编译c程序的时候报错 collect2: error: ld returned 1 exit status
除了要考虑基本的语法错误,还有可能是因为之前编译过这一程序,需要把已经生成的.o文件删除
2020-11-23 21:50:53 945
转载 cuda程序执行出错: libcudart.so.8.0: cannot open shared object file: No such file or directory
问题描述: error while loading shared libraries: libcudart.so.8.0: cannot open shared object file: No such file or directory解决办法:首先确认/etc/profile中的路径包含了cuda8.0的安装路径及相应的库文件export PATH=$PATH:/usr/local/cuda-8.0/binexport LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/l
2020-11-23 10:30:04 390
原创 Linux下安装好了cuda之后nvcc -V仍然无法执行
Linux下安装好了cuda之后使用nvcc -V显示Command ‘nvcc’ not found, but can be installed with:apt install nvidia-cuda-toolkit问题描述:Command ‘nvcc’ not found, but can be installed with:apt install nvidia-cuda-toolkit解决方法:修改bashrc文件 sudo vi ~/.bashrc将下列指令加入到文件中export
2020-11-23 10:02:09 9601
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人