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

Pytorch-Correlation-extension/build/temp.linux-x86_64-3.9/Correlation_Module/correlation_cuda_kernel.o error #113

Open
KeepFaithMe opened this issue Aug 9, 2024 · 1 comment

Comments

@KeepFaithMe
Copy link

Enviroment:
torch 1.9.0+cu111
NVIDIA-SMI 555.58.02 Driver Version: 555.58.02 CUDA Version: 12.5
Cuda compilation tools, release 11.5, V11.5.119
Build cuda_11.5.r11.5/compiler.30672275_0
python 3.9


running install
running bdist_egg
running egg_info
creating Correlation_Module/spatial_correlation_sampler.egg-info
writing Correlation_Module/spatial_correlation_sampler.egg-info/PKG-INFO
writing dependency_links to Correlation_Module/spatial_correlation_sampler.egg-info/dependency_links.txt
writing requirements to Correlation_Module/spatial_correlation_sampler.egg-info/requires.txt
writing top-level names to Correlation_Module/spatial_correlation_sampler.egg-info/top_level.txt
writing manifest file 'Correlation_Module/spatial_correlation_sampler.egg-info/SOURCES.txt'
reading manifest file 'Correlation_Module/spatial_correlation_sampler.egg-info/SOURCES.txt'
adding license file 'LICENSE'
writing manifest file 'Correlation_Module/spatial_correlation_sampler.egg-info/SOURCES.txt'
installing library code to build/bdist.linux-x86_64/egg
running install_lib
running build_py
creating build
creating build/lib.linux-x86_64-3.9
creating build/lib.linux-x86_64-3.9/spatial_correlation_sampler
copying Correlation_Module/spatial_correlation_sampler/init.py -> build/lib.linux-x86_64-3.9/spatial_correlation_sampler
copying Correlation_Module/spatial_correlation_sampler/spatial_correlation_sampler.py -> build/lib.linux-x86_64-3.9/spatial_correlation_sampler
running build_ext
building 'spatial_correlation_sampler_backend' extension
creating /home/zhangchuan/Models/Segment-and-Track-Anything/Pytorch-Correlation-extension/build/temp.linux-x86_64-3.9
creating /home/zhangchuan/Models/Segment-and-Track-Anything/Pytorch-Correlation-extension/build/temp.linux-x86_64-3.9/Correlation_Module
Emitting ninja build file /home/zhangchuan/Models/Segment-and-Track-Anything/Pytorch-Correlation-extension/build/temp.linux-x86_64-3.9/build.ninja...
Compiling objects...
Allowing ninja to set a default number of workers... (overridable by setting the environment variable MAX_JOBS=N)
1.10.2
g++ -pthread -B /home/zhangchuan/anaconda3/envs/DetTracking/compiler_compat -shared -Wl,-rpath,/home/zhangchuan/anaconda3/envs/DetTracking/lib -Wl,-rpath-link,/home/zhangchuan/anaconda3/envs/DetTracking/lib -L/home/zhangchuan/anaconda3/envs/DetTracking/lib -L/home/zhangchuan/anaconda3/envs/DetTracking/lib -Wl,-rpath,/home/zhangchuan/anaconda3/envs/DetTracking/lib -Wl,-rpath-link,/home/zhangchuan/anaconda3/envs/DetTracking/lib -L/home/zhangchuan/anaconda3/envs/DetTracking/lib /home/zhangchuan/Models/Segment-and-Track-Anything/Pytorch-Correlation-extension/build/temp.linux-x86_64-3.9/Correlation_Module/correlation.o /home/zhangchuan/Models/Segment-and-Track-Anything/Pytorch-Correlation-extension/build/temp.linux-x86_64-3.9/Correlation_Module/correlation_cuda_kernel.o /home/zhangchuan/Models/Segment-and-Track-Anything/Pytorch-Correlation-extension/build/temp.linux-x86_64-3.9/Correlation_Module/correlation_sampler.o -L/home/zhangchuan/anaconda3/envs/DetTracking/lib/python3.9/site-packages/torch/lib -L/usr/lib64 -lc10 -ltorch -ltorch_cpu -ltorch_python -lcudart -lc10_cuda -ltorch_cuda_cu -ltorch_cuda_cpp -o build/lib.linux-x86_64-3.9/spatial_correlation_sampler_backend.cpython-39-x86_64-linux-gnu.so -lgomp
/home/zhangchuan/anaconda3/envs/DetTracking/compiler_compat/ld: cannot find /home/zhangchuan/Models/Segment-and-Track-Anything/Pytorch-Correlation-extension/build/temp.linux-x86_64-3.9/Correlation_Module/correlation.o: there is no such file or directory
/home/zhangchuan/anaconda3/envs/DetTracking/compiler_compat/ld: cannot find /home/zhangchuan/Models/Segment-and-Track-A_nything/Pytorch-Correlation-extension/build/temp.linux-x86_64-3.9/Correlation_Module/correlation_cuda_kernel.o: there is no such file or directory
/home/zhangchuan/anaconda3/envs/DetTracking/compiler_compat/ld: cannot find /home/zhangchuan/Models/Segment-and-Track-Anything/Pytorch-Correlation-extension/build/temp.linux-x86_64-3.9/Correlation_Module/correlation_sampler.o: there is no such file or directory
collect2: error: ld returned 1 exit status
error: command '/usr/bin/g++' failed with exit code 1

@ClementPinard
Copy link
Owner

Hi, what was the installation command exactly ? Was it from pip or from from source ?

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