当前位置:网站首页>Apex installation error
Apex installation error
2022-08-01 12:09:00 【Alex Ruan】
First of all, if apex installs the cuda version, a simple pip instal apex will not work
The correct installation steps on the official website
Enter the official websitehttps://github.com/NVIDIA/apexFollow the instructions to enter
git clone https://github.com/NVIDIA/apexcd apexpip install -v --disable-pip-version-check --no-cache-dir --global-option="--cpp_ext" --global-option="--cuda_ext" ./If it is installed, congratulations, it will be fine.
However, when I install it, I will report some strange compilation errors, and remember to install cudatoolkit (input nvcc -V on the command line to know that there areNot installed, nvidia-smi is not enough)
My environment is
win 10cudatoolkit 11.3pytorch 1.10Error report
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 DLLinterface
D:/vs2017/VC/Tools/MSVC/14.16.27023/include\type_traits(1271): error: static assertion failed with “You've instantiated std::aligned_storagewith 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 changeslayout 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 thismessage 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 “voidload_store(T *, T *, int, int) [with T=float]”
csrc/multi_tensor_scale_kernel.cu(64): here

According to https://github.com/NVIDIA/apex/issues/835
Enthusiastic netizens give the apex download github link after modifying the source code
A useful installation method is
Follow 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" ./It worked.
Afterword
It's too late to solve this bug, I hope I can learn something
边栏推荐
- Complete Raiders of JS Data Type Conversion
- Solve vscode input! Unable to quickly generate skeletons (three methods for the new version of vscode to quickly generate skeletons)
- 在线GC日志分析工具——GCeasy
- CAN通信标准帧和扩展帧介绍
- Excel表格打印时不打印标记填充颜色
- 表达式引擎在转转平台的实践
- R语言检验时间序列的平稳性:使用tseries包的adf.test函数实现增强的Dickey-Fuller(ADF)检验、检验时序数据是否具有均值回归特性(平稳性)、具有均值回归特性的案例
- 收藏|机械工程师面试常问问题
- [5 days countdown] to explore the secret behind the great quality promotion, gift waiting for you to take of $one thousand
- Promise学习(三)Promise的几个关键性问题 -- 状态改变、执行顺序与机制、多任务串联、异常穿透、中断promise链
猜你喜欢

【公开课预告】:超分辨率技术在视频画质增强领域的研究与应用

在线GC日志分析工具——GCeasy

Pytest e-commerce project combat (below)

The four methods of judging JS data type

如何利用DevExpress控件绘制流程图?看完这篇文章就懂了!

Programmer's self-cultivation

【讲座分享】“营收“看金融
![[Open class preview]: Research and application of super-resolution technology in the field of video quality enhancement](/img/fc/cd859efa69fa7b45f173de74c04858.png)
[Open class preview]: Research and application of super-resolution technology in the field of video quality enhancement

数字化转型实践:世界级2B数字化营销的方法框架

Promise学习(一)Promise是什么?怎么用?回调地狱怎么解决?
随机推荐
小程序插件如何帮助开发者受益?
How do programmers solve online problems gracefully?
Why Metropolis–Hastings Works
.NET深入解析LINQ框架(三:LINQ优雅的前奏)
博弈论(Depu)与孙子兵法(42/100)
Data frame and remote frame of CAN communication
MNIST是什么(plist是什么意思)
Visualization of lag correlation of two time series data in R language: use the ccf function of the forecast package to draw the cross-correlation function, and analyze the lag correlation according t
Transfer learning to freeze the network:
ACL 2022 | 文本生成的相关前沿进展
Promise learning (4) The ultimate solution for asynchronous programming async + await: write asynchronous code in a synchronous way
基于ArkUI eTS开发的坚果食谱(NutRecipes)
2022 Go生态圈 rpc 框架 Benchmark
如何设计一个分布式 ID 发号器?
ECCV22|只能11%的参数就能优于Swin,微软提出快速预训练蒸馏方法TinyViT
CAN通信标准帧和扩展帧介绍
【CLion】CLion 总是提示 “This file does not belong to any project target xxx” 的解决方法
.NET性能优化-使用SourceGenerator-Logger记录日志
mysql进阶(二十二)MySQL错误之Incorrect string value中文字符输入错误问题分析
【云享新鲜】社区周刊·Vol.73- DTSE Tech Talk:1小时深度解读SaaS应用系统设计