Hi,
1.i followed instruction to install mxnet and check the sample code. it was working fine.
2.i clone FCIS folder to my ubuntu system and run sh ./init.sh
gpu_mv.pyx:14:419: Syntax error in C variable declaration
building 'gpu_mv' extension
/usr/local/cuda-8.0/bin/nvcc -I/usr/local/lib/python2.7/dist-packages/numpy/core/include -I/usr/local/cuda-8.0/include -I/usr/include/python2.7 -c mv_kernel.cu -o build/temp.linux-x86_64-2.7/mv_kernel.o -arch=sm_35 --ptxas-options=-v -c --compiler-options '-fPIC'
ptxas info : 0 bytes gmem
ptxas info : Compiling entry function '_Z15reduce_mask_rowiPKfiifPb' for 'sm_35'
ptxas info : Function properties for _Z15reduce_mask_rowiPKfiifPb
0 bytes stack frame, 0 bytes spill stores, 0 bytes spill loads
ptxas info : Used 12 registers, 360 bytes cmem[0]
ptxas info : Compiling entry function '_Z17reduce_bounding_yiPKbPii' for 'sm_35'
ptxas info : Function properties for _Z17reduce_bounding_yiPKbPii
0 bytes stack frame, 0 bytes spill stores, 0 bytes spill loads
ptxas info : Used 15 registers, 348 bytes cmem[0]
ptxas info : Compiling entry function '_Z14mask_aggregateiPKfPfPKiS3_S0_iif' for 'sm_35'
ptxas info : Function properties for _Z14mask_aggregateiPKfPfPKiS3_S0_iif
0 bytes stack frame, 0 bytes spill stores, 0 bytes spill loads
ptxas info : Used 36 registers, 380 bytes cmem[0], 4 bytes cmem[2]
ptxas info : Compiling entry function '_Z17reduce_bounding_xiPKbPii' for 'sm_35'
ptxas info : Function properties for _Z17reduce_bounding_xiPKbPii
0 bytes stack frame, 0 bytes spill stores, 0 bytes spill loads
ptxas info : Used 15 registers, 348 bytes cmem[0]
ptxas info : Compiling entry function '_Z11mask_renderiPKfS0_iiiiPf' for 'sm_35'
ptxas info : Function properties for _Z11mask_renderiPKfS0_iiiiPf
0 bytes stack frame, 0 bytes spill stores, 0 bytes spill loads
ptxas info : Used 33 registers, 368 bytes cmem[0], 12 bytes cmem[2]
ptxas info : Compiling entry function '_Z11mask_resizeiPKfPKiS2_Pfiii' for 'sm_35'
ptxas info : Function properties for _Z11mask_resizeiPKfPKiS2_Pfiii
0 bytes stack frame, 0 bytes spill stores, 0 bytes spill loads
ptxas info : Used 32 registers, 372 bytes cmem[0], 4 bytes cmem[2]
ptxas info : Compiling entry function '_Z15reduce_mask_coliPKfiifPb' for 'sm_35'
ptxas info : Function properties for _Z15reduce_mask_coliPKfiifPb
0 bytes stack frame, 0 bytes spill stores, 0 bytes spill loads
ptxas info : Used 14 registers, 360 bytes cmem[0]
x86_64-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/local/lib/python2.7/dist-packages/numpy/core/include -I/usr/local/cuda-8.0/include -I/usr/include/python2.7 -c gpu_mv.cpp -o build/temp.linux-x86_64-2.7/gpu_mv.o -Wno-unused-function
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++ [enabled by default]
gpu_mv.cpp:1:2: error: #error Do not use this file, it is the result of a failed Cython compilation.
error Do not use this file, it is the result of a failed Cython compilation.
^
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
(mxnet)hubino@hubino:~/Videos/FCIS$ sh ./init.sh
running build_ext
skipping 'bbox.c' Cython extension (up-to-date)
running build_ext
running build_ext
skipping 'cpu_nms.c' Cython extension (up-to-date)
skipping 'gpu_nms.cpp' Cython extension (up-to-date)
running build_ext
cythoning gpu_mv.pyx to gpu_mv.cpp
gpu_mv.pyx:14:419: Syntax error in C variable declaration
building 'gpu_mv' extension
/usr/local/cuda-8.0/bin/nvcc -I/usr/local/lib/python2.7/dist-packages/numpy/core/include -I/usr/local/cuda-8.0/include -I/usr/include/python2.7 -c mv_kernel.cu -o build/temp.linux-x86_64-2.7/mv_kernel.o -arch=sm_35 --ptxas-options=-v -c --compiler-options '-fPIC'
ptxas info : 0 bytes gmem
ptxas info : Compiling entry function '_Z15reduce_mask_rowiPKfiifPb' for 'sm_35'
ptxas info : Function properties for _Z15reduce_mask_rowiPKfiifPb
0 bytes stack frame, 0 bytes spill stores, 0 bytes spill loads
ptxas info : Used 12 registers, 360 bytes cmem[0]
ptxas info : Compiling entry function '_Z17reduce_bounding_yiPKbPii' for 'sm_35'
ptxas info : Function properties for _Z17reduce_bounding_yiPKbPii
0 bytes stack frame, 0 bytes spill stores, 0 bytes spill loads
ptxas info : Used 15 registers, 348 bytes cmem[0]
ptxas info : Compiling entry function '_Z14mask_aggregateiPKfPfPKiS3_S0_iif' for 'sm_35'
ptxas info : Function properties for _Z14mask_aggregateiPKfPfPKiS3_S0_iif
0 bytes stack frame, 0 bytes spill stores, 0 bytes spill loads
ptxas info : Used 36 registers, 380 bytes cmem[0], 4 bytes cmem[2]
ptxas info : Compiling entry function '_Z17reduce_bounding_xiPKbPii' for 'sm_35'
ptxas info : Function properties for _Z17reduce_bounding_xiPKbPii
0 bytes stack frame, 0 bytes spill stores, 0 bytes spill loads
ptxas info : Used 15 registers, 348 bytes cmem[0]
ptxas info : Compiling entry function '_Z11mask_renderiPKfS0_iiiiPf' for 'sm_35'
ptxas info : Function properties for _Z11mask_renderiPKfS0_iiiiPf
0 bytes stack frame, 0 bytes spill stores, 0 bytes spill loads
ptxas info : Used 33 registers, 368 bytes cmem[0], 12 bytes cmem[2]
ptxas info : Compiling entry function '_Z11mask_resizeiPKfPKiS2_Pfiii' for 'sm_35'
ptxas info : Function properties for _Z11mask_resizeiPKfPKiS2_Pfiii
0 bytes stack frame, 0 bytes spill stores, 0 bytes spill loads
ptxas info : Used 32 registers, 372 bytes cmem[0], 4 bytes cmem[2]
ptxas info : Compiling entry function '_Z15reduce_mask_coliPKfiifPb' for 'sm_35'
ptxas info : Function properties for _Z15reduce_mask_coliPKfiifPb
0 bytes stack frame, 0 bytes spill stores, 0 bytes spill loads
ptxas info : Used 14 registers, 360 bytes cmem[0]
x86_64-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/local/lib/python2.7/dist-packages/numpy/core/include -I/usr/local/cuda-8.0/include -I/usr/include/python2.7 -c gpu_mv.cpp -o build/temp.linux-x86_64-2.7/gpu_mv.o -Wno-unused-function
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++ [enabled by default]
gpu_mv.cpp:1:2: error: #error Do not use this file, it is the result of a failed Cython compilation.
error Do not use this file, it is the result of a failed Cython compilation.
^
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
Hi, 1.i followed instruction to install mxnet and check the sample code. it was working fine. 2.i clone FCIS folder to my ubuntu system and run sh ./init.sh
~/Videos/FCIS$ sh ./init.sh
after running:
running build_ext skipping 'bbox.c' Cython extension (up-to-date) running build_ext running build_ext skipping 'cpu_nms.c' Cython extension (up-to-date) skipping 'gpu_nms.cpp' Cython extension (up-to-date) running build_ext cythoning gpu_mv.pyx to gpu_mv.cpp
Error compiling Cython file:
... cimport numpy as np
assert sizeof(int) == sizeof(np.int32_t)
cdef extern from "gpu_mv.hpp": void _mv(np.float32_t all_boxes, np.float32_t all_masks, np.int32_t all_boxes_num, np.int32_t candidate_inds, np.int32_t candidate_start, np.float32_t candidate_weights, np.int32_t candidate_num, np.float32_t binary_thresh, np.int32_t image_height, np.int32_t image_width, np.int32_t box_dim, np.int32_t mask_size, np.int32_t result_num, np.float32_t result_mask, np.int32_t* result_box, np.int32_t device_id); ^
gpu_mv.pyx:14:419: Syntax error in C variable declaration building 'gpu_mv' extension /usr/local/cuda-8.0/bin/nvcc -I/usr/local/lib/python2.7/dist-packages/numpy/core/include -I/usr/local/cuda-8.0/include -I/usr/include/python2.7 -c mv_kernel.cu -o build/temp.linux-x86_64-2.7/mv_kernel.o -arch=sm_35 --ptxas-options=-v -c --compiler-options '-fPIC' ptxas info : 0 bytes gmem ptxas info : Compiling entry function '_Z15reduce_mask_rowiPKfiifPb' for 'sm_35' ptxas info : Function properties for _Z15reduce_mask_rowiPKfiifPb 0 bytes stack frame, 0 bytes spill stores, 0 bytes spill loads ptxas info : Used 12 registers, 360 bytes cmem[0] ptxas info : Compiling entry function '_Z17reduce_bounding_yiPKbPii' for 'sm_35' ptxas info : Function properties for _Z17reduce_bounding_yiPKbPii 0 bytes stack frame, 0 bytes spill stores, 0 bytes spill loads ptxas info : Used 15 registers, 348 bytes cmem[0] ptxas info : Compiling entry function '_Z14mask_aggregateiPKfPfPKiS3_S0_iif' for 'sm_35' ptxas info : Function properties for _Z14mask_aggregateiPKfPfPKiS3_S0_iif 0 bytes stack frame, 0 bytes spill stores, 0 bytes spill loads ptxas info : Used 36 registers, 380 bytes cmem[0], 4 bytes cmem[2] ptxas info : Compiling entry function '_Z17reduce_bounding_xiPKbPii' for 'sm_35' ptxas info : Function properties for _Z17reduce_bounding_xiPKbPii 0 bytes stack frame, 0 bytes spill stores, 0 bytes spill loads ptxas info : Used 15 registers, 348 bytes cmem[0] ptxas info : Compiling entry function '_Z11mask_renderiPKfS0_iiiiPf' for 'sm_35' ptxas info : Function properties for _Z11mask_renderiPKfS0_iiiiPf 0 bytes stack frame, 0 bytes spill stores, 0 bytes spill loads ptxas info : Used 33 registers, 368 bytes cmem[0], 12 bytes cmem[2] ptxas info : Compiling entry function '_Z11mask_resizeiPKfPKiS2_Pfiii' for 'sm_35' ptxas info : Function properties for _Z11mask_resizeiPKfPKiS2_Pfiii 0 bytes stack frame, 0 bytes spill stores, 0 bytes spill loads ptxas info : Used 32 registers, 372 bytes cmem[0], 4 bytes cmem[2] ptxas info : Compiling entry function '_Z15reduce_mask_coliPKfiifPb' for 'sm_35' ptxas info : Function properties for _Z15reduce_mask_coliPKfiifPb 0 bytes stack frame, 0 bytes spill stores, 0 bytes spill loads ptxas info : Used 14 registers, 360 bytes cmem[0] x86_64-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/local/lib/python2.7/dist-packages/numpy/core/include -I/usr/local/cuda-8.0/include -I/usr/include/python2.7 -c gpu_mv.cpp -o build/temp.linux-x86_64-2.7/gpu_mv.o -Wno-unused-function cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++ [enabled by default] gpu_mv.cpp:1:2: error: #error Do not use this file, it is the result of a failed Cython compilation.
error Do not use this file, it is the result of a failed Cython compilation.
^ error: command 'x86_64-linux-gnu-gcc' failed with exit status 1 (mxnet)hubino@hubino:~/Videos/FCIS$ sh ./init.sh running build_ext skipping 'bbox.c' Cython extension (up-to-date) running build_ext running build_ext skipping 'cpu_nms.c' Cython extension (up-to-date) skipping 'gpu_nms.cpp' Cython extension (up-to-date) running build_ext cythoning gpu_mv.pyx to gpu_mv.cpp
Error compiling Cython file:
... cimport numpy as np
assert sizeof(int) == sizeof(np.int32_t)
cdef extern from "gpu_mv.hpp": void _mv(np.float32_t all_boxes, np.float32_t all_masks, np.int32_t all_boxes_num, np.int32_t candidate_inds, np.int32_t candidate_start, np.float32_t candidate_weights, np.int32_t candidate_num, np.float32_t binary_thresh, np.int32_t image_height, np.int32_t image_width, np.int32_t box_dim, np.int32_t mask_size, np.int32_t result_num, np.float32_t result_mask, np.int32_t* result_box, np.int32_t device_id); ^
gpu_mv.pyx:14:419: Syntax error in C variable declaration building 'gpu_mv' extension /usr/local/cuda-8.0/bin/nvcc -I/usr/local/lib/python2.7/dist-packages/numpy/core/include -I/usr/local/cuda-8.0/include -I/usr/include/python2.7 -c mv_kernel.cu -o build/temp.linux-x86_64-2.7/mv_kernel.o -arch=sm_35 --ptxas-options=-v -c --compiler-options '-fPIC' ptxas info : 0 bytes gmem ptxas info : Compiling entry function '_Z15reduce_mask_rowiPKfiifPb' for 'sm_35' ptxas info : Function properties for _Z15reduce_mask_rowiPKfiifPb 0 bytes stack frame, 0 bytes spill stores, 0 bytes spill loads ptxas info : Used 12 registers, 360 bytes cmem[0] ptxas info : Compiling entry function '_Z17reduce_bounding_yiPKbPii' for 'sm_35' ptxas info : Function properties for _Z17reduce_bounding_yiPKbPii 0 bytes stack frame, 0 bytes spill stores, 0 bytes spill loads ptxas info : Used 15 registers, 348 bytes cmem[0] ptxas info : Compiling entry function '_Z14mask_aggregateiPKfPfPKiS3_S0_iif' for 'sm_35' ptxas info : Function properties for _Z14mask_aggregateiPKfPfPKiS3_S0_iif 0 bytes stack frame, 0 bytes spill stores, 0 bytes spill loads ptxas info : Used 36 registers, 380 bytes cmem[0], 4 bytes cmem[2] ptxas info : Compiling entry function '_Z17reduce_bounding_xiPKbPii' for 'sm_35' ptxas info : Function properties for _Z17reduce_bounding_xiPKbPii 0 bytes stack frame, 0 bytes spill stores, 0 bytes spill loads ptxas info : Used 15 registers, 348 bytes cmem[0] ptxas info : Compiling entry function '_Z11mask_renderiPKfS0_iiiiPf' for 'sm_35' ptxas info : Function properties for _Z11mask_renderiPKfS0_iiiiPf 0 bytes stack frame, 0 bytes spill stores, 0 bytes spill loads ptxas info : Used 33 registers, 368 bytes cmem[0], 12 bytes cmem[2] ptxas info : Compiling entry function '_Z11mask_resizeiPKfPKiS2_Pfiii' for 'sm_35' ptxas info : Function properties for _Z11mask_resizeiPKfPKiS2_Pfiii 0 bytes stack frame, 0 bytes spill stores, 0 bytes spill loads ptxas info : Used 32 registers, 372 bytes cmem[0], 4 bytes cmem[2] ptxas info : Compiling entry function '_Z15reduce_mask_coliPKfiifPb' for 'sm_35' ptxas info : Function properties for _Z15reduce_mask_coliPKfiifPb 0 bytes stack frame, 0 bytes spill stores, 0 bytes spill loads ptxas info : Used 14 registers, 360 bytes cmem[0] x86_64-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/local/lib/python2.7/dist-packages/numpy/core/include -I/usr/local/cuda-8.0/include -I/usr/include/python2.7 -c gpu_mv.cpp -o build/temp.linux-x86_64-2.7/gpu_mv.o -Wno-unused-function cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++ [enabled by default] gpu_mv.cpp:1:2: error: #error Do not use this file, it is the result of a failed Cython compilation.
error Do not use this file, it is the result of a failed Cython compilation.
^ error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
how can i resolve the issue.