Found GPU0 TITAN V which requires CUDA_VERSION >= 9000 for optimal performance and fast startup time

错误:

Found GPU0 TITAN V which requires CUDA_VERSION >= 9000 for optimal performance and fast startup time, but your PyTorch was compiled with CUDA_VERSION 8000. Please install the
 correct PyTorch binary using instructions from http://pytorch.org warnings.warn(incorrect_binary_warn % (d, name, 9000, CUDA_VERSION))

大概意思指的是安装pytorch版本时候编译的cuda版本是8.0,而现在使用的是cuda9.0在调用pytorch,所以造成不匹配。由于我运行的程序使用的是python2.7,pytorch版本0.4.0,使用命令pip install torch==0.4.0 -f https://download.pytorch.org/whl/cu90/stable安装pytorch,默认是cuda8.0编译的

解决:
从该网址(里面都是cuda9.0编译的)下载对应版本,
然后在下载该文件的路径中打开终端,并激活要安装在的conda环境,执行 pip install <下载的文件>

若pip安装出错

torch-0.4.0-cp27-cp27m-linux_x86_64.whl is not a supported wheel on this platform.

说明该版本(cp27m)不适合系统安装,可以尝试下载torch-0.4.0-cp27-cp27mu-linux_x86_64.whl (cp27mu)
或者尝试用pip3 安装cp27m版

注:
1、cp27,cp35 对应你安装的Cpython版本,(或者你python装的哪个版本,你选哪个)
2、cp27m是ucs2,cp27mu是ucs4。
UCS2规定每个字符占用2个字节,UCS4规定每个字节占用4个字符,都是UNICODE的编码形式。
一般选UCS2的版本即可。

  • 3
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值