- 博客(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
184
原创 编译c程序的时候报错 collect2: error: ld returned 1 exit status
除了要考虑基本的语法错误,还有可能是因为之前编译过这一程序,需要把已经生成的.o文件删除
2020-11-23 21:50:53
1234
转载 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/bin export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/l
2020-11-23 10:30:04
521
原创 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
10356
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人