How to solve this problem?? i don't have GCC problem in nms, but i have this problem.
No CUDA runtime is found, using CUDA_HOME='/usr/local/cuda'
_Originally posted by @zytx121 in https://github.com/open-mmlab/mmdetection/issues/125#issuecomment-456689595_
I looked at the problem in the issues column, but I didn't find the reason for the error.
cuda 9.0
cudnn 7.1.2
pytorch 0.4.1
gcc 5.2.0
python 3.7.2
I have joined the environment variable by :
export LD_LIBRARY_PATH=/cluster/apps/cuda/9.0/lib64
export PATH=$PATH:/cluster/apps/cuda/9.0/bin
export CUDA_HOME=/cluster/apps/cuda/9.0
The difference is that I am using a cluster server, only when I submit a task with the specified command can I be assigned to 2 GPUs.
I don't know why.
The following is the compilation process:
(pytorch) [it_stu103@head2 mmdetection]$ ./compile.sh
Building roi align op...
No CUDA runtime is found, using CUDA_HOME='/cluster/apps/cuda/9.0'
running build_ext
building 'roi_align_cuda' extension
creating build
creating build/temp.linux-x86_64-3.7
creating build/temp.linux-x86_64-3.7/src
gcc -pthread -B /cluster/home/it_stu103/.conda/envs/pytorch/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/cluster/home/it_stu103/.conda/envs/pytorch/lib/python3.7/site-packages/torch/lib/include -I/cluster/home/it_stu103/.conda/envs/pytorch/lib/python3.7/site-packages/torch/lib/include/TH -I/cluster/home/it_stu103/.conda/envs/pytorch/lib/python3.7/site-packages/torch/lib/include/THC -I/cluster/apps/cuda/9.0/include -I/cluster/home/it_stu103/.conda/envs/pytorch/include/python3.7m -c src/roi_align_cuda.cpp -o build/temp.linux-x86_64-3.7/src/roi_align_cuda.o -DTORCH_EXTENSION_NAME=roi_align_cuda -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++11
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
In file included from /cluster/home/it_stu103/.conda/envs/pytorch/lib/python3.7/site-packages/torch/lib/include/pybind11/cast.h:16:0,
from /cluster/home/it_stu103/.conda/envs/pytorch/lib/python3.7/site-packages/torch/lib/include/pybind11/attr.h:13,
from /cluster/home/it_stu103/.conda/envs/pytorch/lib/python3.7/site-packages/torch/lib/include/pybind11/pybind11.h:43,
from /cluster/home/it_stu103/.conda/envs/pytorch/lib/python3.7/site-packages/torch/lib/include/torch/torch.h:5,
from src/roi_align_cuda.cpp:1:
/cluster/home/it_stu103/.conda/envs/pytorch/lib/python3.7/site-packages/torch/lib/include/pybind11/detail/internals.h:82:14: warning: ‘int PyThread_create_key()’ is deprecated [-Wdeprecated-declarations]
decltype(PyThread_create_key()) tstate = 0; // Usually an int but a long on Cygwin64 with Python 3.x
^
In file included from /cluster/home/it_stu103/.conda/envs/pytorch/include/python3.7m/pystate.h:11:0,
from /cluster/home/it_stu103/.conda/envs/pytorch/include/python3.7m/traceback.h:8,
from /cluster/home/it_stu103/.conda/envs/pytorch/include/python3.7m/Python.h:109,
from /cluster/home/it_stu103/.conda/envs/pytorch/lib/python3.7/site-packages/torch/lib/include/torch/torch.h:3,
from src/roi_align_cuda.cpp:1:
/cluster/home/it_stu103/.conda/envs/pytorch/include/python3.7m/pythread.h:95:17: note: declared here
PyAPI_FUNC(int) PyThread_create_key(void) Py_DEPRECATED(3.7);
^
In file included from /cluster/home/it_stu103/.conda/envs/pytorch/lib/python3.7/site-packages/torch/lib/include/pybind11/cast.h:16:0,
from /cluster/home/it_stu103/.conda/envs/pytorch/lib/python3.7/site-packages/torch/lib/include/pybind11/attr.h:13,
from /cluster/home/it_stu103/.conda/envs/pytorch/lib/python3.7/site-packages/torch/lib/include/pybind11/pybind11.h:43,
from /cluster/home/it_stu103/.conda/envs/pytorch/lib/python3.7/site-packages/torch/lib/include/torch/torch.h:5,
from src/roi_align_cuda.cpp:1:
/cluster/home/it_stu103/.conda/envs/pytorch/lib/python3.7/site-packages/torch/lib/include/pybind11/detail/internals.h:82:14: warning: ‘int PyThread_create_key()’ is deprecated [-Wdeprecated-declarations]
decltype(PyThread_create_key()) tstate = 0; // Usually an int but a long on Cygwin64 with Python 3.x
^
In file included from /cluster/home/it_stu103/.conda/envs/pytorch/include/python3.7m/pystate.h:11:0,
from /cluster/home/it_stu103/.conda/envs/pytorch/include/python3.7m/traceback.h:8,
from /cluster/home/it_stu103/.conda/envs/pytorch/include/python3.7m/Python.h:109,
from /cluster/home/it_stu103/.conda/envs/pytorch/lib/python3.7/site-packages/torch/lib/include/torch/torch.h:3,
from src/roi_align_cuda.cpp:1:
/cluster/home/it_stu103/.conda/envs/pytorch/include/python3.7m/pythread.h:95:17: note: declared here
PyAPI_FUNC(int) PyThread_create_key(void) Py_DEPRECATED(3.7);
^
In file included from /cluster/home/it_stu103/.conda/envs/pytorch/lib/python3.7/site-packages/torch/lib/include/pybind11/cast.h:16:0,
from /cluster/home/it_stu103/.conda/envs/pytorch/lib/python3.7/site-packages/torch/lib/include/pybind11/attr.h:13,
from /cluster/home/it_stu103/.conda/envs/pytorch/lib/python3.7/site-packages/torch/lib/include/pybind11/pybind11.h:43,
from /cluster/home/it_stu103/.conda/envs/pytorch/lib/python3.7/site-packages/torch/lib/include/torch/torch.h:5,
from src/roi_align_cuda.cpp:1:
/cluster/home/it_stu103/.conda/envs/pytorch/lib/python3.7/site-packages/torch/lib/include/pybind11/detail/internals.h:82:34: warning: ‘int PyThread_create_key()’ is deprecated [-Wdeprecated-declarations]
decltype(PyThread_create_key()) tstate = 0; // Usually an int but a long on Cygwin64 with Python 3.x
^
In file included from /cluster/home/it_stu103/.conda/envs/pytorch/include/python3.7m/pystate.h:11:0,
from /cluster/home/it_stu103/.conda/envs/pytorch/include/python3.7m/traceback.h:8,
from /cluster/home/it_stu103/.conda/envs/pytorch/include/python3.7m/Python.h:109,
from /cluster/home/it_stu103/.conda/envs/pytorch/lib/python3.7/site-packages/torch/lib/include/torch/torch.h:3,
from src/roi_align_cuda.cpp:1:
/cluster/home/it_stu103/.conda/envs/pytorch/include/python3.7m/pythread.h:95:17: note: declared here
PyAPI_FUNC(int) PyThread_create_key(void) Py_DEPRECATED(3.7);
^
In file included from /cluster/home/it_stu103/.conda/envs/pytorch/lib/python3.7/site-packages/torch/lib/include/pybind11/cast.h:16:0,
from /cluster/home/it_stu103/.conda/envs/pytorch/lib/python3.7/site-packages/torch/lib/include/pybind11/attr.h:13,
from /cluster/home/it_stu103/.conda/envs/pytorch/lib/python3.7/site-packages/torch/lib/include/pybind11/pybind11.h:43,
from /cluster/home/it_stu103/.conda/envs/pytorch/lib/python3.7/site-packages/torch/lib/include/torch/torch.h:5,
from src/roi_align_cuda.cpp:1:
/cluster/home/it_stu103/.conda/envs/pytorch/lib/python3.7/site-packages/torch/lib/include/pybind11/detail/internals.h:82:14: warning: ‘int PyThread_create_key()’ is deprecated [-Wdeprecated-declarations]
decltype(PyThread_create_key()) tstate = 0; // Usually an int but a long on Cygwin64 with Python 3.x
^
In file included from /cluster/home/it_stu103/.conda/envs/pytorch/include/python3.7m/pystate.h:11:0,
from /cluster/home/it_stu103/.conda/envs/pytorch/include/python3.7m/traceback.h:8,
from /cluster/home/it_stu103/.conda/envs/pytorch/include/python3.7m/Python.h:109,
from /cluster/home/it_stu103/.conda/envs/pytorch/lib/python3.7/site-packages/torch/lib/include/torch/torch.h:3,
from src/roi_align_cuda.cpp:1:
/cluster/home/it_stu103/.conda/envs/pytorch/include/python3.7m/pythread.h:95:17: note: declared here
PyAPI_FUNC(int) PyThread_create_key(void) Py_DEPRECATED(3.7);
^
In file included from /cluster/home/it_stu103/.conda/envs/pytorch/lib/python3.7/site-packages/torch/lib/include/pybind11/cast.h:16:0,
from /cluster/home/it_stu103/.conda/envs/pytorch/lib/python3.7/site-packages/torch/lib/include/pybind11/attr.h:13,
from /cluster/home/it_stu103/.conda/envs/pytorch/lib/python3.7/site-packages/torch/lib/include/pybind11/pybind11.h:43,
from /cluster/home/it_stu103/.conda/envs/pytorch/lib/python3.7/site-packages/torch/lib/include/torch/torch.h:5,
from src/roi_align_cuda.cpp:1:
/cluster/home/it_stu103/.conda/envs/pytorch/lib/python3.7/site-packages/torch/lib/include/pybind11/detail/internals.h:82:14: warning: ‘int PyThread_create_key()’ is deprecated [-Wdeprecated-declarations]
decltype(PyThread_create_key()) tstate = 0; // Usually an int but a long on Cygwin64 with Python 3.x
^
In file included from /cluster/home/it_stu103/.conda/envs/pytorch/include/python3.7m/pystate.h:11:0,
from /cluster/home/it_stu103/.conda/envs/pytorch/include/python3.7m/traceback.h:8,
from /cluster/home/it_stu103/.conda/envs/pytorch/include/python3.7m/Python.h:109,
from /cluster/home/it_stu103/.conda/envs/pytorch/lib/python3.7/site-packages/torch/lib/include/torch/torch.h:3,
from src/roi_align_cuda.cpp:1:
/cluster/home/it_stu103/.conda/envs/pytorch/include/python3.7m/pythread.h:95:17: note: declared here
PyAPI_FUNC(int) PyThread_create_key(void) Py_DEPRECATED(3.7);
^
In file included from /cluster/home/it_stu103/.conda/envs/pytorch/lib/python3.7/site-packages/torch/lib/include/pybind11/cast.h:16:0,
from /cluster/home/it_stu103/.conda/envs/pytorch/lib/python3.7/site-packages/torch/lib/include/pybind11/attr.h:13,
from /cluster/home/it_stu103/.conda/envs/pytorch/lib/python3.7/site-packages/torch/lib/include/pybind11/pybind11.h:43,
from /cluster/home/it_stu103/.conda/envs/pytorch/lib/python3.7/site-packages/torch/lib/include/torch/torch.h:5,
from src/roi_align_cuda.cpp:1:
/cluster/home/it_stu103/.conda/envs/pytorch/lib/python3.7/site-packages/torch/lib/include/pybind11/detail/internals.h:82:34: warning: ‘int PyThread_create_key()’ is deprecated [-Wdeprecated-declarations]
decltype(PyThread_create_key()) tstate = 0; // Usually an int but a long on Cygwin64 with Python 3.x
^
In file included from /cluster/home/it_stu103/.conda/envs/pytorch/include/python3.7m/pystate.h:11:0,
from /cluster/home/it_stu103/.conda/envs/pytorch/include/python3.7m/traceback.h:8,
from /cluster/home/it_stu103/.conda/envs/pytorch/include/python3.7m/Python.h:109,
from /cluster/home/it_stu103/.conda/envs/pytorch/lib/python3.7/site-packages/torch/lib/include/torch/torch.h:3,
from src/roi_align_cuda.cpp:1:
/cluster/home/it_stu103/.conda/envs/pytorch/include/python3.7m/pythread.h:95:17: note: declared here
PyAPI_FUNC(int) PyThread_create_key(void) Py_DEPRECATED(3.7);
^
In file included from /cluster/home/it_stu103/.conda/envs/pytorch/lib/python3.7/site-packages/torch/lib/include/pybind11/cast.h:16:0,
from /cluster/home/it_stu103/.conda/envs/pytorch/lib/python3.7/site-packages/torch/lib/include/pybind11/attr.h:13,
from /cluster/home/it_stu103/.conda/envs/pytorch/lib/python3.7/site-packages/torch/lib/include/pybind11/pybind11.h:43,
from /cluster/home/it_stu103/.conda/envs/pytorch/lib/python3.7/site-packages/torch/lib/include/torch/torch.h:5,
from src/roi_align_cuda.cpp:1:
/cluster/home/it_stu103/.conda/envs/pytorch/lib/python3.7/site-packages/torch/lib/include/pybind11/detail/internals.h: In function ‘pybind11::detail::internals& pybind11::detail::get_internals()’:
/cluster/home/it_stu103/.conda/envs/pytorch/lib/python3.7/site-packages/torch/lib/include/pybind11/detail/internals.h:169:33: warning: ‘int PyThread_create_key()’ is deprecated [-Wdeprecated-declarations]
internals_ptr->tstate = PyThread_create_key();
^
In file included from /cluster/home/it_stu103/.conda/envs/pytorch/include/python3.7m/pystate.h:11:0,
from /cluster/home/it_stu103/.conda/envs/pytorch/include/python3.7m/traceback.h:8,
from /cluster/home/it_stu103/.conda/envs/pytorch/include/python3.7m/Python.h:109,
from /cluster/home/it_stu103/.conda/envs/pytorch/lib/python3.7/site-packages/torch/lib/include/torch/torch.h:3,
from src/roi_align_cuda.cpp:1:
/cluster/home/it_stu103/.conda/envs/pytorch/include/python3.7m/pythread.h:95:17: note: declared here
PyAPI_FUNC(int) PyThread_create_key(void) Py_DEPRECATED(3.7);
^
In file included from /cluster/home/it_stu103/.conda/envs/pytorch/lib/python3.7/site-packages/torch/lib/include/pybind11/cast.h:16:0,
from /cluster/home/it_stu103/.conda/envs/pytorch/lib/python3.7/site-packages/torch/lib/include/pybind11/attr.h:13,
from /cluster/home/it_stu103/.conda/envs/pytorch/lib/python3.7/site-packages/torch/lib/include/pybind11/pybind11.h:43,
from /cluster/home/it_stu103/.conda/envs/pytorch/lib/python3.7/site-packages/torch/lib/include/torch/torch.h:5,
from src/roi_align_cuda.cpp:1:
/cluster/home/it_stu103/.conda/envs/pytorch/lib/python3.7/site-packages/torch/lib/include/pybind11/detail/internals.h:169:33: warning: ‘int PyThread_create_key()’ is deprecated [-Wdeprecated-declarations]
internals_ptr->tstate = PyThread_create_key();
^
In file included from /cluster/home/it_stu103/.conda/envs/pytorch/include/python3.7m/pystate.h:11:0,
from /cluster/home/it_stu103/.conda/envs/pytorch/include/python3.7m/traceback.h:8,
from /cluster/home/it_stu103/.conda/envs/pytorch/include/python3.7m/Python.h:109,
from /cluster/home/it_stu103/.conda/envs/pytorch/lib/python3.7/site-packages/torch/lib/include/torch/torch.h:3,
from src/roi_align_cuda.cpp:1:
/cluster/home/it_stu103/.conda/envs/pytorch/include/python3.7m/pythread.h:95:17: note: declared here
PyAPI_FUNC(int) PyThread_create_key(void) Py_DEPRECATED(3.7);
^
In file included from /cluster/home/it_stu103/.conda/envs/pytorch/lib/python3.7/site-packages/torch/lib/include/pybind11/cast.h:16:0,
from /cluster/home/it_stu103/.conda/envs/pytorch/lib/python3.7/site-packages/torch/lib/include/pybind11/attr.h:13,
from /cluster/home/it_stu103/.conda/envs/pytorch/lib/python3.7/site-packages/torch/lib/include/pybind11/pybind11.h:43,
from /cluster/home/it_stu103/.conda/envs/pytorch/lib/python3.7/site-packages/torch/lib/include/torch/torch.h:5,
from src/roi_align_cuda.cpp:1:
/cluster/home/it_stu103/.conda/envs/pytorch/lib/python3.7/site-packages/torch/lib/include/pybind11/detail/internals.h:169:53: warning: ‘int PyThread_create_key()’ is deprecated [-Wdeprecated-declarations]
internals_ptr->tstate = PyThread_create_key();
^
In file included from /cluster/home/it_stu103/.conda/envs/pytorch/include/python3.7m/pystate.h:11:0,
from /cluster/home/it_stu103/.conda/envs/pytorch/include/python3.7m/traceback.h:8,
from /cluster/home/it_stu103/.conda/envs/pytorch/include/python3.7m/Python.h:109,
from /cluster/home/it_stu103/.conda/envs/pytorch/lib/python3.7/site-packages/torch/lib/include/torch/torch.h:3,
from src/roi_align_cuda.cpp:1:
/cluster/home/it_stu103/.conda/envs/pytorch/include/python3.7m/pythread.h:95:17: note: declared here
PyAPI_FUNC(int) PyThread_create_key(void) Py_DEPRECATED(3.7);
^
In file included from /cluster/home/it_stu103/.conda/envs/pytorch/lib/python3.7/site-packages/torch/lib/include/pybind11/cast.h:16:0,
from /cluster/home/it_stu103/.conda/envs/pytorch/lib/python3.7/site-packages/torch/lib/include/pybind11/attr.h:13,
from /cluster/home/it_stu103/.conda/envs/pytorch/lib/python3.7/site-packages/torch/lib/include/pybind11/pybind11.h:43,
from /cluster/home/it_stu103/.conda/envs/pytorch/lib/python3.7/site-packages/torch/lib/include/torch/torch.h:5,
from src/roi_align_cuda.cpp:1:
/cluster/home/it_stu103/.conda/envs/pytorch/lib/python3.7/site-packages/torch/lib/include/pybind11/detail/internals.h:170:9: warning: ‘int PyThread_set_key_value(int, void*)’ is deprecated [-Wdeprecated-declarations]
PyThread_set_key_value(internals_ptr->tstate, tstate);
^
In file included from /cluster/home/it_stu103/.conda/envs/pytorch/include/python3.7m/pystate.h:11:0,
from /cluster/home/it_stu103/.conda/envs/pytorch/include/python3.7m/traceback.h:8,
from /cluster/home/it_stu103/.conda/envs/pytorch/include/python3.7m/Python.h:109,
from /cluster/home/it_stu103/.conda/envs/pytorch/lib/python3.7/site-packages/torch/lib/include/torch/torch.h:3,
from src/roi_align_cuda.cpp:1:
/cluster/home/it_stu103/.conda/envs/pytorch/include/python3.7m/pythread.h:97:17: note: declared here
PyAPI_FUNC(int) PyThread_set_key_value(int key, void *value) Py_DEPRECATED(3.7);
^
In file included from /cluster/home/it_stu103/.conda/envs/pytorch/lib/python3.7/site-packages/torch/lib/include/pybind11/cast.h:16:0,
from /cluster/home/it_stu103/.conda/envs/pytorch/lib/python3.7/site-packages/torch/lib/include/pybind11/attr.h:13,
from /cluster/home/it_stu103/.conda/envs/pytorch/lib/python3.7/site-packages/torch/lib/include/pybind11/pybind11.h:43,
from /cluster/home/it_stu103/.conda/envs/pytorch/lib/python3.7/site-packages/torch/lib/include/torch/torch.h:5,
from src/roi_align_cuda.cpp:1:
/cluster/home/it_stu103/.conda/envs/pytorch/lib/python3.7/site-packages/torch/lib/include/pybind11/detail/internals.h:170:9: warning: ‘int PyThread_set_key_value(int, void*)’ is deprecated [-Wdeprecated-declarations]
PyThread_set_key_value(internals_ptr->tstate, tstate);
^
In file included from /cluster/home/it_stu103/.conda/envs/pytorch/include/python3.7m/pystate.h:11:0,
from /cluster/home/it_stu103/.conda/envs/pytorch/include/python3.7m/traceback.h:8,
from /cluster/home/it_stu103/.conda/envs/pytorch/include/python3.7m/Python.h:109,
from /cluster/home/it_stu103/.conda/envs/pytorch/lib/python3.7/site-packages/torch/lib/include/torch/torch.h:3,
from src/roi_align_cuda.cpp:1:
/cluster/home/it_stu103/.conda/envs/pytorch/include/python3.7m/pythread.h:97:17: note: declared here
PyAPI_FUNC(int) PyThread_set_key_value(int key, void *value) Py_DEPRECATED(3.7);
^
In file included from /cluster/home/it_stu103/.conda/envs/pytorch/lib/python3.7/site-packages/torch/lib/include/pybind11/cast.h:16:0,
from /cluster/home/it_stu103/.conda/envs/pytorch/lib/python3.7/site-packages/torch/lib/include/pybind11/attr.h:13,
from /cluster/home/it_stu103/.conda/envs/pytorch/lib/python3.7/site-packages/torch/lib/include/pybind11/pybind11.h:43,
from /cluster/home/it_stu103/.conda/envs/pytorch/lib/python3.7/site-packages/torch/lib/include/torch/torch.h:5,
from src/roi_align_cuda.cpp:1:
/cluster/home/it_stu103/.conda/envs/pytorch/lib/python3.7/site-packages/torch/lib/include/pybind11/detail/internals.h:170:61: warning: ‘int PyThread_set_key_value(int, void*)’ is deprecated [-Wdeprecated-declarations]
PyThread_set_key_value(internals_ptr->tstate, tstate);
^
In file included from /cluster/home/it_stu103/.conda/envs/pytorch/include/python3.7m/pystate.h:11:0,
from /cluster/home/it_stu103/.conda/envs/pytorch/include/python3.7m/traceback.h:8,
from /cluster/home/it_stu103/.conda/envs/pytorch/include/python3.7m/Python.h:109,
from /cluster/home/it_stu103/.conda/envs/pytorch/lib/python3.7/site-packages/torch/lib/include/torch/torch.h:3,
from src/roi_align_cuda.cpp:1:
/cluster/home/it_stu103/.conda/envs/pytorch/include/python3.7m/pythread.h:97:17: note: declared here
PyAPI_FUNC(int) PyThread_set_key_value(int key, void *value) Py_DEPRECATED(3.7);
^
In file included from /cluster/home/it_stu103/.conda/envs/pytorch/lib/python3.7/site-packages/torch/lib/include/torch/torch.h:5:0,
from src/roi_align_cuda.cpp:1:
/cluster/home/it_stu103/.conda/envs/pytorch/lib/python3.7/site-packages/torch/lib/include/pybind11/pybind11.h: In constructor ‘pybind11::gil_scoped_acquire::gil_scoped_acquire()’:
/cluster/home/it_stu103/.conda/envs/pytorch/lib/python3.7/site-packages/torch/lib/include/pybind11/pybind11.h:1758:36: warning: ‘void* PyThread_get_key_value(int)’ is deprecated [-Wdeprecated-declarations]
tstate = (PyThreadState *) PyThread_get_key_value(internals.tstate);
^
In file included from /cluster/home/it_stu103/.conda/envs/pytorch/include/python3.7m/pystate.h:11:0,
from /cluster/home/it_stu103/.conda/envs/pytorch/include/python3.7m/traceback.h:8,
from /cluster/home/it_stu103/.conda/envs/pytorch/include/python3.7m/Python.h:109,
from /cluster/home/it_stu103/.conda/envs/pytorch/lib/python3.7/site-packages/torch/lib/include/torch/torch.h:3,
from src/roi_align_cuda.cpp:1:
/cluster/home/it_stu103/.conda/envs/pytorch/include/python3.7m/pythread.h:98:20: note: declared here
PyAPI_FUNC(void *) PyThread_get_key_value(int key) Py_DEPRECATED(3.7);
^
In file included from /cluster/home/it_stu103/.conda/envs/pytorch/lib/python3.7/site-packages/torch/lib/include/torch/torch.h:5:0,
from src/roi_align_cuda.cpp:1:
/cluster/home/it_stu103/.conda/envs/pytorch/lib/python3.7/site-packages/torch/lib/include/pybind11/pybind11.h:1758:36: warning: ‘void* PyThread_get_key_value(int)’ is deprecated [-Wdeprecated-declarations]
tstate = (PyThreadState *) PyThread_get_key_value(internals.tstate);
^
In file included from /cluster/home/it_stu103/.conda/envs/pytorch/include/python3.7m/pystate.h:11:0,
from /cluster/home/it_stu103/.conda/envs/pytorch/include/python3.7m/traceback.h:8,
from /cluster/home/it_stu103/.conda/envs/pytorch/include/python3.7m/Python.h:109,
from /cluster/home/it_stu103/.conda/envs/pytorch/lib/python3.7/site-packages/torch/lib/include/torch/torch.h:3,
from src/roi_align_cuda.cpp:1:
/cluster/home/it_stu103/.conda/envs/pytorch/include/python3.7m/pythread.h:98:20: note: declared here
PyAPI_FUNC(void *) PyThread_get_key_value(int key) Py_DEPRECATED(3.7);
^
In file included from /cluster/home/it_stu103/.conda/envs/pytorch/lib/python3.7/site-packages/torch/lib/include/torch/torch.h:5:0,
from src/roi_align_cuda.cpp:1:
/cluster/home/it_stu103/.conda/envs/pytorch/lib/python3.7/site-packages/torch/lib/include/pybind11/pybind11.h:1758:75: warning: ‘void* PyThread_get_key_value(int)’ is deprecated [-Wdeprecated-declarations]
tstate = (PyThreadState *) PyThread_get_key_value(internals.tstate);
^
In file included from /cluster/home/it_stu103/.conda/envs/pytorch/include/python3.7m/pystate.h:11:0,
from /cluster/home/it_stu103/.conda/envs/pytorch/include/python3.7m/traceback.h:8,
from /cluster/home/it_stu103/.conda/envs/pytorch/include/python3.7m/Python.h:109,
from /cluster/home/it_stu103/.conda/envs/pytorch/lib/python3.7/site-packages/torch/lib/include/torch/torch.h:3,
from src/roi_align_cuda.cpp:1:
/cluster/home/it_stu103/.conda/envs/pytorch/include/python3.7m/pythread.h:98:20: note: declared here
PyAPI_FUNC(void *) PyThread_get_key_value(int key) Py_DEPRECATED(3.7);
^
In file included from /cluster/home/it_stu103/.conda/envs/pytorch/lib/python3.7/site-packages/torch/lib/include/torch/torch.h:5:0,
from src/roi_align_cuda.cpp:1:
/cluster/home/it_stu103/.conda/envs/pytorch/lib/python3.7/site-packages/torch/lib/include/pybind11/pybind11.h:1770:13: warning: ‘int PyThread_set_key_value(int, void*)’ is deprecated [-Wdeprecated-declarations]
PyThread_set_key_value(internals.tstate, tstate);
^
In file included from /cluster/home/it_stu103/.conda/envs/pytorch/include/python3.7m/pystate.h:11:0,
from /cluster/home/it_stu103/.conda/envs/pytorch/include/python3.7m/traceback.h:8,
from /cluster/home/it_stu103/.conda/envs/pytorch/include/python3.7m/Python.h:109,
from /cluster/home/it_stu103/.conda/envs/pytorch/lib/python3.7/site-packages/torch/lib/include/torch/torch.h:3,
from src/roi_align_cuda.cpp:1:
/cluster/home/it_stu103/.conda/envs/pytorch/include/python3.7m/pythread.h:97:17: note: declared here
PyAPI_FUNC(int) PyThread_set_key_value(int key, void *value) Py_DEPRECATED(3.7);
^
In file included from /cluster/home/it_stu103/.conda/envs/pytorch/lib/python3.7/site-packages/torch/lib/include/torch/torch.h:5:0,
from src/roi_align_cuda.cpp:1:
/cluster/home/it_stu103/.conda/envs/pytorch/lib/python3.7/site-packages/torch/lib/include/pybind11/pybind11.h:1770:13: warning: ‘int PyThread_set_key_value(int, void*)’ is deprecated [-Wdeprecated-declarations]
PyThread_set_key_value(internals.tstate, tstate);
^
In file included from /cluster/home/it_stu103/.conda/envs/pytorch/include/python3.7m/pystate.h:11:0,
from /cluster/home/it_stu103/.conda/envs/pytorch/include/python3.7m/traceback.h:8,
from /cluster/home/it_stu103/.conda/envs/pytorch/include/python3.7m/Python.h:109,
from /cluster/home/it_stu103/.conda/envs/pytorch/lib/python3.7/site-packages/torch/lib/include/torch/torch.h:3,
from src/roi_align_cuda.cpp:1:
/cluster/home/it_stu103/.conda/envs/pytorch/include/python3.7m/pythread.h:97:17: note: declared here
PyAPI_FUNC(int) PyThread_set_key_value(int key, void *value) Py_DEPRECATED(3.7);
^
In file included from /cluster/home/it_stu103/.conda/envs/pytorch/lib/python3.7/site-packages/torch/lib/include/torch/torch.h:5:0,
from src/roi_align_cuda.cpp:1:
/cluster/home/it_stu103/.conda/envs/pytorch/lib/python3.7/site-packages/torch/lib/include/pybind11/pybind11.h:1770:60: warning: ‘int PyThread_set_key_value(int, void*)’ is deprecated [-Wdeprecated-declarations]
PyThread_set_key_value(internals.tstate, tstate);
^
In file included from /cluster/home/it_stu103/.conda/envs/pytorch/include/python3.7m/pystate.h:11:0,
from /cluster/home/it_stu103/.conda/envs/pytorch/include/python3.7m/traceback.h:8,
from /cluster/home/it_stu103/.conda/envs/pytorch/include/python3.7m/Python.h:109,
from /cluster/home/it_stu103/.conda/envs/pytorch/lib/python3.7/site-packages/torch/lib/include/torch/torch.h:3,
from src/roi_align_cuda.cpp:1:
/cluster/home/it_stu103/.conda/envs/pytorch/include/python3.7m/pythread.h:97:17: note: declared here
PyAPI_FUNC(int) PyThread_set_key_value(int key, void *value) Py_DEPRECATED(3.7);
^
In file included from /cluster/home/it_stu103/.conda/envs/pytorch/lib/python3.7/site-packages/torch/lib/include/torch/torch.h:5:0,
from src/roi_align_cuda.cpp:1:
/cluster/home/it_stu103/.conda/envs/pytorch/lib/python3.7/site-packages/torch/lib/include/pybind11/pybind11.h: In member function ‘void pybind11::gil_scoped_acquire::dec_ref()’:
/cluster/home/it_stu103/.conda/envs/pytorch/lib/python3.7/site-packages/torch/lib/include/pybind11/pybind11.h:1809:13: warning: ‘void PyThread_delete_key_value(int)’ is deprecated [-Wdeprecated-declarations]
PyThread_delete_key_value(detail::get_internals().tstate);
^
In file included from /cluster/home/it_stu103/.conda/envs/pytorch/include/python3.7m/pystate.h:11:0,
from /cluster/home/it_stu103/.conda/envs/pytorch/include/python3.7m/traceback.h:8,
from /cluster/home/it_stu103/.conda/envs/pytorch/include/python3.7m/Python.h:109,
from /cluster/home/it_stu103/.conda/envs/pytorch/lib/python3.7/site-packages/torch/lib/include/torch/torch.h:3,
from src/roi_align_cuda.cpp:1:
/cluster/home/it_stu103/.conda/envs/pytorch/include/python3.7m/pythread.h:99:18: note: declared here
PyAPI_FUNC(void) PyThread_delete_key_value(int key) Py_DEPRECATED(3.7);
^
In file included from /cluster/home/it_stu103/.conda/envs/pytorch/lib/python3.7/site-packages/torch/lib/include/torch/torch.h:5:0,
from src/roi_align_cuda.cpp:1:
/cluster/home/it_stu103/.conda/envs/pytorch/lib/python3.7/site-packages/torch/lib/include/pybind11/pybind11.h:1809:13: warning: ‘void PyThread_delete_key_value(int)’ is deprecated [-Wdeprecated-declarations]
PyThread_delete_key_value(detail::get_internals().tstate);
^
In file included from /cluster/home/it_stu103/.conda/envs/pytorch/include/python3.7m/pystate.h:11:0,
from /cluster/home/it_stu103/.conda/envs/pytorch/include/python3.7m/traceback.h:8,
from /cluster/home/it_stu103/.conda/envs/pytorch/include/python3.7m/Python.h:109,
from /cluster/home/it_stu103/.conda/envs/pytorch/lib/python3.7/site-packages/torch/lib/include/torch/torch.h:3,
from src/roi_align_cuda.cpp:1:
/cluster/home/it_stu103/.conda/envs/pytorch/include/python3.7m/pythread.h:99:18: note: declared here
PyAPI_FUNC(void) PyThread_delete_key_value(int key) Py_DEPRECATED(3.7);
^
In file included from /cluster/home/it_stu103/.conda/envs/pytorch/lib/python3.7/site-packages/torch/lib/include/torch/torch.h:5:0,
from src/roi_align_cuda.cpp:1:
/cluster/home/it_stu103/.conda/envs/pytorch/lib/python3.7/site-packages/torch/lib/include/pybind11/pybind11.h:1809:69: warning: ‘void PyThread_delete_key_value(int)’ is deprecated [-Wdeprecated-declarations]
PyThread_delete_key_value(detail::get_internals().tstate);
^
In file included from /cluster/home/it_stu103/.conda/envs/pytorch/include/python3.7m/pystate.h:11:0,
from /cluster/home/it_stu103/.conda/envs/pytorch/include/python3.7m/traceback.h:8,
from /cluster/home/it_stu103/.conda/envs/pytorch/include/python3.7m/Python.h:109,
from /cluster/home/it_stu103/.conda/envs/pytorch/lib/python3.7/site-packages/torch/lib/include/torch/torch.h:3,
from src/roi_align_cuda.cpp:1:
/cluster/home/it_stu103/.conda/envs/pytorch/include/python3.7m/pythread.h:99:18: note: declared here
PyAPI_FUNC(void) PyThread_delete_key_value(int key) Py_DEPRECATED(3.7);
^
In file included from /cluster/home/it_stu103/.conda/envs/pytorch/lib/python3.7/site-packages/torch/lib/include/torch/torch.h:5:0,
from src/roi_align_cuda.cpp:1:
/cluster/home/it_stu103/.conda/envs/pytorch/lib/python3.7/site-packages/torch/lib/include/pybind11/pybind11.h: In constructor ‘pybind11::gil_scoped_release::gil_scoped_release(bool)’:
/cluster/home/it_stu103/.conda/envs/pytorch/lib/python3.7/site-packages/torch/lib/include/pybind11/pybind11.h:1837:17: warning: ‘int PyThread_set_key_value(int, void*)’ is deprecated [-Wdeprecated-declarations]
PyThread_set_key_value(key, nullptr);
^
In file included from /cluster/home/it_stu103/.conda/envs/pytorch/include/python3.7m/pystate.h:11:0,
from /cluster/home/it_stu103/.conda/envs/pytorch/include/python3.7m/traceback.h:8,
from /cluster/home/it_stu103/.conda/envs/pytorch/include/python3.7m/Python.h:109,
from /cluster/home/it_stu103/.conda/envs/pytorch/lib/python3.7/site-packages/torch/lib/include/torch/torch.h:3,
from src/roi_align_cuda.cpp:1:
/cluster/home/it_stu103/.conda/envs/pytorch/include/python3.7m/pythread.h:97:17: note: declared here
PyAPI_FUNC(int) PyThread_set_key_value(int key, void *value) Py_DEPRECATED(3.7);
^
In file included from /cluster/home/it_stu103/.conda/envs/pytorch/lib/python3.7/site-packages/torch/lib/include/torch/torch.h:5:0,
from src/roi_align_cuda.cpp:1:
/cluster/home/it_stu103/.conda/envs/pytorch/lib/python3.7/site-packages/torch/lib/include/pybind11/pybind11.h:1837:17: warning: ‘int PyThread_set_key_value(int, void*)’ is deprecated [-Wdeprecated-declarations]
PyThread_set_key_value(key, nullptr);
^
In file included from /cluster/home/it_stu103/.conda/envs/pytorch/include/python3.7m/pystate.h:11:0,
from /cluster/home/it_stu103/.conda/envs/pytorch/include/python3.7m/traceback.h:8,
from /cluster/home/it_stu103/.conda/envs/pytorch/include/python3.7m/Python.h:109,
from /cluster/home/it_stu103/.conda/envs/pytorch/lib/python3.7/site-packages/torch/lib/include/torch/torch.h:3,
from src/roi_align_cuda.cpp:1:
/cluster/home/it_stu103/.conda/envs/pytorch/include/python3.7m/pythread.h:97:17: note: declared here
PyAPI_FUNC(int) PyThread_set_key_value(int key, void *value) Py_DEPRECATED(3.7);
^
In file included from /cluster/home/it_stu103/.conda/envs/pytorch/lib/python3.7/site-packages/torch/lib/include/torch/torch.h:5:0,
from src/roi_align_cuda.cpp:1:
/cluster/home/it_stu103/.conda/envs/pytorch/lib/python3.7/site-packages/torch/lib/include/pybind11/pybind11.h:1837:52: warning: ‘int PyThread_set_key_value(int, void*)’ is deprecated [-Wdeprecated-declarations]
PyThread_set_key_value(key, nullptr);
^
In file included from /cluster/home/it_stu103/.conda/envs/pytorch/include/python3.7m/pystate.h:11:0,
from /cluster/home/it_stu103/.conda/envs/pytorch/include/python3.7m/traceback.h:8,
from /cluster/home/it_stu103/.conda/envs/pytorch/include/python3.7m/Python.h:109,
from /cluster/home/it_stu103/.conda/envs/pytorch/lib/python3.7/site-packages/torch/lib/include/torch/torch.h:3,
from src/roi_align_cuda.cpp:1:
/cluster/home/it_stu103/.conda/envs/pytorch/include/python3.7m/pythread.h:97:17: note: declared here
PyAPI_FUNC(int) PyThread_set_key_value(int key, void *value) Py_DEPRECATED(3.7);
^
In file included from /cluster/home/it_stu103/.conda/envs/pytorch/lib/python3.7/site-packages/torch/lib/include/torch/torch.h:5:0,
from src/roi_align_cuda.cpp:1:
/cluster/home/it_stu103/.conda/envs/pytorch/lib/python3.7/site-packages/torch/lib/include/pybind11/pybind11.h: In destructor ‘pybind11::gil_scoped_release::~gil_scoped_release()’:
/cluster/home/it_stu103/.conda/envs/pytorch/lib/python3.7/site-packages/torch/lib/include/pybind11/pybind11.h:1850:13: warning: ‘int PyThread_set_key_value(int, void*)’ is deprecated [-Wdeprecated-declarations]
PyThread_set_key_value(key, tstate);
^
In file included from /cluster/home/it_stu103/.conda/envs/pytorch/include/python3.7m/pystate.h:11:0,
from /cluster/home/it_stu103/.conda/envs/pytorch/include/python3.7m/traceback.h:8,
from /cluster/home/it_stu103/.conda/envs/pytorch/include/python3.7m/Python.h:109,
from /cluster/home/it_stu103/.conda/envs/pytorch/lib/python3.7/site-packages/torch/lib/include/torch/torch.h:3,
from src/roi_align_cuda.cpp:1:
/cluster/home/it_stu103/.conda/envs/pytorch/include/python3.7m/pythread.h:97:17: note: declared here
PyAPI_FUNC(int) PyThread_set_key_value(int key, void *value) Py_DEPRECATED(3.7);
^
In file included from /cluster/home/it_stu103/.conda/envs/pytorch/lib/python3.7/site-packages/torch/lib/include/torch/torch.h:5:0,
from src/roi_align_cuda.cpp:1:
/cluster/home/it_stu103/.conda/envs/pytorch/lib/python3.7/site-packages/torch/lib/include/pybind11/pybind11.h:1850:13: warning: ‘int PyThread_set_key_value(int, void*)’ is deprecated [-Wdeprecated-declarations]
PyThread_set_key_value(key, tstate);
^
In file included from /cluster/home/it_stu103/.conda/envs/pytorch/include/python3.7m/pystate.h:11:0,
from /cluster/home/it_stu103/.conda/envs/pytorch/include/python3.7m/traceback.h:8,
from /cluster/home/it_stu103/.conda/envs/pytorch/include/python3.7m/Python.h:109,
from /cluster/home/it_stu103/.conda/envs/pytorch/lib/python3.7/site-packages/torch/lib/include/torch/torch.h:3,
from src/roi_align_cuda.cpp:1:
/cluster/home/it_stu103/.conda/envs/pytorch/include/python3.7m/pythread.h:97:17: note: declared here
PyAPI_FUNC(int) PyThread_set_key_value(int key, void *value) Py_DEPRECATED(3.7);
^
In file included from /cluster/home/it_stu103/.conda/envs/pytorch/lib/python3.7/site-packages/torch/lib/include/torch/torch.h:5:0,
from src/roi_align_cuda.cpp:1:
/cluster/home/it_stu103/.conda/envs/pytorch/lib/python3.7/site-packages/torch/lib/include/pybind11/pybind11.h:1850:47: warning: ‘int PyThread_set_key_value(int, void*)’ is deprecated [-Wdeprecated-declarations]
PyThread_set_key_value(key, tstate);
^
In file included from /cluster/home/it_stu103/.conda/envs/pytorch/include/python3.7m/pystate.h:11:0,
from /cluster/home/it_stu103/.conda/envs/pytorch/include/python3.7m/traceback.h:8,
from /cluster/home/it_stu103/.conda/envs/pytorch/include/python3.7m/Python.h:109,
from /cluster/home/it_stu103/.conda/envs/pytorch/lib/python3.7/site-packages/torch/lib/include/torch/torch.h:3,
from src/roi_align_cuda.cpp:1:
/cluster/home/it_stu103/.conda/envs/pytorch/include/python3.7m/pythread.h:97:17: note: declared here
PyAPI_FUNC(int) PyThread_set_key_value(int key, void *value) Py_DEPRECATED(3.7);
^
/cluster/apps/cuda/9.0/bin/nvcc -I/cluster/home/it_stu103/.conda/envs/pytorch/lib/python3.7/site-packages/torch/lib/include -I/cluster/home/it_stu103/.conda/envs/pytorch/lib/python3.7/site-packages/torch/lib/include/TH -I/cluster/home/it_stu103/.conda/envs/pytorch/lib/python3.7/site-packages/torch/lib/include/THC -I/cluster/apps/cuda/9.0/include -I/cluster/home/it_stu103/.conda/envs/pytorch/include/python3.7m -c src/roi_align_kernel.cu -o build/temp.linux-x86_64-3.7/src/roi_align_kernel.o -DTORCH_EXTENSION_NAME=roi_align_cuda -D_GLIBCXX_USE_CXX11_ABI=0 --compiler-options '-fPIC' -std=c++11
creating build/lib.linux-x86_64-3.7
g++ -pthread -shared -B /cluster/home/it_stu103/.conda/envs/pytorch/compiler_compat -L/cluster/home/it_stu103/.conda/envs/pytorch/lib -Wl,-rpath=/cluster/home/it_stu103/.conda/envs/pytorch/lib -Wl,--no-as-needed -Wl,--sysroot=/ build/temp.linux-x86_64-3.7/src/roi_align_cuda.o build/temp.linux-x86_64-3.7/src/roi_align_kernel.o -L/cluster/apps/cuda/9.0/lib64 -lcudart -o build/lib.linux-x86_64-3.7/roi_align_cuda.cpython-37m-x86_64-linux-gnu.so
copying build/lib.linux-x86_64-3.7/roi_align_cuda.cpython-37m-x86_64-linux-gnu.so ->
Building roi pool op...
No CUDA runtime is found, using CUDA_HOME='/cluster/apps/cuda/9.0'
running build_ext
building 'roi_pool_cuda' extension
creating build
creating build/temp.linux-x86_64-3.7
creating build/temp.linux-x86_64-3.7/src
gcc -pthread -B /cluster/home/it_stu103/.conda/envs/pytorch/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/cluster/home/it_stu103/.conda/envs/pytorch/lib/python3.7/site-packages/torch/lib/include -I/cluster/home/it_stu103/.conda/envs/pytorch/lib/python3.7/site-packages/torch/lib/include/TH -I/cluster/home/it_stu103/.conda/envs/pytorch/lib/python3.7/site-packages/torch/lib/include/THC -I/cluster/apps/cuda/9.0/include -I/cluster/home/it_stu103/.conda/envs/pytorch/include/python3.7m -c src/roi_pool_cuda.cpp -o build/temp.linux-x86_64-3.7/src/roi_pool_cuda.o -DTORCH_EXTENSION_NAME=roi_pool_cuda -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++11
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
In file included from /cluster/home/it_stu103/.conda/envs/pytorch/lib/python3.7/site-packages/torch/lib/include/pybind11/cast.h:16:0,
from /cluster/home/it_stu103/.conda/envs/pytorch/lib/python3.7/site-packages/torch/lib/include/pybind11/attr.h:13,
from /cluster/home/it_stu103/.conda/envs/pytorch/lib/python3.7/site-packages/torch/lib/include/pybind11/pybind11.h:43,
from /cluster/home/it_stu103/.conda/envs/pytorch/lib/python3.7/site-packages/torch/lib/include/torch/torch.h:5,
from src/roi_pool_cuda.cpp:1:
/cluster/home/it_stu103/.conda/envs/pytorch/lib/python3.7/site-packages/torch/lib/include/pybind11/detail/internals.h:82:14: warning: ‘int PyThread_create_key()’ is deprecated [-Wdeprecated-declarations]
decltype(PyThread_create_key()) tstate = 0; // Usually an int but a long on Cygwin64 with Python 3.x
^
In file included from /cluster/home/it_stu103/.conda/envs/pytorch/include/python3.7m/pystate.h:11:0,
from /cluster/home/it_stu103/.conda/envs/pytorch/include/python3.7m/traceback.h:8,
from /cluster/home/it_stu103/.conda/envs/pytorch/include/python3.7m/Python.h:109,
from /cluster/home/it_stu103/.conda/envs/pytorch/lib/python3.7/site-packages/torch/lib/include/torch/torch.h:3,
from src/roi_pool_cuda.cpp:1:
/cluster/home/it_stu103/.conda/envs/pytorch/include/python3.7m/pythread.h:95:17: note: declared here
PyAPI_FUNC(int) PyThread_create_key(void) Py_DEPRECATED(3.7);
^
In file included from /cluster/home/it_stu103/.conda/envs/pytorch/lib/python3.7/site-packages/torch/lib/include/pybind11/cast.h:16:0,
from /cluster/home/it_stu103/.conda/envs/pytorch/lib/python3.7/site-packages/torch/lib/include/pybind11/attr.h:13,
from /cluster/home/it_stu103/.conda/envs/pytorch/lib/python3.7/site-packages/torch/lib/include/pybind11/pybind11.h:43,
from /cluster/home/it_stu103/.conda/envs/pytorch/lib/python3.7/site-packages/torch/lib/include/torch/torch.h:5,
from src/roi_pool_cuda.cpp:1:
/cluster/home/it_stu103/.conda/envs/pytorch/lib/python3.7/site-packages/torch/lib/include/pybind11/detail/internals.h:82:14: warning: ‘int PyThread_create_key()’ is deprecated [-Wdeprecated-declarations]
decltype(PyThread_create_key()) tstate = 0; // Usually an int but a long on Cygwin64 with Python 3.x
^
In file included from /cluster/home/it_stu103/.conda/envs/pytorch/include/python3.7m/pystate.h:11:0,
from /cluster/home/it_stu103/.conda/envs/pytorch/include/python3.7m/traceback.h:8,
from /cluster/home/it_stu103/.conda/envs/pytorch/include/python3.7m/Python.h:109,
from /cluster/home/it_stu103/.conda/envs/pytorch/lib/python3.7/site-packages/torch/lib/include/torch/torch.h:3,
from src/roi_pool_cuda.cpp:1:
/cluster/home/it_stu103/.conda/envs/pytorch/include/python3.7m/pythread.h:95:17: note: declared here
PyAPI_FUNC(int) PyThread_create_key(void) Py_DEPRECATED(3.7);
^
In file included from /cluster/home/it_stu103/.conda/envs/pytorch/lib/python3.7/site-packages/torch/lib/include/pybind11/cast.h:16:0,
from /cluster/home/it_stu103/.conda/envs/pytorch/lib/python3.7/site-packages/torch/lib/include/pybind11/attr.h:13,
from /cluster/home/it_stu103/.conda/envs/pytorch/lib/python3.7/site-packages/torch/lib/include/pybind11/pybind11.h:43,
from /cluster/home/it_stu103/.conda/envs/pytorch/lib/python3.7/site-packages/torch/lib/include/torch/torch.h:5,
from src/roi_pool_cuda.cpp:1:
/cluster/home/it_stu103/.conda/envs/pytorch/lib/python3.7/site-packages/torch/lib/include/pybind11/detail/internals.h:82:34: warning: ‘int PyThread_create_key()’ is deprecated [-Wdeprecated-declarations]
decltype(PyThread_create_key()) tstate = 0; // Usually an int but a long on Cygwin64 with Python 3.x
^
In file included from /cluster/home/it_stu103/.conda/envs/pytorch/include/python3.7m/pystate.h:11:0,
from /cluster/home/it_stu103/.conda/envs/pytorch/include/python3.7m/traceback.h:8,
from /cluster/home/it_stu103/.conda/envs/pytorch/include/python3.7m/Python.h:109,
from /cluster/home/it_stu103/.conda/envs/pytorch/lib/python3.7/site-packages/torch/lib/include/torch/torch.h:3,
from src/roi_pool_cuda.cpp:1:
/cluster/home/it_stu103/.conda/envs/pytorch/include/python3.7m/pythread.h:95:17: note: declared here
PyAPI_FUNC(int) PyThread_create_key(void) Py_DEPRECATED(3.7);
^
In file included from /cluster/home/it_stu103/.conda/envs/pytorch/lib/python3.7/site-packages/torch/lib/include/pybind11/cast.h:16:0,
from /cluster/home/it_stu103/.conda/envs/pytorch/lib/python3.7/site-packages/torch/lib/include/pybind11/attr.h:13,
from /cluster/home/it_stu103/.conda/envs/pytorch/lib/python3.7/site-packages/torch/lib/include/pybind11/pybind11.h:43,
from /cluster/home/it_stu103/.conda/envs/pytorch/lib/python3.7/site-packages/torch/lib/include/torch/torch.h:5,
from src/roi_pool_cuda.cpp:1:
/cluster/home/it_stu103/.conda/envs/pytorch/lib/python3.7/site-packages/torch/lib/include/pybind11/detail/internals.h:82:14: warning: ‘int PyThread_create_key()’ is deprecated [-Wdeprecated-declarations]
decltype(PyThread_create_key()) tstate = 0; // Usually an int but a long on Cygwin64 with Python 3.x
^
In file included from /cluster/home/it_stu103/.conda/envs/pytorch/include/python3.7m/pystate.h:11:0,
from /cluster/home/it_stu103/.conda/envs/pytorch/include/python3.7m/traceback.h:8,
from /cluster/home/it_stu103/.conda/envs/pytorch/include/python3.7m/Python.h:109,
from /cluster/home/it_stu103/.conda/envs/pytorch/lib/python3.7/site-packages/torch/lib/include/torch/torch.h:3,
from src/roi_pool_cuda.cpp:1:
/cluster/home/it_stu103/.conda/envs/pytorch/include/python3.7m/pythread.h:95:17: note: declared here
PyAPI_FUNC(int) PyThread_create_key(void) Py_DEPRECATED(3.7);
^
In file included from /cluster/home/it_stu103/.conda/envs/pytorch/lib/python3.7/site-packages/torch/lib/include/pybind11/cast.h:16:0,
from /cluster/home/it_stu103/.conda/envs/pytorch/lib/python3.7/site-packages/torch/lib/include/pybind11/attr.h:13,
from /cluster/home/it_stu103/.conda/envs/pytorch/lib/python3.7/site-packages/torch/lib/include/pybind11/pybind11.h:43,
from /cluster/home/it_stu103/.conda/envs/pytorch/lib/python3.7/site-packages/torch/lib/include/torch/torch.h:5,
from src/roi_pool_cuda.cpp:1:
/cluster/home/it_stu103/.conda/envs/pytorch/lib/python3.7/site-packages/torch/lib/include/pybind11/detail/internals.h:82:14: warning: ‘int PyThread_create_key()’ is deprecated [-Wdeprecated-declarations]
decltype(PyThread_create_key()) tstate = 0; // Usually an int but a long on Cygwin64 with Python 3.x
^
In file included from /cluster/home/it_stu103/.conda/envs/pytorch/include/python3.7m/pystate.h:11:0,
from /cluster/home/it_stu103/.conda/envs/pytorch/include/python3.7m/traceback.h:8,
from /cluster/home/it_stu103/.conda/envs/pytorch/include/python3.7m/Python.h:109,
from /cluster/home/it_stu103/.conda/envs/pytorch/lib/python3.7/site-packages/torch/lib/include/torch/torch.h:3,
from src/roi_pool_cuda.cpp:1:
/cluster/home/it_stu103/.conda/envs/pytorch/include/python3.7m/pythread.h:95:17: note: declared here
PyAPI_FUNC(int) PyThread_create_key(void) Py_DEPRECATED(3.7);
^
In file included from /cluster/home/it_stu103/.conda/envs/pytorch/lib/python3.7/site-packages/torch/lib/include/pybind11/cast.h:16:0,
from /cluster/home/it_stu103/.conda/envs/pytorch/lib/python3.7/site-packages/torch/lib/include/pybind11/attr.h:13,
from /cluster/home/it_stu103/.conda/envs/pytorch/lib/python3.7/site-packages/torch/lib/include/pybind11/pybind11.h:43,
from /cluster/home/it_stu103/.conda/envs/pytorch/lib/python3.7/site-packages/torch/lib/include/torch/torch.h:5,
from src/roi_pool_cuda.cpp:1:
/cluster/home/it_stu103/.conda/envs/pytorch/lib/python3.7/site-packages/torch/lib/include/pybind11/detail/internals.h:82:34: warning: ‘int PyThread_create_key()’ is deprecated [-Wdeprecated-declarations]
decltype(PyThread_create_key()) tstate = 0; // Usually an int but a long on Cygwin64 with Python 3.x
^
In file included from /cluster/home/it_stu103/.conda/envs/pytorch/include/python3.7m/pystate.h:11:0,
from /cluster/home/it_stu103/.conda/envs/pytorch/include/python3.7m/traceback.h:8,
from /cluster/home/it_stu103/.conda/envs/pytorch/include/python3.7m/Python.h:109,
from /cluster/home/it_stu103/.conda/envs/pytorch/lib/python3.7/site-packages/torch/lib/include/torch/torch.h:3,
from src/roi_pool_cuda.cpp:1:
/cluster/home/it_stu103/.conda/envs/pytorch/include/python3.7m/pythread.h:95:17: note: declared here
PyAPI_FUNC(int) PyThread_create_key(void) Py_DEPRECATED(3.7);
^
In file included from /cluster/home/it_stu103/.conda/envs/pytorch/lib/python3.7/site-packages/torch/lib/include/pybind11/cast.h:16:0,
from /cluster/home/it_stu103/.conda/envs/pytorch/lib/python3.7/site-packages/torch/lib/include/pybind11/attr.h:13,
from /cluster/home/it_stu103/.conda/envs/pytorch/lib/python3.7/site-packages/torch/lib/include/pybind11/pybind11.h:43,
from /cluster/home/it_stu103/.conda/envs/pytorch/lib/python3.7/site-packages/torch/lib/include/torch/torch.h:5,
from src/roi_pool_cuda.cpp:1:
/cluster/home/it_stu103/.conda/envs/pytorch/lib/python3.7/site-packages/torch/lib/include/pybind11/detail/internals.h: In function ‘pybind11::detail::internals& pybind11::detail::get_internals()’:
/cluster/home/it_stu103/.conda/envs/pytorch/lib/python3.7/site-packages/torch/lib/include/pybind11/detail/internals.h:169:33: warning: ‘int PyThread_create_key()’ is deprecated [-Wdeprecated-declarations]
internals_ptr->tstate = PyThread_create_key();
^
In file included from /cluster/home/it_stu103/.conda/envs/pytorch/include/python3.7m/pystate.h:11:0,
from /cluster/home/it_stu103/.conda/envs/pytorch/include/python3.7m/traceback.h:8,
from /cluster/home/it_stu103/.conda/envs/pytorch/include/python3.7m/Python.h:109,
from /cluster/home/it_stu103/.conda/envs/pytorch/lib/python3.7/site-packages/torch/lib/include/torch/torch.h:3,
from src/roi_pool_cuda.cpp:1:
/cluster/home/it_stu103/.conda/envs/pytorch/include/python3.7m/pythread.h:95:17: note: declared here
PyAPI_FUNC(int) PyThread_create_key(void) Py_DEPRECATED(3.7);
^
In file included from /cluster/home/it_stu103/.conda/envs/pytorch/lib/python3.7/site-packages/torch/lib/include/pybind11/cast.h:16:0,
from /cluster/home/it_stu103/.conda/envs/pytorch/lib/python3.7/site-packages/torch/lib/include/pybind11/attr.h:13,
from /cluster/home/it_stu103/.conda/envs/pytorch/lib/python3.7/site-packages/torch/lib/include/pybind11/pybind11.h:43,
from /cluster/home/it_stu103/.conda/envs/pytorch/lib/python3.7/site-packages/torch/lib/include/torch/torch.h:5,
from src/roi_pool_cuda.cpp:1:
/cluster/home/it_stu103/.conda/envs/pytorch/lib/python3.7/site-packages/torch/lib/include/pybind11/detail/internals.h:169:33: warning: ‘int PyThread_create_key()’ is deprecated [-Wdeprecated-declarations]
internals_ptr->tstate = PyThread_create_key();
^
In file included from /cluster/home/it_stu103/.conda/envs/pytorch/include/python3.7m/pystate.h:11:0,
from /cluster/home/it_stu103/.conda/envs/pytorch/include/python3.7m/traceback.h:8,
from /cluster/home/it_stu103/.conda/envs/pytorch/include/python3.7m/Python.h:109,
from /cluster/home/it_stu103/.conda/envs/pytorch/lib/python3.7/site-packages/torch/lib/include/torch/torch.h:3,
from src/roi_pool_cuda.cpp:1:
/cluster/home/it_stu103/.conda/envs/pytorch/include/python3.7m/pythread.h:95:17: note: declared here
PyAPI_FUNC(int) PyThread_create_key(void) Py_DEPRECATED(3.7);
^
In file included from /cluster/home/it_stu103/.conda/envs/pytorch/lib/python3.7/site-packages/torch/lib/include/pybind11/cast.h:16:0,
from /cluster/home/it_stu103/.conda/envs/pytorch/lib/python3.7/site-packages/torch/lib/include/pybind11/attr.h:13,
from /cluster/home/it_stu103/.conda/envs/pytorch/lib/python3.7/site-packages/torch/lib/include/pybind11/pybind11.h:43,
from /cluster/home/it_stu103/.conda/envs/pytorch/lib/python3.7/site-packages/torch/lib/include/torch/torch.h:5,
from src/roi_pool_cuda.cpp:1:
/cluster/home/it_stu103/.conda/envs/pytorch/lib/python3.7/site-packages/torch/lib/include/pybind11/detail/internals.h:169:53: warning: ‘int PyThread_create_key()’ is deprecated [-Wdeprecated-declarations]
internals_ptr->tstate = PyThread_create_key();
^
In file included from /cluster/home/it_stu103/.conda/envs/pytorch/include/python3.7m/pystate.h:11:0,
from /cluster/home/it_stu103/.conda/envs/pytorch/include/python3.7m/traceback.h:8,
from /cluster/home/it_stu103/.conda/envs/pytorch/include/python3.7m/Python.h:109,
from /cluster/home/it_stu103/.conda/envs/pytorch/lib/python3.7/site-packages/torch/lib/include/torch/torch.h:3,
from src/roi_pool_cuda.cpp:1:
/cluster/home/it_stu103/.conda/envs/pytorch/include/python3.7m/pythread.h:95:17: note: declared here
PyAPI_FUNC(int) PyThread_create_key(void) Py_DEPRECATED(3.7);
^
In file included from /cluster/home/it_stu103/.conda/envs/pytorch/lib/python3.7/site-packages/torch/lib/include/pybind11/cast.h:16:0,
from /cluster/home/it_stu103/.conda/envs/pytorch/lib/python3.7/site-packages/torch/lib/include/pybind11/attr.h:13,
from /cluster/home/it_stu103/.conda/envs/pytorch/lib/python3.7/site-packages/torch/lib/include/pybind11/pybind11.h:43,
from /cluster/home/it_stu103/.conda/envs/pytorch/lib/python3.7/site-packages/torch/lib/include/torch/torch.h:5,
from src/roi_pool_cuda.cpp:1:
/cluster/home/it_stu103/.conda/envs/pytorch/lib/python3.7/site-packages/torch/lib/include/pybind11/detail/internals.h:170:9: warning: ‘int PyThread_set_key_value(int, void*)’ is deprecated [-Wdeprecated-declarations]
PyThread_set_key_value(internals_ptr->tstate, tstate);
^
In file included from /cluster/home/it_stu103/.conda/envs/pytorch/include/python3.7m/pystate.h:11:0,
from /cluster/home/it_stu103/.conda/envs/pytorch/include/python3.7m/traceback.h:8,
from /cluster/home/it_stu103/.conda/envs/pytorch/include/python3.7m/Python.h:109,
from /cluster/home/it_stu103/.conda/envs/pytorch/lib/python3.7/site-packages/torch/lib/include/torch/torch.h:3,
from src/roi_pool_cuda.cpp:1:
/cluster/home/it_stu103/.conda/envs/pytorch/include/python3.7m/pythread.h:97:17: note: declared here
PyAPI_FUNC(int) PyThread_set_key_value(int key, void *value) Py_DEPRECATED(3.7);
^
In file included from /cluster/home/it_stu103/.conda/envs/pytorch/lib/python3.7/site-packages/torch/lib/include/pybind11/cast.h:16:0,
from /cluster/home/it_stu103/.conda/envs/pytorch/lib/python3.7/site-packages/torch/lib/include/pybind11/attr.h:13,
from /cluster/home/it_stu103/.conda/envs/pytorch/lib/python3.7/site-packages/torch/lib/include/pybind11/pybind11.h:43,
from /cluster/home/it_stu103/.conda/envs/pytorch/lib/python3.7/site-packages/torch/lib/include/torch/torch.h:5,
from src/roi_pool_cuda.cpp:1:
/cluster/home/it_stu103/.conda/envs/pytorch/lib/python3.7/site-packages/torch/lib/include/pybind11/detail/internals.h:170:9: warning: ‘int PyThread_set_key_value(int, void*)’ is deprecated [-Wdeprecated-declarations]
PyThread_set_key_value(internals_ptr->tstate, tstate);
^
In file included from /cluster/home/it_stu103/.conda/envs/pytorch/include/python3.7m/pystate.h:11:0,
from /cluster/home/it_stu103/.conda/envs/pytorch/include/python3.7m/traceback.h:8,
from /cluster/home/it_stu103/.conda/envs/pytorch/include/python3.7m/Python.h:109,
from /cluster/home/it_stu103/.conda/envs/pytorch/lib/python3.7/site-packages/torch/lib/include/torch/torch.h:3,
from src/roi_pool_cuda.cpp:1:
/cluster/home/it_stu103/.conda/envs/pytorch/include/python3.7m/pythread.h:97:17: note: declared here
PyAPI_FUNC(int) PyThread_set_key_value(int key, void *value) Py_DEPRECATED(3.7);
^
In file included from /cluster/home/it_stu103/.conda/envs/pytorch/lib/python3.7/site-packages/torch/lib/include/pybind11/cast.h:16:0,
from /cluster/home/it_stu103/.conda/envs/pytorch/lib/python3.7/site-packages/torch/lib/include/pybind11/attr.h:13,
from /cluster/home/it_stu103/.conda/envs/pytorch/lib/python3.7/site-packages/torch/lib/include/pybind11/pybind11.h:43,
from /cluster/home/it_stu103/.conda/envs/pytorch/lib/python3.7/site-packages/torch/lib/include/torch/torch.h:5,
from src/roi_pool_cuda.cpp:1:
/cluster/home/it_stu103/.conda/envs/pytorch/lib/python3.7/site-packages/torch/lib/include/pybind11/detail/internals.h:170:61: warning: ‘int PyThread_set_key_value(int, void*)’ is deprecated [-Wdeprecated-declarations]
PyThread_set_key_value(internals_ptr->tstate, tstate);
^
In file included from /cluster/home/it_stu103/.conda/envs/pytorch/include/python3.7m/pystate.h:11:0,
from /cluster/home/it_stu103/.conda/envs/pytorch/include/python3.7m/traceback.h:8,
from /cluster/home/it_stu103/.conda/envs/pytorch/include/python3.7m/Python.h:109,
from /cluster/home/it_stu103/.conda/envs/pytorch/lib/python3.7/site-packages/torch/lib/include/torch/torch.h:3,
from src/roi_pool_cuda.cpp:1:
/cluster/home/it_stu103/.conda/envs/pytorch/include/python3.7m/pythread.h:97:17: note: declared here
PyAPI_FUNC(int) PyThread_set_key_value(int key, void *value) Py_DEPRECATED(3.7);
^
In file included from /cluster/home/it_stu103/.conda/envs/pytorch/lib/python3.7/site-packages/torch/lib/include/torch/torch.h:5:0,
from src/roi_pool_cuda.cpp:1:
/cluster/home/it_stu103/.conda/envs/pytorch/lib/python3.7/site-packages/torch/lib/include/pybind11/pybind11.h: In constructor ‘pybind11::gil_scoped_acquire::gil_scoped_acquire()’:
/cluster/home/it_stu103/.conda/envs/pytorch/lib/python3.7/site-packages/torch/lib/include/pybind11/pybind11.h:1758:36: warning: ‘void* PyThread_get_key_value(int)’ is deprecated [-Wdeprecated-declarations]
tstate = (PyThreadState *) PyThread_get_key_value(internals.tstate);
^
In file included from /cluster/home/it_stu103/.conda/envs/pytorch/include/python3.7m/pystate.h:11:0,
from /cluster/home/it_stu103/.conda/envs/pytorch/include/python3.7m/traceback.h:8,
from /cluster/home/it_stu103/.conda/envs/pytorch/include/python3.7m/Python.h:109,
from /cluster/home/it_stu103/.conda/envs/pytorch/lib/python3.7/site-packages/torch/lib/include/torch/torch.h:3,
from src/roi_pool_cuda.cpp:1:
/cluster/home/it_stu103/.conda/envs/pytorch/include/python3.7m/pythread.h:98:20: note: declared here
PyAPI_FUNC(void *) PyThread_get_key_value(int key) Py_DEPRECATED(3.7);
^
In file included from /cluster/home/it_stu103/.conda/envs/pytorch/lib/python3.7/site-packages/torch/lib/include/torch/torch.h:5:0,
from src/roi_pool_cuda.cpp:1:
/cluster/home/it_stu103/.conda/envs/pytorch/lib/python3.7/site-packages/torch/lib/include/pybind11/pybind11.h:1758:36: warning: ‘void* PyThread_get_key_value(int)’ is deprecated [-Wdeprecated-declarations]
tstate = (PyThreadState *) PyThread_get_key_value(internals.tstate);
^
In file included from /cluster/home/it_stu103/.conda/envs/pytorch/include/python3.7m/pystate.h:11:0,
from /cluster/home/it_stu103/.conda/envs/pytorch/include/python3.7m/traceback.h:8,
from /cluster/home/it_stu103/.conda/envs/pytorch/include/python3.7m/Python.h:109,
from /cluster/home/it_stu103/.conda/envs/pytorch/lib/python3.7/site-packages/torch/lib/include/torch/torch.h:3,
from src/roi_pool_cuda.cpp:1:
/cluster/home/it_stu103/.conda/envs/pytorch/include/python3.7m/pythread.h:98:20: note: declared here
PyAPI_FUNC(void *) PyThread_get_key_value(int key) Py_DEPRECATED(3.7);
^
In file included from /cluster/home/it_stu103/.conda/envs/pytorch/lib/python3.7/site-packages/torch/lib/include/torch/torch.h:5:0,
from src/roi_pool_cuda.cpp:1:
/cluster/home/it_stu103/.conda/envs/pytorch/lib/python3.7/site-packages/torch/lib/include/pybind11/pybind11.h:1758:75: warning: ‘void* PyThread_get_key_value(int)’ is deprecated [-Wdeprecated-declarations]
tstate = (PyThreadState *) PyThread_get_key_value(internals.tstate);
^
In file included from /cluster/home/it_stu103/.conda/envs/pytorch/include/python3.7m/pystate.h:11:0,
from /cluster/home/it_stu103/.conda/envs/pytorch/include/python3.7m/traceback.h:8,
from /cluster/home/it_stu103/.conda/envs/pytorch/include/python3.7m/Python.h:109,
from /cluster/home/it_stu103/.conda/envs/pytorch/lib/python3.7/site-packages/torch/lib/include/torch/torch.h:3,
from src/roi_pool_cuda.cpp:1:
/cluster/home/it_stu103/.conda/envs/pytorch/include/python3.7m/pythread.h:98:20: note: declared here
PyAPI_FUNC(void *) PyThread_get_key_value(int key) Py_DEPRECATED(3.7);
^
In file included from /cluster/home/it_stu103/.conda/envs/pytorch/lib/python3.7/site-packages/torch/lib/include/torch/torch.h:5:0,
from src/roi_pool_cuda.cpp:1:
/cluster/home/it_stu103/.conda/envs/pytorch/lib/python3.7/site-packages/torch/lib/include/pybind11/pybind11.h:1770:13: warning: ‘int PyThread_set_key_value(int, void*)’ is deprecated [-Wdeprecated-declarations]
PyThread_set_key_value(internals.tstate, tstate);
^
In file included from /cluster/home/it_stu103/.conda/envs/pytorch/include/python3.7m/pystate.h:11:0,
from /cluster/home/it_stu103/.conda/envs/pytorch/include/python3.7m/traceback.h:8,
from /cluster/home/it_stu103/.conda/envs/pytorch/include/python3.7m/Python.h:109,
from /cluster/home/it_stu103/.conda/envs/pytorch/lib/python3.7/site-packages/torch/lib/include/torch/torch.h:3,
from src/roi_pool_cuda.cpp:1:
/cluster/home/it_stu103/.conda/envs/pytorch/include/python3.7m/pythread.h:97:17: note: declared here
PyAPI_FUNC(int) PyThread_set_key_value(int key, void *value) Py_DEPRECATED(3.7);
^
In file included from /cluster/home/it_stu103/.conda/envs/pytorch/lib/python3.7/site-packages/torch/lib/include/torch/torch.h:5:0,
from src/roi_pool_cuda.cpp:1:
/cluster/home/it_stu103/.conda/envs/pytorch/lib/python3.7/site-packages/torch/lib/include/pybind11/pybind11.h:1770:13: warning: ‘int PyThread_set_key_value(int, void*)’ is deprecated [-Wdeprecated-declarations]
PyThread_set_key_value(internals.tstate, tstate);
^
In file included from /cluster/home/it_stu103/.conda/envs/pytorch/include/python3.7m/pystate.h:11:0,
from /cluster/home/it_stu103/.conda/envs/pytorch/include/python3.7m/traceback.h:8,
from /cluster/home/it_stu103/.conda/envs/pytorch/include/python3.7m/Python.h:109,
from /cluster/home/it_stu103/.conda/envs/pytorch/lib/python3.7/site-packages/torch/lib/include/torch/torch.h:3,
from src/roi_pool_cuda.cpp:1:
/cluster/home/it_stu103/.conda/envs/pytorch/include/python3.7m/pythread.h:97:17: note: declared here
PyAPI_FUNC(int) PyThread_set_key_value(int key, void *value) Py_DEPRECATED(3.7);
^
In file included from /cluster/home/it_stu103/.conda/envs/pytorch/lib/python3.7/site-packages/torch/lib/include/torch/torch.h:5:0,
from src/roi_pool_cuda.cpp:1:
/cluster/home/it_stu103/.conda/envs/pytorch/lib/python3.7/site-packages/torch/lib/include/pybind11/pybind11.h:1770:60: warning: ‘int PyThread_set_key_value(int, void*)’ is deprecated [-Wdeprecated-declarations]
PyThread_set_key_value(internals.tstate, tstate);
^
In file included from /cluster/home/it_stu103/.conda/envs/pytorch/include/python3.7m/pystate.h:11:0,
from /cluster/home/it_stu103/.conda/envs/pytorch/include/python3.7m/traceback.h:8,
from /cluster/home/it_stu103/.conda/envs/pytorch/include/python3.7m/Python.h:109,
from /cluster/home/it_stu103/.conda/envs/pytorch/lib/python3.7/site-packages/torch/lib/include/torch/torch.h:3,
from src/roi_pool_cuda.cpp:1:
/cluster/home/it_stu103/.conda/envs/pytorch/include/python3.7m/pythread.h:97:17: note: declared here
PyAPI_FUNC(int) PyThread_set_key_value(int key, void *value) Py_DEPRECATED(3.7);
^
In file included from /cluster/home/it_stu103/.conda/envs/pytorch/lib/python3.7/site-packages/torch/lib/include/torch/torch.h:5:0,
from src/roi_pool_cuda.cpp:1:
/cluster/home/it_stu103/.conda/envs/pytorch/lib/python3.7/site-packages/torch/lib/include/pybind11/pybind11.h: In member function ‘void pybind11::gil_scoped_acquire::dec_ref()’:
/cluster/home/it_stu103/.conda/envs/pytorch/lib/python3.7/site-packages/torch/lib/include/pybind11/pybind11.h:1809:13: warning: ‘void PyThread_delete_key_value(int)’ is deprecated [-Wdeprecated-declarations]
PyThread_delete_key_value(detail::get_internals().tstate);
^
In file included from /cluster/home/it_stu103/.conda/envs/pytorch/include/python3.7m/pystate.h:11:0,
from /cluster/home/it_stu103/.conda/envs/pytorch/include/python3.7m/traceback.h:8,
from /cluster/home/it_stu103/.conda/envs/pytorch/include/python3.7m/Python.h:109,
from /cluster/home/it_stu103/.conda/envs/pytorch/lib/python3.7/site-packages/torch/lib/include/torch/torch.h:3,
from src/roi_pool_cuda.cpp:1:
/cluster/home/it_stu103/.conda/envs/pytorch/include/python3.7m/pythread.h:99:18: note: declared here
PyAPI_FUNC(void) PyThread_delete_key_value(int key) Py_DEPRECATED(3.7);
^
In file included from /cluster/home/it_stu103/.conda/envs/pytorch/lib/python3.7/site-packages/torch/lib/include/torch/torch.h:5:0,
from src/roi_pool_cuda.cpp:1:
/cluster/home/it_stu103/.conda/envs/pytorch/lib/python3.7/site-packages/torch/lib/include/pybind11/pybind11.h:1809:13: warning: ‘void PyThread_delete_key_value(int)’ is deprecated [-Wdeprecated-declarations]
PyThread_delete_key_value(detail::get_internals().tstate);
^
In file included from /cluster/home/it_stu103/.conda/envs/pytorch/include/python3.7m/pystate.h:11:0,
from /cluster/home/it_stu103/.conda/envs/pytorch/include/python3.7m/traceback.h:8,
from /cluster/home/it_stu103/.conda/envs/pytorch/include/python3.7m/Python.h:109,
from /cluster/home/it_stu103/.conda/envs/pytorch/lib/python3.7/site-packages/torch/lib/include/torch/torch.h:3,
from src/roi_pool_cuda.cpp:1:
/cluster/home/it_stu103/.conda/envs/pytorch/include/python3.7m/pythread.h:99:18: note: declared here
PyAPI_FUNC(void) PyThread_delete_key_value(int key) Py_DEPRECATED(3.7);
^
In file included from /cluster/home/it_stu103/.conda/envs/pytorch/lib/python3.7/site-packages/torch/lib/include/torch/torch.h:5:0,
from src/roi_pool_cuda.cpp:1:
/cluster/home/it_stu103/.conda/envs/pytorch/lib/python3.7/site-packages/torch/lib/include/pybind11/pybind11.h:1809:69: warning: ‘void PyThread_delete_key_value(int)’ is deprecated [-Wdeprecated-declarations]
PyThread_delete_key_value(detail::get_internals().tstate);
^
In file included from /cluster/home/it_stu103/.conda/envs/pytorch/include/python3.7m/pystate.h:11:0,
from /cluster/home/it_stu103/.conda/envs/pytorch/include/python3.7m/traceback.h:8,
from /cluster/home/it_stu103/.conda/envs/pytorch/include/python3.7m/Python.h:109,
from /cluster/home/it_stu103/.conda/envs/pytorch/lib/python3.7/site-packages/torch/lib/include/torch/torch.h:3,
from src/roi_pool_cuda.cpp:1:
/cluster/home/it_stu103/.conda/envs/pytorch/include/python3.7m/pythread.h:99:18: note: declared here
PyAPI_FUNC(void) PyThread_delete_key_value(int key) Py_DEPRECATED(3.7);
^
In file included from /cluster/home/it_stu103/.conda/envs/pytorch/lib/python3.7/site-packages/torch/lib/include/torch/torch.h:5:0,
from src/roi_pool_cuda.cpp:1:
/cluster/home/it_stu103/.conda/envs/pytorch/lib/python3.7/site-packages/torch/lib/include/pybind11/pybind11.h: In constructor ‘pybind11::gil_scoped_release::gil_scoped_release(bool)’:
/cluster/home/it_stu103/.conda/envs/pytorch/lib/python3.7/site-packages/torch/lib/include/pybind11/pybind11.h:1837:17: warning: ‘int PyThread_set_key_value(int, void*)’ is deprecated [-Wdeprecated-declarations]
PyThread_set_key_value(key, nullptr);
^
In file included from /cluster/home/it_stu103/.conda/envs/pytorch/include/python3.7m/pystate.h:11:0,
from /cluster/home/it_stu103/.conda/envs/pytorch/include/python3.7m/traceback.h:8,
from /cluster/home/it_stu103/.conda/envs/pytorch/include/python3.7m/Python.h:109,
from /cluster/home/it_stu103/.conda/envs/pytorch/lib/python3.7/site-packages/torch/lib/include/torch/torch.h:3,
from src/roi_pool_cuda.cpp:1:
/cluster/home/it_stu103/.conda/envs/pytorch/include/python3.7m/pythread.h:97:17: note: declared here
PyAPI_FUNC(int) PyThread_set_key_value(int key, void *value) Py_DEPRECATED(3.7);
^
In file included from /cluster/home/it_stu103/.conda/envs/pytorch/lib/python3.7/site-packages/torch/lib/include/torch/torch.h:5:0,
from src/roi_pool_cuda.cpp:1:
/cluster/home/it_stu103/.conda/envs/pytorch/lib/python3.7/site-packages/torch/lib/include/pybind11/pybind11.h:1837:17: warning: ‘int PyThread_set_key_value(int, void*)’ is deprecated [-Wdeprecated-declarations]
PyThread_set_key_value(key, nullptr);
^
In file included from /cluster/home/it_stu103/.conda/envs/pytorch/include/python3.7m/pystate.h:11:0,
from /cluster/home/it_stu103/.conda/envs/pytorch/include/python3.7m/traceback.h:8,
from /cluster/home/it_stu103/.conda/envs/pytorch/include/python3.7m/Python.h:109,
from /cluster/home/it_stu103/.conda/envs/pytorch/lib/python3.7/site-packages/torch/lib/include/torch/torch.h:3,
from src/roi_pool_cuda.cpp:1:
/cluster/home/it_stu103/.conda/envs/pytorch/include/python3.7m/pythread.h:97:17: note: declared here
PyAPI_FUNC(int) PyThread_set_key_value(int key, void *value) Py_DEPRECATED(3.7);
^
In file included from /cluster/home/it_stu103/.conda/envs/pytorch/lib/python3.7/site-packages/torch/lib/include/torch/torch.h:5:0,
from src/roi_pool_cuda.cpp:1:
/cluster/home/it_stu103/.conda/envs/pytorch/lib/python3.7/site-packages/torch/lib/include/pybind11/pybind11.h:1837:52: warning: ‘int PyThread_set_key_value(int, void*)’ is deprecated [-Wdeprecated-declarations]
PyThread_set_key_value(key, nullptr);
^
In file included from /cluster/home/it_stu103/.conda/envs/pytorch/include/python3.7m/pystate.h:11:0,
from /cluster/home/it_stu103/.conda/envs/pytorch/include/python3.7m/traceback.h:8,
from /cluster/home/it_stu103/.conda/envs/pytorch/include/python3.7m/Python.h:109,
from /cluster/home/it_stu103/.conda/envs/pytorch/lib/python3.7/site-packages/torch/lib/include/torch/torch.h:3,
from src/roi_pool_cuda.cpp:1:
/cluster/home/it_stu103/.conda/envs/pytorch/include/python3.7m/pythread.h:97:17: note: declared here
PyAPI_FUNC(int) PyThread_set_key_value(int key, void *value) Py_DEPRECATED(3.7);
^
In file included from /cluster/home/it_stu103/.conda/envs/pytorch/lib/python3.7/site-packages/torch/lib/include/torch/torch.h:5:0,
from src/roi_pool_cuda.cpp:1:
/cluster/home/it_stu103/.conda/envs/pytorch/lib/python3.7/site-packages/torch/lib/include/pybind11/pybind11.h: In destructor ‘pybind11::gil_scoped_release::~gil_scoped_release()’:
/cluster/home/it_stu103/.conda/envs/pytorch/lib/python3.7/site-packages/torch/lib/include/pybind11/pybind11.h:1850:13: warning: ‘int PyThread_set_key_value(int, void*)’ is deprecated [-Wdeprecated-declarations]
PyThread_set_key_value(key, tstate);
^
In file included from /cluster/home/it_stu103/.conda/envs/pytorch/include/python3.7m/pystate.h:11:0,
from /cluster/home/it_stu103/.conda/envs/pytorch/include/python3.7m/traceback.h:8,
from /cluster/home/it_stu103/.conda/envs/pytorch/include/python3.7m/Python.h:109,
from /cluster/home/it_stu103/.conda/envs/pytorch/lib/python3.7/site-packages/torch/lib/include/torch/torch.h:3,
from src/roi_pool_cuda.cpp:1:
/cluster/home/it_stu103/.conda/envs/pytorch/include/python3.7m/pythread.h:97:17: note: declared here
PyAPI_FUNC(int) PyThread_set_key_value(int key, void *value) Py_DEPRECATED(3.7);
^
In file included from /cluster/home/it_stu103/.conda/envs/pytorch/lib/python3.7/site-packages/torch/lib/include/torch/torch.h:5:0,
from src/roi_pool_cuda.cpp:1:
/cluster/home/it_stu103/.conda/envs/pytorch/lib/python3.7/site-packages/torch/lib/include/pybind11/pybind11.h:1850:13: warning: ‘int PyThread_set_key_value(int, void*)’ is deprecated [-Wdeprecated-declarations]
PyThread_set_key_value(key, tstate);
^
In file included from /cluster/home/it_stu103/.conda/envs/pytorch/include/python3.7m/pystate.h:11:0,
from /cluster/home/it_stu103/.conda/envs/pytorch/include/python3.7m/traceback.h:8,
from /cluster/home/it_stu103/.conda/envs/pytorch/include/python3.7m/Python.h:109,
from /cluster/home/it_stu103/.conda/envs/pytorch/lib/python3.7/site-packages/torch/lib/include/torch/torch.h:3,
from src/roi_pool_cuda.cpp:1:
/cluster/home/it_stu103/.conda/envs/pytorch/include/python3.7m/pythread.h:97:17: note: declared here
PyAPI_FUNC(int) PyThread_set_key_value(int key, void *value) Py_DEPRECATED(3.7);
^
In file included from /cluster/home/it_stu103/.conda/envs/pytorch/lib/python3.7/site-packages/torch/lib/include/torch/torch.h:5:0,
from src/roi_pool_cuda.cpp:1:
/cluster/home/it_stu103/.conda/envs/pytorch/lib/python3.7/site-packages/torch/lib/include/pybind11/pybind11.h:1850:47: warning: ‘int PyThread_set_key_value(int, void*)’ is deprecated [-Wdeprecated-declarations]
PyThread_set_key_value(key, tstate);
^
In file included from /cluster/home/it_stu103/.conda/envs/pytorch/include/python3.7m/pystate.h:11:0,
from /cluster/home/it_stu103/.conda/envs/pytorch/include/python3.7m/traceback.h:8,
from /cluster/home/it_stu103/.conda/envs/pytorch/include/python3.7m/Python.h:109,
from /cluster/home/it_stu103/.conda/envs/pytorch/lib/python3.7/site-packages/torch/lib/include/torch/torch.h:3,
from src/roi_pool_cuda.cpp:1:
/cluster/home/it_stu103/.conda/envs/pytorch/include/python3.7m/pythread.h:97:17: note: declared here
PyAPI_FUNC(int) PyThread_set_key_value(int key, void *value) Py_DEPRECATED(3.7);
^
/cluster/apps/cuda/9.0/bin/nvcc -I/cluster/home/it_stu103/.conda/envs/pytorch/lib/python3.7/site-packages/torch/lib/include -I/cluster/home/it_stu103/.conda/envs/pytorch/lib/python3.7/site-packages/torch/lib/include/TH -I/cluster/home/it_stu103/.conda/envs/pytorch/lib/python3.7/site-packages/torch/lib/include/THC -I/cluster/apps/cuda/9.0/include -I/cluster/home/it_stu103/.conda/envs/pytorch/include/python3.7m -c src/roi_pool_kernel.cu -o build/temp.linux-x86_64-3.7/src/roi_pool_kernel.o -DTORCH_EXTENSION_NAME=roi_pool_cuda -D_GLIBCXX_USE_CXX11_ABI=0 --compiler-options '-fPIC' -std=c++11
creating build/lib.linux-x86_64-3.7
g++ -pthread -shared -B /cluster/home/it_stu103/.conda/envs/pytorch/compiler_compat -L/cluster/home/it_stu103/.conda/envs/pytorch/lib -Wl,-rpath=/cluster/home/it_stu103/.conda/envs/pytorch/lib -Wl,--no-as-needed -Wl,--sysroot=/ build/temp.linux-x86_64-3.7/src/roi_pool_cuda.o build/temp.linux-x86_64-3.7/src/roi_pool_kernel.o -L/cluster/apps/cuda/9.0/lib64 -lcudart -o build/lib.linux-x86_64-3.7/roi_pool_cuda.cpython-37m-x86_64-linux-gnu.so
copying build/lib.linux-x86_64-3.7/roi_pool_cuda.cpython-37m-x86_64-linux-gnu.so ->
Building nms op...
rm -f *.so
echo "Compiling nms kernels..."
Compiling nms kernels...
python setup.py build_ext --inplace
running build_ext
building 'cpu_nms' extension
gcc -pthread -B /cluster/home/it_stu103/.conda/envs/pytorch/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/cluster/home/it_stu103/.conda/envs/pytorch/lib/python3.7/site-packages/numpy/core/include -I/cluster/home/it_stu103/.conda/envs/pytorch/include/python3.7m -c cpu_nms.cpp -o build/temp.linux-x86_64-3.7/cpu_nms.o -Wno-unused-function -Wno-write-strings
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
In file included from /cluster/home/it_stu103/.conda/envs/pytorch/lib/python3.7/site-packages/numpy/core/include/numpy/ndarraytypes.h:1823:0,
from /cluster/home/it_stu103/.conda/envs/pytorch/lib/python3.7/site-packages/numpy/core/include/numpy/ndarrayobject.h:18,
from /cluster/home/it_stu103/.conda/envs/pytorch/lib/python3.7/site-packages/numpy/core/include/numpy/arrayobject.h:4,
from cpu_nms.cpp:658:
/cluster/home/it_stu103/.conda/envs/pytorch/lib/python3.7/site-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:15:2: warning: #warning "Using deprecated NumPy API, disable it by " "#defining NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-Wcpp]
#warning "Using deprecated NumPy API, disable it by " \
^
g++ -pthread -shared -B /cluster/home/it_stu103/.conda/envs/pytorch/compiler_compat -L/cluster/home/it_stu103/.conda/envs/pytorch/lib -Wl,-rpath=/cluster/home/it_stu103/.conda/envs/pytorch/lib -Wl,--no-as-needed -Wl,--sysroot=/ build/temp.linux-x86_64-3.7/cpu_nms.o -o /cluster/home/it_stu103/zy/kaggle/mmdetection/mmdet/ops/nms/cpu_nms.cpython-37m-x86_64-linux-gnu.so
building 'cpu_soft_nms' extension
gcc -pthread -B /cluster/home/it_stu103/.conda/envs/pytorch/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/cluster/home/it_stu103/.conda/envs/pytorch/lib/python3.7/site-packages/numpy/core/include -I/cluster/home/it_stu103/.conda/envs/pytorch/include/python3.7m -c cpu_soft_nms.cpp -o build/temp.linux-x86_64-3.7/cpu_soft_nms.o -Wno-unused-function -Wno-write-strings
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
In file included from /cluster/home/it_stu103/.conda/envs/pytorch/lib/python3.7/site-packages/numpy/core/include/numpy/ndarraytypes.h:1823:0,
from /cluster/home/it_stu103/.conda/envs/pytorch/lib/python3.7/site-packages/numpy/core/include/numpy/ndarrayobject.h:18,
from /cluster/home/it_stu103/.conda/envs/pytorch/lib/python3.7/site-packages/numpy/core/include/numpy/arrayobject.h:4,
from cpu_soft_nms.cpp:658:
/cluster/home/it_stu103/.conda/envs/pytorch/lib/python3.7/site-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:15:2: warning: #warning "Using deprecated NumPy API, disable it by " "#defining NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-Wcpp]
#warning "Using deprecated NumPy API, disable it by " \
^
cpu_soft_nms.cpp: In function ‘PyObject* __pyx_pf_12cpu_soft_nms_cpu_soft_nms(PyObject*, PyArrayObject*, float, unsigned int, float, float)’:
cpu_soft_nms.cpp:2486:34: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
__pyx_t_10 = ((__pyx_v_pos < __pyx_v_N) != 0);
^
cpu_soft_nms.cpp:2997:34: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
__pyx_t_10 = ((__pyx_v_pos < __pyx_v_N) != 0);
^
g++ -pthread -shared -B /cluster/home/it_stu103/.conda/envs/pytorch/compiler_compat -L/cluster/home/it_stu103/.conda/envs/pytorch/lib -Wl,-rpath=/cluster/home/it_stu103/.conda/envs/pytorch/lib -Wl,--no-as-needed -Wl,--sysroot=/ build/temp.linux-x86_64-3.7/cpu_soft_nms.o -o /cluster/home/it_stu103/zy/kaggle/mmdetection/mmdet/ops/nms/cpu_soft_nms.cpython-37m-x86_64-linux-gnu.so
building 'gpu_nms' extension
gcc -pthread -B /cluster/home/it_stu103/.conda/envs/pytorch/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/cluster/home/it_stu103/.conda/envs/pytorch/lib/python3.7/site-packages/numpy/core/include -I/cluster/home/it_stu103/.conda/envs/pytorch/include/python3.7m -c gpu_nms.cpp -o build/temp.linux-x86_64-3.7/gpu_nms.o -Wno-unused-function -Wno-write-strings
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
In file included from /cluster/home/it_stu103/.conda/envs/pytorch/lib/python3.7/site-packages/numpy/core/include/numpy/ndarraytypes.h:1823:0,
from /cluster/home/it_stu103/.conda/envs/pytorch/lib/python3.7/site-packages/numpy/core/include/numpy/ndarrayobject.h:18,
from /cluster/home/it_stu103/.conda/envs/pytorch/lib/python3.7/site-packages/numpy/core/include/numpy/arrayobject.h:4,
from gpu_nms.cpp:660:
/cluster/home/it_stu103/.conda/envs/pytorch/lib/python3.7/site-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:15:2: warning: #warning "Using deprecated NumPy API, disable it by " "#defining NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-Wcpp]
#warning "Using deprecated NumPy API, disable it by " \
^
nvcc -I/cluster/home/it_stu103/.conda/envs/pytorch/lib/python3.7/site-packages/numpy/core/include -I/cluster/home/it_stu103/.conda/envs/pytorch/include/python3.7m -c nms_kernel.cu -o build/temp.linux-x86_64-3.7/nms_kernel.o -c --compiler-options -fPIC
g++ -pthread -shared -B /cluster/home/it_stu103/.conda/envs/pytorch/compiler_compat -L/cluster/home/it_stu103/.conda/envs/pytorch/lib -Wl,-rpath=/cluster/home/it_stu103/.conda/envs/pytorch/lib -Wl,--no-as-needed -Wl,--sysroot=/ build/temp.linux-x86_64-3.7/gpu_nms.o build/temp.linux-x86_64-3.7/nms_kernel.o -o /cluster/home/it_stu103/zy/kaggle/mmdetection/mmdet/ops/nms/gpu_nms.cpython-37m-x86_64-linux-gnu.so
No CUDA runtime is found, using CUDA_HOME='/usr/local/cuda'
i have met the some trouble,did you deal with it
i have met the some trouble,did you deal with it
I met the same problem. And I sloved it by adding CUDA_VISIBLE_DEVICES=0 before ./compil.sh
Goog luck
Hi, I don't know whether u have addressed the issue. To my point, this shall be the mismatch between the cuda version of your server and the installed pytorch package, since all packages downloaded from conda are pre-computed.
No CUDA runtime is found, using CUDA_HOME='/usr/local/cuda'
i have met the some trouble,did you deal with it
Have you fixed it? When I run python setup.py develop, It occurs in my env too. ubuntu 16.04, cuda 9.5, etc. It happens due to the CUDA_HOME not been set. After run export CUDA_HOME=/usr/local/cuda(the path should be exactly the real unpacked cuda lib), trouble solved and compile success although it still shows "No CUDA runtime is found, using CUDA_HOME='/usr/local/cuda'".
BTW, at first, my error tip is "No CUDA runtime is found, using CUDA_HOME='/usr/other random path'"
i have met the some trouble,did you deal with it
I met the same problem. And I sloved it by adding CUDA_VISIBLE_DEVICES=0 before ./compil.sh
Goog luck
Hey could you tell me in detail where to make these changes. I couldnt understand where compile.sh is.
I have installed cuda and when I import torch and look for torch.cuda.is_available() its True but . I m getting the above error. Could you help me please
Thankyou
@sree3333 I try export the FORCE_CUDA variable, it is sloved
export FORCE_CUDA="1"
@sree3333 I try export the FORCE_CUDA variable, it is sloved
export FORCE_CUDA="1"
it worked, but I still do not know why.
Thank you.
If you've installed the CPU version of pytorch, it'll pop No CUDA runtime is found, using CUDA_HOME='/usr/local/cuda' too.
Make sure you get the GPU version.
the wrong match due to pytorch version and cuda version. I try torch1.6.0 in cuda10 first and get the same error. I solve the problem by downgrading to torch 1.3.1
have same issue, even when running on top of the nvidia/cuda of the correct version. is there a way to activate GPU during docker build? Looks like this package needs an active GPU when it builds.
I also tried to use the steps from this dockerfile in my python3.6 based image but it fails with missing package or something. The server has GPU, and pytorch installed with cuda of the right version.
Step 18/23 : RUN pip install --no-cache-dir -e .
---> Running in fce6fbecf1e4
Obtaining file:///code/mmdetection
Requirement already satisfied: matplotlib in /usr/local/lib/python3.6/site-packages (from mmdet==1.2.0+0f33c08) (3.0.2)
Requirement already satisfied: mmcv>=0.3.1 in /usr/local/lib/python3.6/site-packages (from mmdet==1.2.0+0f33c08) (0.4.3)
Requirement already satisfied: numpy in /usr/local/lib/python3.6/site-packages (from mmdet==1.2.0+0f33c08) (1.16.4)
Requirement already satisfied: Pillow<=6.2.2 in /usr/local/lib/python3.6/site-packages (from mmdet==1.2.0+0f33c08) (6.2.1)
Requirement already satisfied: six in /usr/local/lib/python3.6/site-packages (from mmdet==1.2.0+0f33c08) (1.10.0)
Requirement already satisfied: terminaltables in /usr/local/lib/python3.6/site-packages (from mmdet==1.2.0+0f33c08) (3.1.0)
Requirement already satisfied: torch>=1.1 in /usr/local/lib/python3.6/site-packages (from mmdet==1.2.0+0f33c08) (1.4.0+cu100)
Requirement already satisfied: torchvision in /usr/local/lib/python3.6/site-packages (from mmdet==1.2.0+0f33c08) (0.5.0+cu100)
Requirement already satisfied: pyparsing!=2.0.4,!=2.1.2,!=2.1.6,>=2.0.1 in /usr/local/lib/python3.6/site-packages (from matplotlib->mmdet==1.2.0+0f33c08) (2.3.0)
Requirement already satisfied: cycler>=0.10 in /usr/local/lib/python3.6/site-packages (from matplotlib->mmdet==1.2.0+0f33c08) (0.10.0)
Requirement already satisfied: python-dateutil>=2.1 in /usr/local/lib/python3.6/site-packages (from matplotlib->mmdet==1.2.0+0f33c08) (2.7.3)
Requirement already satisfied: kiwisolver>=1.0.1 in /usr/local/lib/python3.6/site-packages (from matplotlib->mmdet==1.2.0+0f33c08) (1.0.1)
Requirement already satisfied: addict in /usr/local/lib/python3.6/site-packages (from mmcv>=0.3.1->mmdet==1.2.0+0f33c08) (2.3.0)
Requirement already satisfied: opencv-python>=3 in /usr/local/lib/python3.6/site-packages (from mmcv>=0.3.1->mmdet==1.2.0+0f33c08) (4.4.0.46)
Requirement already satisfied: pyyaml in /usr/local/lib/python3.6/site-packages (from mmcv>=0.3.1->mmdet==1.2.0+0f33c08) (3.13)
Requirement already satisfied: setuptools in /usr/local/lib/python3.6/site-packages (from kiwisolver>=1.0.1->matplotlib->mmdet==1.2.0+0f33c08) (50.3.2)
Installing collected packages: mmdet
Running setup.py develop for mmdet
ERROR: Command errored out with exit status 1:
command: /usr/local/bin/python -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/code/mmdetection/setup.py'"'"'; __file__='"'"'/code/mmdetection/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' develop --no-deps
cwd: /code/mmdetection/
Complete output (25 lines):
No CUDA runtime is found, using CUDA_HOME='/usr/local/cuda'
running develop
running egg_info
creating mmdet.egg-info
writing mmdet.egg-info/PKG-INFO
writing dependency_links to mmdet.egg-info/dependency_links.txt
writing requirements to mmdet.egg-info/requires.txt
writing top-level names to mmdet.egg-info/top_level.txt
writing manifest file 'mmdet.egg-info/SOURCES.txt'
reading manifest file 'mmdet.egg-info/SOURCES.txt'
writing manifest file 'mmdet.egg-info/SOURCES.txt'
running build_ext
building 'mmdet.ops.utils.compiling_info' extension
creating build
creating build/temp.linux-x86_64-3.6
creating build/temp.linux-x86_64-3.6/mmdet
creating build/temp.linux-x86_64-3.6/mmdet/ops
creating build/temp.linux-x86_64-3.6/mmdet/ops/utils
creating build/temp.linux-x86_64-3.6/mmdet/ops/utils/src
gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -DWITH_CUDA -I/usr/local/lib/python3.6/site-packages/torch/include -I/usr/local/lib/python3.6/site-packages/torch/include/torch/csrc/api/include -I/usr/local/lib/python3.6/site-packages/torch/include/TH -I/usr/local/lib/python3.6/site-packages/torch/include/THC -I/usr/local/cuda/include -I/usr/local/include/python3.6m -c mmdet/ops/utils/src/compiling_info.cpp -o build/temp.linux-x86_64-3.6/mmdet/ops/utils/src/compiling_info.o -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=compiling_info -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++11
mmdet/ops/utils/src/compiling_info.cpp:3:10: fatal error: cuda_runtime_api.h: No such file or directory
#include <cuda_runtime_api.h>
^~~~~~~~~~~~~~~~~~~~
compilation terminated.
error: command 'gcc' failed with exit status 1
----------------------------------------
ERROR: Command errored out with exit status 1: /usr/local/bin/python -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/code/mmdetection/setup.py'"'"'; __file__='"'"'/code/mmdetection/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' develop --no-deps Check the logs for full command output.
The command '/bin/sh -c pip install --no-cache-dir -e .' returned a non-zero code: 1
Cleaning up file based variables
00:00
ERROR: Job failed: exit status 1
My Dockerfile is this:
FROM python:3.6
WORKDIR /code
RUN apt-get update && apt-get install libenchant1c2a -y -qq
RUN pip install --upgrade pip
ADD requirements.txt .
ADD wheelhouse ./wheelhouse/
RUN pip install -r requirements.txt --find-links https://download.pytorch.org/whl/torch_stable.html
RUN pip install mmcv-full==latest+torch1.5.0+cu101 -f https://openmmlab.oss-accelerate.aliyuncs.com/mmcv/dist/index.html
RUN git clone --branch v1.2.0 'https://github.com/open-mmlab/mmdetection.git'
WORKDIR /code/mmdetection
ENV CUDA_HOME="/usr/local/cuda"
ENV FORCE_CUDA="1"
RUN pip install -r requirements/optional.txt
RUN pip install -r requirements/build.txt
RUN pip install --no-cache-dir -e .
WORKDIR /code
I met this problem because I build mmcv on local node, where nvidia driver is not installed.
After srun the build job to node with gpu and driver, I solved this problem.
Most helpful comment
@sree3333 I try export the FORCE_CUDA variable, it is sloved