当前位置:网站首页>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.10
Error 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
边栏推荐
猜你喜欢
2022 Go生态圈 rpc 框架 Benchmark
故障007:dexp导数莫名中断
判断JS数据类型的四种方法
Solve vscode input! Unable to quickly generate skeletons (three methods for the new version of vscode to quickly generate skeletons)
C#/VB.NET 将PPT或PPTX转换为图像
Qt get all files in a folder
实现集中式身份认证管理的案例
Dapr 与 NestJs ,实战编写一个 Pub & Sub 装饰器
bpmn-process-designer基础上进行自定义样式(工具、元素、菜单)
STM32 CAN过滤器配置详解
随机推荐
【社区明星评选】第24期 8月更文计划 | 笔耕不辍,拒绝躺平!更多原创激励大礼包,还有华为WATCH FIT手表!
R语言检验时间序列的平稳性:使用tseries包的adf.test函数实现增强的Dickey-Fuller(ADF)检验、检验时序数据是否具有均值回归特性(平稳性)、具有均值回归特性的案例
《MySQL核心知识》第6章:查询语句
The CAN communication standard frame and extended frame is introduced
冰冰学习笔记:gcc、gdb等工具的使用
R语言两个时间序列数据的滞后相关性可视化:使用forecast包的ccf函数绘制交叉相关函数,根据可视化结果分析滞后相关性
Data frame and remote frame of CAN communication
pandas connects to the oracle database and pulls the data in the table into the dataframe, filters all the data from the current time (sysdate) to one hour ago (filters the range data of one hour)
How to use DevExpress controls to draw flowcharts?After reading this article, you will understand!
字体反爬之好租
[5 days countdown] to explore the secret behind the great quality promotion, gift waiting for you to take of $one thousand
(ES6以上以及TS) Map对象转数组
安装apex报错
(ES6 and above and TS) Map object to array
leetcode/submatrix element sum
[Nodejs] fs module of node
Audio and Video Technology Development Weekly | 256
如何利用DevExpress控件绘制流程图?看完这篇文章就懂了!
bpmn-process-designer基础上进行自定义样式(工具、元素、菜单)
【公开课预告】:超分辨率技术在视频画质增强领域的研究与应用