ClementPinard / Pytorch-Correlation-extension

Custom implementation of Corrleation Module
MIT License
412 stars 77 forks source link

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

Open KeepFaithMe opened 1 month ago

KeepFaithMe commented 1 month ago

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 commented 1 day ago

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