build Apex latest version failed with pytorch 1.4.0 due to missing ATen/cuda/DeviceUtils.cuh
See original GitHub issueWhile i try to build the apex for my new pytorch env, there is a error says:
csrc/layer_norm_cuda_kernel.cu:4:37: fatal error: ATen/cuda/DeviceUtils.cuh: No such file or directory
Actually, I could not find the file in the dir(Pytorch 1.4.0 just do not include this file), and I also found that the include dependency for DeviceUtils.cuh
just added 1 month ago in the commit : cleanup missing THCDeviceUtils.cuh header
#include "ATen/ATen.h"
#include <THC/THCDeviceUtils.cuh> <----
#include "ATen/cuda/DeviceUtils.cuh" <----
#include <cuda.h>
#include <cuda_runtime.h>
So I can only build with an old-version-donwload-before apex to use (no bug in this time)
Is there something wrong with the recent commit?
Issue Analytics
- State:
- Created 2 years ago
- Reactions:2
- Comments:9
Top Results From Across the Web
Not install torch 1.4.0 for Windows - PyTorch Forums
hi. i can not install torch 1.4.0 using command pip install torch==1.4.0+cpu ... create error: Could not find a version that satisfiles the ......
Read more >PyTorch installation fails Could not find a version that satisfies ...
whl is not a supported wheel on this platform. and pip install torch==1.4.0+cpu torchvision==0.5.0+cpu - ...
Read more >PyTorch for Jetson - NVIDIA Developer Forums
Below are pre-built PyTorch pip wheel installers for Python on Jetson Nano, Jetson TX1/TX2, Jetson Xavier NX/AGX, and Jetson AGX Orin with ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Hi, I just solved my problem by rolling back the version of apex like this:
git checkout f3a960f80244cf9e80558ab30f7f7e8cbf03c0a0
maybe before #1171, commit between #1171 and #1191 doesn’t work.