当前位置:网站首页>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)边栏推荐
- [sword finger offer] sword finger offer II 012 The sum of left and right subarrays is equal
- MSE API学习
- Throughput
- Detailed explanation of Flink parallelism and slot
- 实训九 网络服务的基本配置
- 一锅乱炖,npm、yarn cnpm常用命令合集
- vulnhub之Funfox2
- 【STL】vector
- ASP. Net kindergarten chain management system source code
- 最多可以参加的会议数目[贪心 + 优先队列]
猜你喜欢

使用高斯Redis实现二级索引

PMP對工作有益嗎?怎麼選擇靠譜平臺讓備考更省心省力!!!
Make this crmeb single merchant wechat mall system popular, so easy to use!

Redis——基本使用(key、String、List、Set 、Zset 、Hash、Geo、Bitmap、Hyperloglog、事务 )

Introduction to bit operation

LeetCode_7_5

论文解读(ValidUtil)《Rethinking the Setting of Semi-supervised Learning on Graphs》

Flink并行度和Slot详解

mock.js从对象数组中任选数据返回一个数组

RESTAPI 版本控制策略【eolink 翻译】
随机推荐
# 欢迎使用Markdown编辑器
力扣 1232.缀点成线
Kirin Xin'an cloud platform is newly upgraded!
银行理财产品怎么买?需要办银行卡吗?
vulnhub之tre1
841. String hash
vulnhub之Funfox2
Automatic classification of defective photovoltaic module cells in electroluminescence images-论文阅读笔记
Version selection of boot and cloud
怎么在手机上买股票开户 股票开户安全吗
Some arrangements about oneself
Tp6 realize Commission ranking
【STL】vector
Specify the version of OpenCV non-standard installation
Cloud component development and upgrading
力扣 1037.有效的回旋镖
R语言使用ggplot2函数可视化需要构建泊松回归模型的计数目标变量的直方图分布并分析构建泊松回归模型的可行性
PMP對工作有益嗎?怎麼選擇靠譜平臺讓備考更省心省力!!!
pom.xml 配置文件标签作用简述
Nunjuks template engine