question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

build Apex latest version failed with pytorch 1.4.0 due to missing ATen/cuda/DeviceUtils.cuh

See original GitHub issue

While 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:open
  • Created 2 years ago
  • Reactions:2
  • Comments:9

github_iconTop GitHub Comments

20reactions
zyl1336110861commented, Nov 3, 2021

Hi, I just solved my problem by rolling back the version of apex like this: git checkout f3a960f80244cf9e80558ab30f7f7e8cbf03c0a0

5reactions
AndyYuan96commented, Nov 3, 2021

picking up a commit before #1191 may work – https://github.com/NVIDIA/apex/commits/master

maybe before #1171, commit between #1171 and #1191 doesn’t work.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found