当前位置:网站首页>安装apex报错
安装apex报错
2022-08-01 11:33:00 【Alex Ruan】
首先如果apex安装cuda的版本,简单的pip instal apex
是不行的
官网正确的安装步骤
进入官网https://github.com/NVIDIA/apex按照指示输入
git clone https://github.com/NVIDIA/apex
cd apex
pip install -v --disable-pip-version-check --no-cache-dir --global-option="--cpp_ext" --global-option="--cuda_ext" ./
如果装好了,恭喜,那就没问题了
然而我装的时候会报一些奇奇怪怪的编译错误,还有就是记得安装cudatoolkit(在命令行输入nvcc -V就知道有没有装好,有nvidia-smi不够哈)
我的环境是
win 10
cudatoolkit 11.3
pytorch 1.10
报错
D:/python-3.6.7/lib/site-packages/torch/include\c10/cuda/CUDAStream.h(171): warning: field of class type without a DLL interface used in a class with a DLL interface
D:/vs2017/VC/Tools/MSVC/14.16.27023/include\type_traits(1271): error: static assertion failed with “You’ve instantiated std::aligned_storage<Len, Align> with an extended alignment (in other words, Align > alignof(max_align_t)). Before VS 2017 15.8, the member type would non-conformingly have an alignment of only alignof(max_align_t). VS 2017 15.8 was fixed to handle this correctly, but the fix inherently changes layout and breaks binary compatibility (only for uses of aligned_storage with extended alignments). Please define either (1) _ENABLE_EXTENDED_ALIGNED_STORAGE to acknowledge that you understand this message and that you actually want a type with an extended alignment, or (2) _DISABLE_EXTENDED_ALIGNED_STORAGE to silence this message and get the old non-conformant behavior.”
detected during:
instantiation of class “std::_Aligned<_Len, _Align, double, false> [with _Len=16ULL, _Align=16ULL]”
(1291): here
instantiation of class “std::_Aligned<_Len, _Align, int, false> [with _Len=16ULL, _Align=16ULL]”
(1298): here
instantiation of class “std::_Aligned<_Len, _Align, short, false> [with _Len=16ULL, _Align=16ULL]”
(1305): here
instantiation of class “std::_Aligned<_Len, _Align, char, false> [with _Len=16ULL, _Align=16ULL]”
(1312): here
instantiation of class “std::aligned_storage<_Len, _Align> [with _Len=16ULL, _Align=16ULL]”
csrc/multi_tensor_scale_kernel.cu(25): here
instantiation of “void load_store(T *, T *, int, int) [with T=float]”
csrc/multi_tensor_scale_kernel.cu(64): here
根据https://github.com/NVIDIA/apex/issues/835
热心网友给出自己修改源码之后的apex下载github链接
有用的安装方法是
按照https://github.com/kezewang/apex
$ git clone https://github.com/NVIDIA/apex
$ cd apex
$ pip install -v --no-cache-dir --global-option="--cpp_ext" --global-option="--cuda_ext" ./
成功了耶
后记
解决这个bug,好晚了嘿,希望自己学有所成吧
边栏推荐
- 《MySQL核心知识》第6章:查询语句
- 回归预测 | MATLAB实现RNN循环神经网络多输入单输出数据预测
- WPF 截图控件之绘制箭头(五)「仿微信」
- Istio Meetup China:全栈服务网格 - Aeraki 助你在 Istio 服务网格中管理任何七层流量
- 表达式引擎在转转平台的实践
- 【社区明星评选】第24期 8月更文计划 | 笔耕不辍,拒绝躺平!更多原创激励大礼包,还有华为WATCH FIT手表!
- RK3399 platform development series on introduction to (kernel) 1.52, printk function analysis - the function call will be closed
- 【讲座分享】“营收“看金融
- 深度学习 | MATLAB实现GRU门控循环单元gruLayer参数设定
- R语言诊断ARIMA模型:forecast包构建了一个ARIMA模型、使用checkresiduals函数诊断ARIMA模型、并进行结果解读(拟合较差的ARIMA模型具有的特点)
猜你喜欢
随机推荐
在线GC日志分析工具——GCeasy
如何获取微信视频号的地址(微信公众号的链接地址)
【Unity3D插件】AVPro Video插件分享《视频播放插件》
MySQL常用语句总结
Deep understanding of Istio - advanced practice of cloud native service mesh
Promise learning (2) An article takes you to quickly understand the common APIs in Promise
R语言诊断ARIMA模型:forecast包构建了一个ARIMA模型、使用checkresiduals函数诊断ARIMA模型、并进行结果解读(拟合较差的ARIMA模型具有的特点)
NIO‘s Sword(思维,取模,推公式)
[Open class preview]: Research and application of super-resolution technology in the field of video quality enhancement
xss-labs靶场挑战
稀疏表示--学习笔记
A new generation of ultra-safe cellular batteries, Sihao Airun goes on sale starting at 139,900 yuan
What is MNIST (what does plist mean)
redis6 跟着b站尚硅谷学习
Data frame and remote frame of CAN communication
Complete Raiders of JS Data Type Conversion
《MySQL核心知识》第6章:查询语句
Istio Meetup China: Full Stack Service Mesh - Aeraki Helps You Manage Any Layer 7 Traffic in an Istio Service Mesh
一篇文章,带你详细了解华为认证体系证书(2)
Qt get all files in a folder