当前位置:网站首页>Cuda版本不一致,编译apex报错
Cuda版本不一致,编译apex报错
2022-07-07 17:55:00 【番茄就要炒鸡蛋】
解决办法
注释掉setup.py代码中的第108行,cuda版本检验,这样编译就可以了
if "--cuda_ext" in sys.argv:
from torch.utils.cpp_extension import CUDAExtension
sys.argv.remove("--cuda_ext")
if torch.utils.cpp_extension.CUDA_HOME is None:
raise RuntimeError("--cuda_ext was requested, but nvcc was not found. Are you sure your environment has nvcc available? If you're installing within a container from https://hub.docker.com/r/pytorch/pytorch, only images whose names contain 'devel' will provide nvcc.")
else:
# 注释掉这句
# check_cuda_torch_binary_vs_bare_metal(torch.utils.cpp_extension.CUDA_HOME)
边栏推荐
- Mysql, sqlserver Oracle database connection mode
- How to cooperate among multiple threads
- Automatic classification of defective photovoltaic module cells in electroluminescence images-論文閱讀筆記
- Interpretation of transpose convolution theory (input-output size analysis)
- Kirin Xin'an with heterogeneous integration cloud financial information and innovation solutions appeared at the 15th Hunan Financial Technology Exchange Conference
- Ucloud is a basic cloud computing service provider
- R语言ggplot2可视化:使用ggpubr包的ggqqplot函数可视化QQ图(Quantile-Quantile plot)
- Specify the version of OpenCV non-standard installation
- 模拟实现string类
- 国家网信办公布《数据出境安全评估办法》:累计向境外提供10万人信息需申报
猜你喜欢
微信公众号OAuth2.0授权登录并显示用户信息
LeetCode力扣(剑指offer 36-39)36. 二叉搜索树与双向链表37. 序列化二叉树38. 字符串的排列39. 数组中出现次数超过一半的数字
openEuler 有奖捉虫活动,来参与一下?
Le PGR est - il utile au travail? Comment choisir une plate - forme fiable pour économiser le cœur et la main - d'œuvre lors de la préparation de l'examen!!!
ASP. Net kindergarten chain management system source code
开源重器!九章云极DataCanvas公司YLearn因果学习开源项目即将发布!
使用高斯Redis实现二级索引
AD域组策略管理
Automatic classification of defective photovoltaic module cells in electroluminescence images-論文閱讀筆記
Simulate the implementation of string class
随机推荐
Make this crmeb single merchant wechat mall system popular, so easy to use!
Kubernetes——kubectl命令行工具用法详解
pom. Brief introduction of XML configuration file label function
torch. nn. functional. Pad (input, pad, mode= 'constant', value=none) record
8 CAS
Navicat连接2002 - Can‘t connect to local MySQL server through socket ‘/var/lib/mysql/mysql.sock‘解决
力扣 2315.统计星号
网信办公布《数据出境安全评估办法》,9 月 1 日起施行
How to buy stocks on your mobile phone and open an account? Is it safe to open an account
mock.js从对象数组中任选数据返回一个数组
The strength index of specialized and new software development enterprises was released, and Kirin Xin'an was honored on the list
浏览积分设置的目的
小试牛刀之NunJucks模板引擎
The state cyberspace Office released the measures for data exit security assessment: 100000 information provided overseas needs to be declared
Training IX basic configuration of network services
831. KMP字符串
注解。。。
sql 常用优化
谷歌seo外链Backlinks研究工具推荐
R语言ggplot2可视化:使用ggpubr包的ggecdf函数可视化分组经验累积密度分布函数曲线、linetype参数指定不同分组曲线的线型