mileyan / AnyNet

(ICRA) Anytime Stereo Image Depth Estimation on Mobile Devices
https://mileyan.github.io/AnyNet/
MIT License
495 stars 125 forks source link

Some error about spn #25

Open haixiongli opened 4 years ago

haixiongli commented 4 years ago

Hi, Thanks for your code, I meet a error when I compile spn in torch1.0 When I run the code cd models/spn_t1 bash make.sh the terminal show:

`running clean running build running build_ext building 'gaterecurrent2dnoind_cuda' extension creating /home/lab2/work/lhx/code/AnyNet/models/spn_t1/build creating /home/lab2/work/lhx/code/AnyNet/models/spn_t1/build/temp.linux-x86_64-3.6 creating /home/lab2/work/lhx/code/AnyNet/models/spn_t1/build/temp.linux-x86_64-3.6/src Emitting ninja build file /home/lab2/work/lhx/code/AnyNet/models/spn_t1/build/temp.linux-x86_64-3.6/build.ninja... Compiling objects... Allowing ninja to set a default number of workers... (overridable by setting the environment variable MAX_JOBS=N) [1/2] /usr/local/cuda/bin:/home/lab2/anaconda3/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin/bin/nvcc -I/home/lab2/anaconda3/envs/torch1.6/lib/python3.6/site-packages/torch/include -I/home/lab2/anaconda3/envs/torch1.6/lib/python3.6/site-packages/torch/include/torch/csrc/api/include -I/home/lab2/anaconda3/envs/torch1.6/lib/python3.6/site-packages/torch/include/TH -I/home/lab2/anaconda3/envs/torch1.6/lib/python3.6/site-packages/torch/include/THC -I/usr/local/cuda/bin:/home/lab2/anaconda3/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin/include -I/home/lab2/anaconda3/envs/torch1.6/include/python3.6m -c -c /home/lab2/work/lhx/code/AnyNet/models/spn_t1/src/gaterecurrent2dnoind_kernel.cu -o /home/lab2/work/lhx/code/AnyNet/models/spn_t1/build/temp.linux-x86_64-3.6/src/gaterecurrent2dnoind_kernel.o -DCUDA_NO_HALF_OPERATORS -DCUDA_NO_HALF_CONVERSIONS -DCUDA_NO_HALF2_OPERATORS__ --expt-relaxed-constexpr --compiler-options ''"'"'-fPIC'"'"'' -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=gaterecurrent2dnoind_cuda -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_75,code=sm_75 -std=c++14 FAILED: /home/lab2/work/lhx/code/AnyNet/models/spn_t1/build/temp.linux-x86_64-3.6/src/gaterecurrent2dnoind_kernel.o /usr/local/cuda/bin:/home/lab2/anaconda3/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin/bin/nvcc -I/home/lab2/anaconda3/envs/torch1.6/lib/python3.6/site-packages/torch/include -I/home/lab2/anaconda3/envs/torch1.6/lib/python3.6/site-packages/torch/include/torch/csrc/api/include -I/home/lab2/anaconda3/envs/torch1.6/lib/python3.6/site-packages/torch/include/TH -I/home/lab2/anaconda3/envs/torch1.6/lib/python3.6/site-packages/torch/include/THC -I/usr/local/cuda/bin:/home/lab2/anaconda3/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin/include -I/home/lab2/anaconda3/envs/torch1.6/include/python3.6m -c -c /home/lab2/work/lhx/code/AnyNet/models/spn_t1/src/gaterecurrent2dnoind_kernel.cu -o /home/lab2/work/lhx/code/AnyNet/models/spn_t1/build/temp.linux-x86_64-3.6/src/gaterecurrent2dnoind_kernel.o -DCUDA_NO_HALF_OPERATORS -DCUDA_NO_HALF_CONVERSIONS -DCUDA_NO_HALF2_OPERATORS__ --expt-relaxed-constexpr --compiler-options ''"'"'-fPIC'"'"'' -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=gaterecurrent2dnoind_cuda -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_75,code=sm_75 -std=c++14 /bin/sh: 1: /usr/local/cuda/bin:/home/lab2/anaconda3/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin/bin/nvcc: not found [2/2] c++ -MMD -MF /home/lab2/work/lhx/code/AnyNet/models/spn_t1/build/temp.linux-x86_64-3.6/src/gaterecurrent2dnoind_cuda.o.d -pthread -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/home/lab2/anaconda3/envs/torch1.6/lib/python3.6/site-packages/torch/include -I/home/lab2/anaconda3/envs/torch1.6/lib/python3.6/site-packages/torch/include/torch/csrc/api/include -I/home/lab2/anaconda3/envs/torch1.6/lib/python3.6/site-packages/torch/include/TH -I/home/lab2/anaconda3/envs/torch1.6/lib/python3.6/site-packages/torch/include/THC -I/usr/local/cuda/bin:/home/lab2/anaconda3/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin/include -I/home/lab2/anaconda3/envs/torch1.6/include/python3.6m -c -c /home/lab2/work/lhx/code/AnyNet/models/spn_t1/src/gaterecurrent2dnoind_cuda.cpp -o /home/lab2/work/lhx/code/AnyNet/models/spn_t1/build/temp.linux-x86_64-3.6/src/gaterecurrent2dnoind_cuda.o -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=gaterecurrent2dnoind_cuda -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++14 cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++ In file included from /home/lab2/anaconda3/envs/torch1.6/lib/python3.6/site-packages/torch/include/ATen/Parallel.h:149:0, from /home/lab2/anaconda3/envs/torch1.6/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/utils.h:3, from /home/lab2/anaconda3/envs/torch1.6/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/nn/cloneable.h:5, from /home/lab2/anaconda3/envs/torch1.6/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/nn.h:3, from /home/lab2/anaconda3/envs/torch1.6/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/all.h:7, from /home/lab2/anaconda3/envs/torch1.6/lib/python3.6/site-packages/torch/include/torch/extension.h:4, from /home/lab2/work/lhx/code/AnyNet/models/spn_t1/src/gaterecurrent2dnoind_cuda.cpp:4: /home/lab2/anaconda3/envs/torch1.6/lib/python3.6/site-packages/torch/include/ATen/ParallelOpenMP.h:84:0: warning: ignoring #pragma omp parallel [-Wunknown-pragmas]

pragma omp parallel for if ((end - begin) >= grain_size)

/home/lab2/work/lhx/code/AnyNet/models/spn_t1/src/gaterecurrent2dnoind_cuda.cpp: In function ‘int gaterecurrent2dnoind_forward_cuda(int, int, at::Tensor, at::Tensor, at::Tensor, at::Tensor, at::Tensor)’: /home/lab2/work/lhx/code/AnyNet/models/spn_t1/src/gaterecurrent2dnoind_cuda.cpp:10:33: warning: ‘T at::Tensor::data() const [with T = float]’ is deprecated: Tensor.data() is deprecated. Please use Tensor.data_ptr() instead. [-Wdeprecated-declarations] float X_data = X.data(); ^ In file included from /home/lab2/anaconda3/envs/torch1.6/lib/python3.6/site-packages/torch/include/ATen/Tensor.h:3:0, from /home/lab2/anaconda3/envs/torch1.6/lib/python3.6/site-packages/torch/include/ATen/Context.h:4, from /home/lab2/anaconda3/envs/torch1.6/lib/python3.6/site-packages/torch/include/ATen/ATen.h:5, from /home/lab2/anaconda3/envs/torch1.6/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/types.h:3, from /home/lab2/anaconda3/envs/torch1.6/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader_options.h:4, from /home/lab2/anaconda3/envs/torch1.6/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/base.h:3, from /home/lab2/anaconda3/envs/torch1.6/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/stateful.h:3, from /home/lab2/anaconda3/envs/torch1.6/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader.h:3, from /home/lab2/anaconda3/envs/torch1.6/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data.h:3, from /home/lab2/anaconda3/envs/torch1.6/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/all.h:4, from /home/lab2/anaconda3/envs/torch1.6/lib/python3.6/site-packages/torch/include/torch/extension.h:4, from /home/lab2/work/lhx/code/AnyNet/models/spn_t1/src/gaterecurrent2dnoind_cuda.cpp:4: /home/lab2/anaconda3/envs/torch1.6/lib/python3.6/site-packages/torch/include/ATen/core/TensorBody.h:354:7: note: declared here T data() const { ^~~~ /home/lab2/work/lhx/code/AnyNet/models/spn_t1/src/gaterecurrent2dnoind_cuda.cpp:11:35: warning: ‘T at::Tensor::data() const [with T = float]’ is deprecated: Tensor.data() is deprecated. Please use Tensor.data_ptr() instead. [-Wdeprecated-declarations] float G1_data = G1.data(); ^ In file included from /home/lab2/anaconda3/envs/torch1.6/lib/python3.6/site-packages/torch/include/ATen/Tensor.h:3:0, from /home/lab2/anaconda3/envs/torch1.6/lib/python3.6/site-packages/torch/include/ATen/Context.h:4, from /home/lab2/anaconda3/envs/torch1.6/lib/python3.6/site-packages/torch/include/ATen/ATen.h:5, from /home/lab2/anaconda3/envs/torch1.6/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/types.h:3, from /home/lab2/anaconda3/envs/torch1.6/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader_options.h:4, from /home/lab2/anaconda3/envs/torch1.6/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/base.h:3, from /home/lab2/anaconda3/envs/torch1.6/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/stateful.h:3, from /home/lab2/anaconda3/envs/torch1.6/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader.h:3, from /home/lab2/anaconda3/envs/torch1.6/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data.h:3, from /home/lab2/anaconda3/envs/torch1.6/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/all.h:4, from /home/lab2/anaconda3/envs/torch1.6/lib/python3.6/site-packages/torch/include/torch/extension.h:4, from /home/lab2/work/lhx/code/AnyNet/models/spn_t1/src/gaterecurrent2dnoind_cuda.cpp:4: /home/lab2/anaconda3/envs/torch1.6/lib/python3.6/site-packages/torch/include/ATen/core/TensorBody.h:354:7: note: declared here T data() const { ^~~~ /home/lab2/work/lhx/code/AnyNet/models/spn_t1/src/gaterecurrent2dnoind_cuda.cpp:12:35: warning: ‘T at::Tensor::data() const [with T = float]’ is deprecated: Tensor.data() is deprecated. Please use Tensor.data_ptr() instead. [-Wdeprecated-declarations] float G2_data = G2.data(); ^ In file included from /home/lab2/anaconda3/envs/torch1.6/lib/python3.6/site-packages/torch/include/ATen/Tensor.h:3:0, from /home/lab2/anaconda3/envs/torch1.6/lib/python3.6/site-packages/torch/include/ATen/Context.h:4, from /home/lab2/anaconda3/envs/torch1.6/lib/python3.6/site-packages/torch/include/ATen/ATen.h:5, from /home/lab2/anaconda3/envs/torch1.6/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/types.h:3, from /home/lab2/anaconda3/envs/torch1.6/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader_options.h:4, from /home/lab2/anaconda3/envs/torch1.6/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/base.h:3, from /home/lab2/anaconda3/envs/torch1.6/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/stateful.h:3, from /home/lab2/anaconda3/envs/torch1.6/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader.h:3, from /home/lab2/anaconda3/envs/torch1.6/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data.h:3, from /home/lab2/anaconda3/envs/torch1.6/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/all.h:4, from /home/lab2/anaconda3/envs/torch1.6/lib/python3.6/site-packages/torch/include/torch/extension.h:4, from /home/lab2/work/lhx/code/AnyNet/models/spn_t1/src/gaterecurrent2dnoind_cuda.cpp:4: /home/lab2/anaconda3/envs/torch1.6/lib/python3.6/site-packages/torch/include/ATen/core/TensorBody.h:354:7: note: declared here T data() const { ^~~~ /home/lab2/work/lhx/code/AnyNet/models/spn_t1/src/gaterecurrent2dnoind_cuda.cpp:13:35: warning: ‘T at::Tensor::data() const [with T = float]’ is deprecated: Tensor.data() is deprecated. Please use Tensor.data_ptr() instead. [-Wdeprecated-declarations] float G3_data = G3.data(); ^ In file included from /home/lab2/anaconda3/envs/torch1.6/lib/python3.6/site-packages/torch/include/ATen/Tensor.h:3:0, from /home/lab2/anaconda3/envs/torch1.6/lib/python3.6/site-packages/torch/include/ATen/Context.h:4, from /home/lab2/anaconda3/envs/torch1.6/lib/python3.6/site-packages/torch/include/ATen/ATen.h:5, from /home/lab2/anaconda3/envs/torch1.6/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/types.h:3, from /home/lab2/anaconda3/envs/torch1.6/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader_options.h:4, from /home/lab2/anaconda3/envs/torch1.6/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/base.h:3, from /home/lab2/anaconda3/envs/torch1.6/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/stateful.h:3, from /home/lab2/anaconda3/envs/torch1.6/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader.h:3, from /home/lab2/anaconda3/envs/torch1.6/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data.h:3, from /home/lab2/anaconda3/envs/torch1.6/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/all.h:4, from /home/lab2/anaconda3/envs/torch1.6/lib/python3.6/site-packages/torch/include/torch/extension.h:4, from /home/lab2/work/lhx/code/AnyNet/models/spn_t1/src/gaterecurrent2dnoind_cuda.cpp:4: /home/lab2/anaconda3/envs/torch1.6/lib/python3.6/site-packages/torch/include/ATen/core/TensorBody.h:354:7: note: declared here T data() const { ^~~~ /home/lab2/work/lhx/code/AnyNet/models/spn_t1/src/gaterecurrent2dnoind_cuda.cpp:14:38: warning: ‘T at::Tensor::data() const [with T = float]’ is deprecated: Tensor.data() is deprecated. Please use Tensor.data_ptr() instead. [-Wdeprecated-declarations] float H_data = output.data(); ^ In file included from /home/lab2/anaconda3/envs/torch1.6/lib/python3.6/site-packages/torch/include/ATen/Tensor.h:3:0, from /home/lab2/anaconda3/envs/torch1.6/lib/python3.6/site-packages/torch/include/ATen/Context.h:4, from /home/lab2/anaconda3/envs/torch1.6/lib/python3.6/site-packages/torch/include/ATen/ATen.h:5, from /home/lab2/anaconda3/envs/torch1.6/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/types.h:3, from /home/lab2/anaconda3/envs/torch1.6/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader_options.h:4, from /home/lab2/anaconda3/envs/torch1.6/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/base.h:3, from /home/lab2/anaconda3/envs/torch1.6/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/stateful.h:3, from /home/lab2/anaconda3/envs/torch1.6/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader.h:3, from /home/lab2/anaconda3/envs/torch1.6/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data.h:3, from /home/lab2/anaconda3/envs/torch1.6/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/all.h:4, from /home/lab2/anaconda3/envs/torch1.6/lib/python3.6/site-packages/torch/include/torch/extension.h:4, from /home/lab2/work/lhx/code/AnyNet/models/spn_t1/src/gaterecurrent2dnoind_cuda.cpp:4: /home/lab2/anaconda3/envs/torch1.6/lib/python3.6/site-packages/torch/include/ATen/core/TensorBody.h:354:7: note: declared here T data() const { ^~~~ /home/lab2/work/lhx/code/AnyNet/models/spn_t1/src/gaterecurrent2dnoind_cuda.cpp: In function ‘int gaterecurrent2dnoind_backward_cuda(int, int, at::Tensor, at::Tensor, at::Tensor, at::Tensor, at::Tensor, at::Tensor, at::Tensor, at::Tensor, at::Tensor, at::Tensor)’: /home/lab2/work/lhx/code/AnyNet/models/spn_t1/src/gaterecurrent2dnoind_cuda.cpp:47:33: warning: ‘T at::Tensor::data() const [with T = float]’ is deprecated: Tensor.data() is deprecated. Please use Tensor.data_ptr() instead. [-Wdeprecated-declarations] float X_data = X.data(); ^ In file included from /home/lab2/anaconda3/envs/torch1.6/lib/python3.6/site-packages/torch/include/ATen/Tensor.h:3:0, from /home/lab2/anaconda3/envs/torch1.6/lib/python3.6/site-packages/torch/include/ATen/Context.h:4, from /home/lab2/anaconda3/envs/torch1.6/lib/python3.6/site-packages/torch/include/ATen/ATen.h:5, from /home/lab2/anaconda3/envs/torch1.6/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/types.h:3, from /home/lab2/anaconda3/envs/torch1.6/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader_options.h:4, from /home/lab2/anaconda3/envs/torch1.6/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/base.h:3, from /home/lab2/anaconda3/envs/torch1.6/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/stateful.h:3, from /home/lab2/anaconda3/envs/torch1.6/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader.h:3, from /home/lab2/anaconda3/envs/torch1.6/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data.h:3, from /home/lab2/anaconda3/envs/torch1.6/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/all.h:4, from /home/lab2/anaconda3/envs/torch1.6/lib/python3.6/site-packages/torch/include/torch/extension.h:4, from /home/lab2/work/lhx/code/AnyNet/models/spn_t1/src/gaterecurrent2dnoind_cuda.cpp:4: /home/lab2/anaconda3/envs/torch1.6/lib/python3.6/site-packages/torch/include/ATen/core/TensorBody.h:354:7: note: declared here T data() const { ^~~~ /home/lab2/work/lhx/code/AnyNet/models/spn_t1/src/gaterecurrent2dnoind_cuda.cpp:48:35: warning: ‘T at::Tensor::data() const [with T = float]’ is deprecated: Tensor.data() is deprecated. Please use Tensor.data_ptr() instead. [-Wdeprecated-declarations] float G1_data = G1.data(); ^ In file included from /home/lab2/anaconda3/envs/torch1.6/lib/python3.6/site-packages/torch/include/ATen/Tensor.h:3:0, from /home/lab2/anaconda3/envs/torch1.6/lib/python3.6/site-packages/torch/include/ATen/Context.h:4, from /home/lab2/anaconda3/envs/torch1.6/lib/python3.6/site-packages/torch/include/ATen/ATen.h:5, from /home/lab2/anaconda3/envs/torch1.6/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/types.h:3, from /home/lab2/anaconda3/envs/torch1.6/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader_options.h:4, from /home/lab2/anaconda3/envs/torch1.6/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/base.h:3, from /home/lab2/anaconda3/envs/torch1.6/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/stateful.h:3, from /home/lab2/anaconda3/envs/torch1.6/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader.h:3, from /home/lab2/anaconda3/envs/torch1.6/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data.h:3, from /home/lab2/anaconda3/envs/torch1.6/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/all.h:4, from /home/lab2/anaconda3/envs/torch1.6/lib/python3.6/site-packages/torch/include/torch/extension.h:4, from /home/lab2/work/lhx/code/AnyNet/models/spn_t1/src/gaterecurrent2dnoind_cuda.cpp:4: /home/lab2/anaconda3/envs/torch1.6/lib/python3.6/site-packages/torch/include/ATen/core/TensorBody.h:354:7: note: declared here T data() const { ^~~~ /home/lab2/work/lhx/code/AnyNet/models/spn_t1/src/gaterecurrent2dnoind_cuda.cpp:49:35: warning: ‘T at::Tensor::data() const [with T = float]’ is deprecated: Tensor.data() is deprecated. Please use Tensor.data_ptr() instead. [-Wdeprecated-declarations] float G2_data = G2.data(); ^ In file included from /home/lab2/anaconda3/envs/torch1.6/lib/python3.6/site-packages/torch/include/ATen/Tensor.h:3:0, from /home/lab2/anaconda3/envs/torch1.6/lib/python3.6/site-packages/torch/include/ATen/Context.h:4, from /home/lab2/anaconda3/envs/torch1.6/lib/python3.6/site-packages/torch/include/ATen/ATen.h:5, from /home/lab2/anaconda3/envs/torch1.6/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/types.h:3, from /home/lab2/anaconda3/envs/torch1.6/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader_options.h:4, from /home/lab2/anaconda3/envs/torch1.6/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/base.h:3, from /home/lab2/anaconda3/envs/torch1.6/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/stateful.h:3, from /home/lab2/anaconda3/envs/torch1.6/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader.h:3, from /home/lab2/anaconda3/envs/torch1.6/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data.h:3, from /home/lab2/anaconda3/envs/torch1.6/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/all.h:4, from /home/lab2/anaconda3/envs/torch1.6/lib/python3.6/site-packages/torch/include/torch/extension.h:4, from /home/lab2/work/lhx/code/AnyNet/models/spn_t1/src/gaterecurrent2dnoind_cuda.cpp:4: /home/lab2/anaconda3/envs/torch1.6/lib/python3.6/site-packages/torch/include/ATen/core/TensorBody.h:354:7: note: declared here T data() const { ^~~~ /home/lab2/work/lhx/code/AnyNet/models/spn_t1/src/gaterecurrent2dnoind_cuda.cpp:50:35: warning: ‘T at::Tensor::data() const [with T = float]’ is deprecated: Tensor.data() is deprecated. Please use Tensor.data_ptr() instead. [-Wdeprecated-declarations] float G3_data = G3.data(); ^ In file included from /home/lab2/anaconda3/envs/torch1.6/lib/python3.6/site-packages/torch/include/ATen/Tensor.h:3:0, from /home/lab2/anaconda3/envs/torch1.6/lib/python3.6/site-packages/torch/include/ATen/Context.h:4, from /home/lab2/anaconda3/envs/torch1.6/lib/python3.6/site-packages/torch/include/ATen/ATen.h:5, from /home/lab2/anaconda3/envs/torch1.6/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/types.h:3, from /home/lab2/anaconda3/envs/torch1.6/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader_options.h:4, from /home/lab2/anaconda3/envs/torch1.6/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/base.h:3, from /home/lab2/anaconda3/envs/torch1.6/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/stateful.h:3, from /home/lab2/anaconda3/envs/torch1.6/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader.h:3, from /home/lab2/anaconda3/envs/torch1.6/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data.h:3, from /home/lab2/anaconda3/envs/torch1.6/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/all.h:4, from /home/lab2/anaconda3/envs/torch1.6/lib/python3.6/site-packages/torch/include/torch/extension.h:4, from /home/lab2/work/lhx/code/AnyNet/models/spn_t1/src/gaterecurrent2dnoind_cuda.cpp:4: /home/lab2/anaconda3/envs/torch1.6/lib/python3.6/site-packages/torch/include/ATen/core/TensorBody.h:354:7: note: declared here T data() const { ^~~~ /home/lab2/work/lhx/code/AnyNet/models/spn_t1/src/gaterecurrent2dnoind_cuda.cpp:51:35: warning: ‘T at::Tensor::data() const [with T = float]’ is deprecated: Tensor.data() is deprecated. Please use Tensor.data_ptr() instead. [-Wdeprecated-declarations] float H_data = top.data(); ^ In file included from /home/lab2/anaconda3/envs/torch1.6/lib/python3.6/site-packages/torch/include/ATen/Tensor.h:3:0, from /home/lab2/anaconda3/envs/torch1.6/lib/python3.6/site-packages/torch/include/ATen/Context.h:4, from /home/lab2/anaconda3/envs/torch1.6/lib/python3.6/site-packages/torch/include/ATen/ATen.h:5, from /home/lab2/anaconda3/envs/torch1.6/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/types.h:3, from /home/lab2/anaconda3/envs/torch1.6/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader_options.h:4, from /home/lab2/anaconda3/envs/torch1.6/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/base.h:3, from /home/lab2/anaconda3/envs/torch1.6/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/stateful.h:3, from /home/lab2/anaconda3/envs/torch1.6/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader.h:3, from /home/lab2/anaconda3/envs/torch1.6/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data.h:3, from /home/lab2/anaconda3/envs/torch1.6/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/all.h:4, from /home/lab2/anaconda3/envs/torch1.6/lib/python3.6/site-packages/torch/include/torch/extension.h:4, from /home/lab2/work/lhx/code/AnyNet/models/spn_t1/src/gaterecurrent2dnoind_cuda.cpp:4: /home/lab2/anaconda3/envs/torch1.6/lib/python3.6/site-packages/torch/include/ATen/core/TensorBody.h:354:7: note: declared here T data() const { ^~~~ /home/lab2/work/lhx/code/AnyNet/models/spn_t1/src/gaterecurrent2dnoind_cuda.cpp:53:40: warning: ‘T at::Tensor::data() const [with T = float]’ is deprecated: Tensor.data() is deprecated. Please use Tensor.data_ptr() instead. [-Wdeprecated-declarations] float H_diff = top_grad.data(); ^ In file included from /home/lab2/anaconda3/envs/torch1.6/lib/python3.6/site-packages/torch/include/ATen/Tensor.h:3:0, from /home/lab2/anaconda3/envs/torch1.6/lib/python3.6/site-packages/torch/include/ATen/Context.h:4, from /home/lab2/anaconda3/envs/torch1.6/lib/python3.6/site-packages/torch/include/ATen/ATen.h:5, from /home/lab2/anaconda3/envs/torch1.6/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/types.h:3, from /home/lab2/anaconda3/envs/torch1.6/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader_options.h:4, from /home/lab2/anaconda3/envs/torch1.6/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/base.h:3, from /home/lab2/anaconda3/envs/torch1.6/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/stateful.h:3, from /home/lab2/anaconda3/envs/torch1.6/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader.h:3, from /home/lab2/anaconda3/envs/torch1.6/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data.h:3, from /home/lab2/anaconda3/envs/torch1.6/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/all.h:4, from /home/lab2/anaconda3/envs/torch1.6/lib/python3.6/site-packages/torch/include/torch/extension.h:4, from /home/lab2/work/lhx/code/AnyNet/models/spn_t1/src/gaterecurrent2dnoind_cuda.cpp:4: /home/lab2/anaconda3/envs/torch1.6/lib/python3.6/site-packages/torch/include/ATen/core/TensorBody.h:354:7: note: declared here T data() const { ^~~~ /home/lab2/work/lhx/code/AnyNet/models/spn_t1/src/gaterecurrent2dnoind_cuda.cpp:55:38: warning: ‘T at::Tensor::data() const [with T = float]’ is deprecated: Tensor.data() is deprecated. Please use Tensor.data_ptr() instead. [-Wdeprecated-declarations] float X_diff = X_grad.data(); ^ In file included from /home/lab2/anaconda3/envs/torch1.6/lib/python3.6/site-packages/torch/include/ATen/Tensor.h:3:0, from /home/lab2/anaconda3/envs/torch1.6/lib/python3.6/site-packages/torch/include/ATen/Context.h:4, from /home/lab2/anaconda3/envs/torch1.6/lib/python3.6/site-packages/torch/include/ATen/ATen.h:5, from /home/lab2/anaconda3/envs/torch1.6/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/types.h:3, from /home/lab2/anaconda3/envs/torch1.6/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader_options.h:4, from /home/lab2/anaconda3/envs/torch1.6/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/base.h:3, from /home/lab2/anaconda3/envs/torch1.6/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/stateful.h:3, from /home/lab2/anaconda3/envs/torch1.6/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader.h:3, from /home/lab2/anaconda3/envs/torch1.6/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data.h:3, from /home/lab2/anaconda3/envs/torch1.6/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/all.h:4, from /home/lab2/anaconda3/envs/torch1.6/lib/python3.6/site-packages/torch/include/torch/extension.h:4, from /home/lab2/work/lhx/code/AnyNet/models/spn_t1/src/gaterecurrent2dnoind_cuda.cpp:4: /home/lab2/anaconda3/envs/torch1.6/lib/python3.6/site-packages/torch/include/ATen/core/TensorBody.h:354:7: note: declared here T data() const { ^~~~ /home/lab2/work/lhx/code/AnyNet/models/spn_t1/src/gaterecurrent2dnoind_cuda.cpp:56:40: warning: ‘T at::Tensor::data() const [with T = float]’ is deprecated: Tensor.data() is deprecated. Please use Tensor.data_ptr() instead. [-Wdeprecated-declarations] float G1_diff = G1_grad.data(); ^ In file included from /home/lab2/anaconda3/envs/torch1.6/lib/python3.6/site-packages/torch/include/ATen/Tensor.h:3:0, from /home/lab2/anaconda3/envs/torch1.6/lib/python3.6/site-packages/torch/include/ATen/Context.h:4, from /home/lab2/anaconda3/envs/torch1.6/lib/python3.6/site-packages/torch/include/ATen/ATen.h:5, from /home/lab2/anaconda3/envs/torch1.6/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/types.h:3, from /home/lab2/anaconda3/envs/torch1.6/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader_options.h:4, from /home/lab2/anaconda3/envs/torch1.6/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/base.h:3, from /home/lab2/anaconda3/envs/torch1.6/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/stateful.h:3, from /home/lab2/anaconda3/envs/torch1.6/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader.h:3, from /home/lab2/anaconda3/envs/torch1.6/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data.h:3, from /home/lab2/anaconda3/envs/torch1.6/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/all.h:4, from /home/lab2/anaconda3/envs/torch1.6/lib/python3.6/site-packages/torch/include/torch/extension.h:4, from /home/lab2/work/lhx/code/AnyNet/models/spn_t1/src/gaterecurrent2dnoind_cuda.cpp:4: /home/lab2/anaconda3/envs/torch1.6/lib/python3.6/site-packages/torch/include/ATen/core/TensorBody.h:354:7: note: declared here T data() const { ^~~~ /home/lab2/work/lhx/code/AnyNet/models/spn_t1/src/gaterecurrent2dnoind_cuda.cpp:57:40: warning: ‘T at::Tensor::data() const [with T = float]’ is deprecated: Tensor.data() is deprecated. Please use Tensor.data_ptr() instead. [-Wdeprecated-declarations] float G2_diff = G2_grad.data(); ^ In file included from /home/lab2/anaconda3/envs/torch1.6/lib/python3.6/site-packages/torch/include/ATen/Tensor.h:3:0, from /home/lab2/anaconda3/envs/torch1.6/lib/python3.6/site-packages/torch/include/ATen/Context.h:4, from /home/lab2/anaconda3/envs/torch1.6/lib/python3.6/site-packages/torch/include/ATen/ATen.h:5, from /home/lab2/anaconda3/envs/torch1.6/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/types.h:3, from /home/lab2/anaconda3/envs/torch1.6/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader_options.h:4, from /home/lab2/anaconda3/envs/torch1.6/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/base.h:3, from /home/lab2/anaconda3/envs/torch1.6/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/stateful.h:3, from /home/lab2/anaconda3/envs/torch1.6/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader.h:3, from /home/lab2/anaconda3/envs/torch1.6/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data.h:3, from /home/lab2/anaconda3/envs/torch1.6/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/all.h:4, from /home/lab2/anaconda3/envs/torch1.6/lib/python3.6/site-packages/torch/include/torch/extension.h:4, from /home/lab2/work/lhx/code/AnyNet/models/spn_t1/src/gaterecurrent2dnoind_cuda.cpp:4: /home/lab2/anaconda3/envs/torch1.6/lib/python3.6/site-packages/torch/include/ATen/core/TensorBody.h:354:7: note: declared here T data() const { ^~~~ /home/lab2/work/lhx/code/AnyNet/models/spn_t1/src/gaterecurrent2dnoind_cuda.cpp:58:40: warning: ‘T at::Tensor::data() const [with T = float]’ is deprecated: Tensor.data() is deprecated. Please use Tensor.data_ptr() instead. [-Wdeprecated-declarations] float G3_diff = G3_grad.data(); ^ In file included from /home/lab2/anaconda3/envs/torch1.6/lib/python3.6/site-packages/torch/include/ATen/Tensor.h:3:0, from /home/lab2/anaconda3/envs/torch1.6/lib/python3.6/site-packages/torch/include/ATen/Context.h:4, from /home/lab2/anaconda3/envs/torch1.6/lib/python3.6/site-packages/torch/include/ATen/ATen.h:5, from /home/lab2/anaconda3/envs/torch1.6/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/types.h:3, from /home/lab2/anaconda3/envs/torch1.6/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader_options.h:4, from /home/lab2/anaconda3/envs/torch1.6/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/base.h:3, from /home/lab2/anaconda3/envs/torch1.6/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/stateful.h:3, from /home/lab2/anaconda3/envs/torch1.6/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader.h:3, from /home/lab2/anaconda3/envs/torch1.6/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data.h:3, from /home/lab2/anaconda3/envs/torch1.6/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/all.h:4, from /home/lab2/anaconda3/envs/torch1.6/lib/python3.6/site-packages/torch/include/torch/extension.h:4, from /home/lab2/work/lhx/code/AnyNet/models/spn_t1/src/gaterecurrent2dnoind_cuda.cpp:4: /home/lab2/anaconda3/envs/torch1.6/lib/python3.6/site-packages/torch/include/ATen/core/TensorBody.h:354:7: note: declared here T * data() const { ^~~~ ninja: build stopped: subcommand failed. Traceback (most recent call last): File "/home/lab2/anaconda3/envs/torch1.6/lib/python3.6/site-packages/torch/utils/cpp_extension.py", line 1515, in _run_ninja_build env=env) File "/home/lab2/anaconda3/envs/torch1.6/lib/python3.6/subprocess.py", line 418, in run output=stdout, stderr=stderr) subprocess.CalledProcessError: Command '['ninja', '-v']' returned non-zero exit status 1.

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "setup.py", line 13, in 'build_ext': BuildExtension File "/home/lab2/anaconda3/envs/torch1.6/lib/python3.6/site-packages/setuptools/init.py", line 153, in setup return distutils.core.setup(*attrs) File "/home/lab2/anaconda3/envs/torch1.6/lib/python3.6/distutils/core.py", line 148, in setup dist.run_commands() File "/home/lab2/anaconda3/envs/torch1.6/lib/python3.6/distutils/dist.py", line 955, in run_commands self.run_command(cmd) File "/home/lab2/anaconda3/envs/torch1.6/lib/python3.6/distutils/dist.py", line 974, in run_command cmd_obj.run() File "/home/lab2/anaconda3/envs/torch1.6/lib/python3.6/distutils/command/build.py", line 135, in run self.run_command(cmd_name) File "/home/lab2/anaconda3/envs/torch1.6/lib/python3.6/distutils/cmd.py", line 313, in run_command self.distribution.run_command(command) File "/home/lab2/anaconda3/envs/torch1.6/lib/python3.6/distutils/dist.py", line 974, in run_command cmd_obj.run() File "/home/lab2/anaconda3/envs/torch1.6/lib/python3.6/site-packages/setuptools/command/build_ext.py", line 79, in run _build_ext.run(self) File "/home/lab2/anaconda3/envs/torch1.6/lib/python3.6/site-packages/Cython/Distutils/old_build_ext.py", line 186, in run _build_ext.build_ext.run(self) File "/home/lab2/anaconda3/envs/torch1.6/lib/python3.6/distutils/command/build_ext.py", line 339, in run self.build_extensions() File "/home/lab2/anaconda3/envs/torch1.6/lib/python3.6/site-packages/torch/utils/cpp_extension.py", line 649, in build_extensions build_ext.build_extensions(self) File "/home/lab2/anaconda3/envs/torch1.6/lib/python3.6/site-packages/Cython/Distutils/old_build_ext.py", line 195, in build_extensions _build_ext.build_ext.build_extensions(self) File "/home/lab2/anaconda3/envs/torch1.6/lib/python3.6/distutils/command/build_ext.py", line 448, in build_extensions self._build_extensions_serial() File "/home/lab2/anaconda3/envs/torch1.6/lib/python3.6/distutils/command/build_ext.py", line 473, in _build_extensions_serial self.build_extension(ext) File "/home/lab2/anaconda3/envs/torch1.6/lib/python3.6/site-packages/setuptools/command/build_ext.py", line 196, in build_extension _build_ext.build_extension(self, ext) File "/home/lab2/anaconda3/envs/torch1.6/lib/python3.6/distutils/command/build_ext.py", line 533, in build_extension depends=ext.depends) File "/home/lab2/anaconda3/envs/torch1.6/lib/python3.6/site-packages/torch/utils/cpp_extension.py", line 478, in unix_wrap_ninja_compile with_cuda=with_cuda) File "/home/lab2/anaconda3/envs/torch1.6/lib/python3.6/site-packages/torch/utils/cpp_extension.py", line 1233, in _write_ninja_file_and_compile_objects error_prefix='Error compiling objects for extension') File "/home/lab2/anaconda3/envs/torch1.6/lib/python3.6/site-packages/torch/utils/cpp_extension.py", line 1529, in _run_ninja_build raise RuntimeError(message) RuntimeError: Error compiling objects for extension cp: 无法获取'build/lib' 的文件状态(stat): 没有那个文件或目录`

Xi-Gong commented 10 months ago

I think is your environment problem, I compile with no such errors. However I couldn't found a way to install spn_t1 properly, the make.sh under spn_t1 folder doesn't install it correctly.