Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FAILED: depthconv_cuda_redo.o #1

Open
kuzhang opened this issue Jul 20, 2022 · 2 comments
Open

FAILED: depthconv_cuda_redo.o #1

kuzhang opened this issue Jul 20, 2022 · 2 comments

Comments

@kuzhang
Copy link

kuzhang commented Jul 20, 2022

Evaluating 1 trackers on 15 sequences
Tracker: dimp_rgbd_blend dimp50_votd None , Sequence: multi/multi_22
have 1672 depth frames
['loading net --', 'dimp50.pth']
Song in pytracking.utils.loading.py load_network ..
Song in ltr.admin.loading.py: line 65, net_constr.kwds.keys() arg = backbone_pretrained
Song in ltr.admin.model_constructor: fun_module : ltr.models.tracking.dimpnet
Song in ltr.admin.model_constructor: fun_name : dimpnet50
Using /home/dlp/.cache/torch_extensions/py37_cu102 as PyTorch extensions root...
Detected CUDA files, patching ldflags
Emitting ninja build file /home/dlp/.cache/torch_extensions/py37_cu102/_depthconv/build.ninja...
Building extension module _depthconv...
Allowing ninja to set a default number of workers... (overridable by setting the environment variable MAX_JOBS=N)
[1/2] c++ -MMD -MF depthconv_cuda_redo.o.d -DTORCH_EXTENSION_NAME=_depthconv -DTORCH_API_INCLUDE_EXTENSION_H -DPYBIND11_COMPILER_TYPE="_gcc" -DPYBIND11_STDLIB="_libstdcpp" -DPYBIND11_BUILD_ABI="_cxxabi1011" -isystem /home/dlp/anaconda3/envs/dal/lib/python3.7/site-packages/torch/include -isystem /home/dlp/anaconda3/envs/dal/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -isystem /home/dlp/anaconda3/envs/dal/lib/python3.7/site-packages/torch/include/TH -isystem /home/dlp/anaconda3/envs/dal/lib/python3.7/site-packages/torch/include/THC -isystem /home/dlp/anaconda3/envs/dal/include/python3.7m -D_GLIBCXX_USE_CXX11_ABI=0 -fPIC -std=c++14 -c /home/dlp/github/DAL/pytracking_dimp/ltr/external/depthconv/src_pytorch13/depthconv_cuda_redo.c -o depthconv_cuda_redo.o
FAILED: depthconv_cuda_redo.o
c++ -MMD -MF depthconv_cuda_redo.o.d -DTORCH_EXTENSION_NAME=_depthconv -DTORCH_API_INCLUDE_EXTENSION_H -DPYBIND11_COMPILER_TYPE="_gcc" -DPYBIND11_STDLIB="_libstdcpp" -DPYBIND11_BUILD_ABI="_cxxabi1011" -isystem /home/dlp/anaconda3/envs/dal/lib/python3.7/site-packages/torch/include -isystem /home/dlp/anaconda3/envs/dal/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -isystem /home/dlp/anaconda3/envs/dal/lib/python3.7/site-packages/torch/include/TH -isystem /home/dlp/anaconda3/envs/dal/lib/python3.7/site-packages/torch/include/THC -isystem /home/dlp/anaconda3/envs/dal/include/python3.7m -D_GLIBCXX_USE_CXX11_ABI=0 -fPIC -std=c++14 -c /home/dlp/github/DAL/pytracking_dimp/ltr/external/depthconv/src_pytorch13/depthconv_cuda_redo.c -o depthconv_cuda_redo.o
/home/dlp/github/DAL/pytracking_dimp/ltr/external/depthconv/src_pytorch13/depthconv_cuda_redo.c:1:10: fatal error: THC/THC.h: No such file or directory
1 | #include <THC/THC.h>
| ^~~~~~~~~~~
compilation terminated.
ninja: build stopped: subcommand failed.
Error building extension '_depthconv'

@kuzhang
Copy link
Author

kuzhang commented Jul 20, 2022

Hi there, I tried to use your code to test on custom RGBD data, I had set up the env as pytracking and I got the above error while doing the evaluation. It refers to ninja and depth_conv error. DO you have any idea why this error occurs?

@xiaozai
Copy link
Owner

xiaozai commented Jul 26, 2022

Hi, sorry for the late reply, just came back from the holidays. To be honest, I met this error too and I can not compile DepthConv sometimes too, it is because of the version of PyTorch. The original depthconv is too old and it will raise the compile error when you use a newer PyTorch. You may check the DepthConv and I found other people also met similar errors.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants