栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 软件开发 > 后端开发 > Python

apex安装报错:Cuda extensions are being compiled with a version of Cuda that does not match the verson

Python 更新时间: 发布时间: IT归档 最新发布 模块sitemap 名妆网 法律咨询 聚返吧 英语巴士网 伯小乐 网商动力

apex安装报错:Cuda extensions are being compiled with a version of Cuda that does not match the verson

apex是nvdia的半精度运算库,能够增加运算速度,减小现存占用。
apex的仅支持带有tensor core的GPU,即RTX显卡。

apex的安装方式如下:

git clone https://github.com/NVIDIA/apex
cd apex
pip install -v --no-cache-dir --global-option="--cpp_ext" --global-option="--cuda_ext" ./

但是我在安装过程中:报错了

RuntimeError: Cuda extensions are being compiled with a version of Cuda that does not match the version used to compile Pytorch binaries.  Pytorch binaries were compiled with Cuda 9.0.176.

看这个意思是说cuda跟pytorch的版本不对应。后来我看到apex直接不带–global-option安装好像也能用。
于是修改最后一句

pip install -v --no-cache-dir ./

安装成功

转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/656282.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号