1.RuntimeError: Error compiling objects for extension
改torch版本如上图
我原来的版本是torch1.5 torchvision0.6.0 cuda10.2就不行
太 离 谱 了
torch1.4可以 torch1.5就不行
2.import torch失败
这里的下面原来有红波浪线
选对解释器!选对解释器!选对解释器!!!
正确的解释器路径:miniconda/envs/myconda/bin/python3.7
我直接选成miniconda/bin/python3.7了
我说怎么一直报错QAQ
3.CUDA Error: no kernel image is available for execution on the device
遇到这种问题就是算力不一致。
我在之前的博客里也记录了这种问题,当时是改的Makefile,但是这次的代码里压根没有Makefile文件,所以需要改setup.py
红框里的部分是我加的,具体的算力看这个链接即可:
https://developer.nvidia.com/zh-cn/cuda-gpus#compute
实际使用的显卡算力大于等于这个应该就可以
TeslaK80是3.7