当前位置:网站首页>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
边栏推荐
- Qt get all files in a folder
- Promise学习(二)一篇文章带你快速了解Promise中的常用API
- leetcode/子矩阵元素和
- 迁移学习冻结网络的方法:
- Tencent Cloud Native: Service Mesh Practice of Areaki Mesh in the 2022 Winter Olympics Video Live Application
- 千万级乘客排队系统重构&压测方案——总结篇
- MNIST是什么(plist是什么意思)
- What is MNIST (what does plist mean)
- [Open class preview]: Research and application of super-resolution technology in the field of video quality enhancement
- The use of Ts - Map type
猜你喜欢
![[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

leetcode/submatrix element sum

表达式引擎在转转平台的实践
![[Open class preview]: Research and application of super-resolution technology in the field of video image quality enhancement](/img/fc/cd859efa69fa7b45f173de74c04858.png)
[Open class preview]: Research and application of super-resolution technology in the field of video image quality enhancement

A new generation of ultra-safe cellular batteries, Sihao Airun goes on sale starting at 139,900 yuan

How to use DevExpress controls to draw flowcharts?After reading this article, you will understand!

Promise learning (4) The ultimate solution for asynchronous programming async + await: write asynchronous code in a synchronous way

Promise学习(二)一篇文章带你快速了解Promise中的常用API

Pytest电商项目实战(下)

Jenkins安装插件遇到的问题
随机推荐
Promise learning (1) What is Promise?how to use?How to solve callback hell?
浏览器存储
Promise to learn several key questions (3) the Promise - state change, execution sequence and mechanism, multitasking series, abnormal penetration, interrupt the chain of Promise
【公开课预告】:超分辨率技术在视频画质增强领域的研究与应用
腾讯云原生:Areaki Mesh 在 2022 冬奥会视频直播应用中的服务网格实践
Jenkins安装插件遇到的问题
【讲座分享】“营收“看金融
A new generation of ultra-safe cellular batteries, Sihao Airun goes on sale starting at 139,900 yuan
Ts-Map 类的使用
数字化转型实践:世界级2B数字化营销的方法框架
CloudCompare&PCL ICP配准(点到面)
R language ggplot2 visualization: use ggpubr package ggscatter function visualization scatterplot, use xscale wasn't entirely specified X axis measurement adjustment function, set the X coordinate for
用户体验 | 如何度量用户体验 ?
The four methods of judging JS data type
activiti工作流的分页查询避坑
【Unity3D插件】AVPro Video插件分享《视频播放插件》
R语言检验时间序列的平稳性:使用tseries包的adf.test函数实现增强的Dickey-Fuller(ADF)检验、检验时序数据是否具有均值回归特性(平稳性)、具有均值回归特性的案例
Promise学习(一)Promise是什么?怎么用?回调地狱怎么解决?
[Open class preview]: Research and application of super-resolution technology in the field of video image quality enhancement
How to get the address of WeChat video account (link address of WeChat public account)