当前位置:网站首页>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
边栏推荐
- Hot review last week (7.25 7.31)
- C language implementation!20000 in 4 seconds
- leetcode/子矩阵元素和
- 一篇文章,带你详细了解华为认证体系证书(2)
- js中常用追加元素的几种方法:append,appendTo,after,before,insertAfter,insertBefore,appendChild
- Excel表格打印时不打印标记填充颜色
- Aeraki Mesh 正式成为 CNCF 沙箱项目
- JS 中的 undefined 和 null 的区别
- 解决vscode输入! 无法快捷生成骨架(新版vscode快速生成骨架的三种方法)
- CAN通信的数据帧和远程帧
猜你喜欢

A new generation of ultra-safe cellular batteries, Sihao Airun goes on sale starting at 139,900 yuan
![[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

爱可可AI前沿推介(8.1)

基于ArkUI eTS开发的坚果食谱(NutRecipes)

Qt get all files in a folder

Pytest电商项目实战(下)

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

Process sibling data into tree data

阿里云官方 Redis 开发规范

判断JS数据类型的四种方法
随机推荐
A new generation of ultra-safe cellular batteries, Sihao Airun goes on sale starting at 139,900 yuan
bat countdown code
安装apex报错
MNIST是什么(plist是什么意思)
win10系统重装,无法登录进行同步的情况下chrome数据恢复
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
稀疏表示--学习笔记
Jenkins安装插件遇到的问题
leetcode每日一题:字符串压缩
C language implementation!20000 in 4 seconds
腾讯云原生:Areaki Mesh 在 2022 冬奥会视频直播应用中的服务网格实践
【likeshop】回收租凭系统100%开源无加密 商城+回收+租赁
Promise learning (4) The ultimate solution for asynchronous programming async + await: write asynchronous code in a synchronous way
Beyond Compare 4 试用期到期
Pytest e-commerce project combat (below)
[Community Star Selection] Issue 24 August Update Plan | Keep writing, refuse to lie down!More original incentive packages, as well as Huawei WATCH FIT watches!
程序员如何优雅地解决线上问题?
How do programmers solve online problems gracefully?
ECCV22|只能11%的参数就能优于Swin,微软提出快速预训练蒸馏方法TinyViT
千万级乘客排队系统重构&压测方案——总结篇