当前位置:网站首页>安装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,好晚了嘿,希望自己学有所成吧
边栏推荐
- 各位大拿,安装Solaris 11.4操作系统,在安装数据库依赖包的时候包这个错,目前无原厂支持,也无安装盘,联网下载后报这个错,请教怎么解决?
- 2022 Go ecosystem rpc framework Benchmark
- [CLion] CLion always prompts "This file does not belong to any project target xxx" solution
- MarkDown公式指导手册
- R语言拟合ARIMA模型:使用forecast包中的auto.arima函数自动搜索最佳参数组合、模型阶数(p,d,q)、设置seasonal参数指定在模型中是否包含季节信息
- 《MySQL核心知识》第6章:查询语句
- Tencent Cloud Native: Service Mesh Practice of Areaki Mesh in the 2022 Winter Olympics Video Live Application
- 如何设计一个分布式 ID 发号器?
- SCHEMA solves the puzzle
- pandas连接oracle数据库并拉取表中数据到dataframe中、筛选当前时间(sysdate)到一个小时之前的所有数据(筛选一个小时的范围数据)
猜你喜欢
利用正则表达式的回溯实现绕过
jmeter
Stone Technology builds hard-core brand power and continues to expand the global market
解决vscode输入! 无法快捷生成骨架(新版vscode快速生成骨架的三种方法)
How to use DevExpress controls to draw flowcharts?After reading this article, you will understand!
Promise learning (1) What is Promise?how to use?How to solve callback hell?
The four methods of judging JS data type
Online - GCeasy GC log analysis tools
Why Metropolis–Hastings Works
Qt get all files in a folder
随机推荐
力扣解法汇总1374-生成每种字符都是奇数个的字符串
JS 中的 undefined 和 null 的区别
轮询和长轮询的区别
深度学习 | MATLAB实现GRU门控循环单元gruLayer参数设定
【社区明星评选】第24期 8月更文计划 | 笔耕不辍,拒绝躺平!更多原创激励大礼包,还有华为WATCH FIT手表!
Solve vscode input! Unable to quickly generate skeletons (three methods for the new version of vscode to quickly generate skeletons)
正则表达式
CAN通信的数据帧和远程帧
C#/VB.NET 将PPT或PPTX转换为图像
C语言实现!20000用4秒计算
R language ggplot2 visualization: use the ggdensity function of the ggpubr package to visualize density plots, use the stat_central_tendency function to add mean vertical lines to the density and cust
通配符SSL证书不支持多域名吗?
上周热点回顾(7.25-7.31)
[Nodejs] node的fs模块
jmeter
Promise学习(四)异步编程的终极解决方案async + await:用同步的方式去写异步代码
【公开课预告】:超分辨率技术在视频画质增强领域的研究与应用
shell--第九章练习
重庆市大力实施智能建造,推动建筑业数字化转型,助力“建造强市”
各位大拿,安装Solaris 11.4操作系统,在安装数据库依赖包的时候包这个错,目前无原厂支持,也无安装盘,联网下载后报这个错,请教怎么解决?