Open jiyuwangbupt opened 1 month ago
(TPS) jyw@rtx6000:~$ python ./TPS/tps/utils/resample2d_package/setup.py build running build running build_ext building 'resample2d_cuda' extension gcc -pthread -B /home/jyw/anaconda3/envs/TPS/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/home/jyw/anaconda3/envs/TPS/lib/python3.6/site-packages/torch/include -I/home/jyw/anaconda3/envs/TPS/lib/python3.6/site-packages/torch/include/torch/csrc/api/include -I/home/jyw/anaconda3/envs/TPS/lib/python3.6/site-packages/torch/include/TH -I/home/jyw/anaconda3/envs/TPS/lib/python3.6/site-packages/torch/include/THC -I/home/jyw/anaconda3/envs/TPS/include/python3.6m -c resample2d_cuda.cc -o build/temp.linux-x86_64-3.6/resample2d_cuda.o -std=c++11 -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=resample2d_cuda -D_GLIBCXX_USE_CXX11_ABI=0 cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++ cc1plus: fatal error: resample2d_cuda.cc: 没有那个文件或目录 compilation terminated. error: command 'gcc' failed with exit status 1
Hi,
It appears that this error could originate from your gcc compiler. Please refer to related blog (e.g., https://github.com/NVIDIA/flownet2-pytorch/issues/156) and see if this may help. Thanks.
(TPS) jyw@rtx6000:~$ python ./TPS/tps/utils/resample2d_package/setup.py build running build running build_ext building 'resample2d_cuda' extension gcc -pthread -B /home/jyw/anaconda3/envs/TPS/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/home/jyw/anaconda3/envs/TPS/lib/python3.6/site-packages/torch/include -I/home/jyw/anaconda3/envs/TPS/lib/python3.6/site-packages/torch/include/torch/csrc/api/include -I/home/jyw/anaconda3/envs/TPS/lib/python3.6/site-packages/torch/include/TH -I/home/jyw/anaconda3/envs/TPS/lib/python3.6/site-packages/torch/include/THC -I/home/jyw/anaconda3/envs/TPS/include/python3.6m -c resample2d_cuda.cc -o build/temp.linux-x86_64-3.6/resample2d_cuda.o -std=c++11 -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=resample2d_cuda -D_GLIBCXX_USE_CXX11_ABI=0 cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++ cc1plus: fatal error: resample2d_cuda.cc: 没有那个文件或目录 compilation terminated. error: command 'gcc' failed with exit status 1