build error:error: command '/usr/local/cuda/bin/nvcc' failed with exit status 1

See original GitHub issue

Repost (seems like the project is reset)

I faced this error with pytorch 1.2.0, cuda 10.0 and gcc 5.4.0. If you face the same error, try to modify #include <torch/extension.h> to #include <torch/types.h> in the following files (*.h and *.cu files only):

kaolin/cuda/util.h
kaolin/cuda/cuda_util.h
kaolin/cuda/mesh_intersection_cuda.cu
kaolin/cuda/sided_distance_cuda.cu

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:2
  • Comments:9 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
arozantsevcommented, Nov 21, 2019

Hi @MtlsBart,

I have tried two cases:

  1. CUDA 10.0, V10.0.130; PyTorch 1.2.0; MSVC 14.16.27023
  2. CUDA 10.1, V10.1.243; PyTorch 1.3.1; Don’t remember the MSVC version right now – I will post in the comment later

and in both cases it worked after the following two fixes:

  1. There is one known PyTorch issue that prevents from installation:
  2. There is another cuda related bug, to fix which the following needs to be done:
    • In file: kaolin\cuda\mesh_intersection.cpp - change line 20: from int MeshIntersectionKernelLauncher( to void MeshIntersectionKernelLauncher(
    • This bug will be addressed in future commits

Note: the following files should not be modified.

kaolin/cuda/util.h
kaolin/cuda/cuda_util.h
kaolin/cuda/mesh_intersection_cuda.cu
kaolin/cuda/sided_distance_cuda.cu
0reactions
96wangfengcommented, Nov 30, 2020

image @hubert0527

Hi,how do you solve this problem?

Read more comments on GitHub >

github_iconTop Results From Across the Web

build error:error: command '/usr/local/cuda/bin/nvcc' failed with ...
It was not the same as 'error: command /usr/local/cuda/bin/nvcc' failed with exit status 1 that lacked with local/cuda . And I finally worked ......
Read more >
error: command '/usr/local/cuda/bin/nvcc' failed with exit status ...
These error occur because DCNv2 require torch version 1.4.0 so simply I had degraded torch version after that try to build again.
Read more >
error: failed building wheel for torch-sparse - QBExpress
Fix build issues on Windows by eltonzheng Pull Request #2428 error: command '/usr/local/cuda/bin/nvcc' failed with exit status 1, ...
Read more >
command ':/usr/local/cuda/bin/nvcc' failed with exit status 1
仔细观察发现, 报错的路径里面多了一个冒号!! unable to execute ':/usr/local/cuda/bin/nvcc': No such file or directory.
Read more >
Build error in PyTorch Vision
Hence, I want to build PyTorch Vision in the local system. ... error: command '/opt/cuda/bin/nvcc' failed with exit status 1.
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