win10 torch1.4 cuda10.1 在编译poly_nms提示错误,编译不成功,
编译使用:E:\Rotate_Net\Redet\ReDet-master\mmdet\ops\poly_nms>python setup.py develop
错误信息如下
C:/ProgramData/Miniconda3/lib/site-packages/torch/include\THC/THCAllocator.h(14): warning: field of class type without a DLL interface used in a class with a DLL interface
src/poly_nms_kernel.cu(107): error: expected a declaration
src/poly_nms_kernel.cu(108): error: expected a declaration
src/poly_nms_kernel.cu(109): error: identifier "n1" is undefined
src/poly_nms_kernel.cu(110): error: identifier "n2" is undefined
src/poly_nms_kernel.cu(112): error: expected a declaration
src/poly_nms_kernel.cu(117): warning: parsing restarts here after previous syntax error
src/poly_nms_kernel.cu(118): error: expected a declaration
src/poly_nms_kernel.cu(166): warning: parsing restarts here after previous syntax error
src/poly_nms_kernel.cu(167): error: expression must have a constant value
src/poly_nms_kernel.cu(167): note: attempt to access run-time storage
src/poly_nms_kernel.cu(168): error: identifier "dev_polys" is undefined
src/poly_nms_kernel.cu(168): error: identifier "col_start" is undefined
src/poly_nms_kernel.cu(169): error: expression must have a constant value
src/poly_nms_kernel.cu(169): note: attempt to access run-time storage
src/poly_nms_kernel.cu(169): error: variable "block_polys" has already been defined
src/poly_nms_kernel.cu(171): error: expression must have a constant value
src/poly_nms_kernel.cu(171): note: attempt to access run-time storage
src/poly_nms_kernel.cu(171): error: variable "block_polys" has already been defined
src/poly_nms_kernel.cu(173): error: expected a declaration
src/poly_nms_kernel.cu(176): error: expected a declaration
src/poly_nms_kernel.cu(218): warning: parsing restarts here after previous syntax error
src/poly_nms_kernel.cu(219): error: this declaration has no storage class or type specifier
src/poly_nms_kernel.cu(219): error: expected a ";"
src/poly_nms_kernel.cu(222): warning: parsing restarts here after previous syntax error
src/poly_nms_kernel.cu(224): error: identifier "boxes_num" is undefined
src/poly_nms_kernel.cu(224): error: identifier "col_blocks" is undefined
src/poly_nms_kernel.cu(225): error: this declaration has no storage class or type specifier
src/poly_nms_kernel.cu(225): error: declaration is incompatible with "void __THCudaCheck(cudaError_t, const char *, int)"
C:/ProgramData/Miniconda3/lib/site-packages/torch/include\THC/THCGeneral.h(70): here
src/poly_nms_kernel.cu(225): error: identifier "mask_dev" is undefined
src/poly_nms_kernel.cu(225): error: expected a ")"
src/poly_nms_kernel.cu(231): error: this declaration has no storage class or type specifier
src/poly_nms_kernel.cu(231): error: declaration is incompatible with "void memset(void , int, size_t)"
C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/VC/Tools/MSVC/14.16.27023/include\vcruntime_string.h(60): here
src/poly_nms_kernel.cu(231): error: a value of type "size_t *" cannot be used to initialize an entity of type "int"
src/poly_nms_kernel.cu(231): error: expected a ")"
src/poly_nms_kernel.cu(233): error: identifier "boxes" is undefined
src/poly_nms_kernel.cu(237): error: expected a declaration
src/poly_nms_kernel.cu(250): warning: parsing restarts here after previous syntax error
src/poly_nms_kernel.cu(252): error: expected a declaration
src/poly_nms_kernel.cu(255): warning: parsing restarts here after previous syntax error
src/poly_nms_kernel.cu(256): error: expected a declaration
C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/VC/Tools/MSVC/14.16.27023/include\xmemory(313): error: expression preceding parentheses of apparent call must have (pointer-to-) function type
detected during:
instantiation of "_FwdIt std::_Zero_range(_FwdIt, _FwdIt) [with _FwdIt=int64_t ]"
(336): here
instantiation of "_FwdIt std::_Uninitialized_value_construct_n1(_FwdIt, _Diff, _Alloc &, std::true_type) [with _FwdIt=int64_t , _Diff=size_t, _Alloc=std::_Rebind_alloc_t<std::allocator, int64_t>]"
(346): here
instantiation of "_FwdIt std::_Uninitialized_value_construct_n(_FwdIt, _Diff, _Alloc &) [with _FwdIt=int64_t *, _Diff=size_t, _Alloc=std::_Rebind_alloc_t<std::allocator, int64_t>]"
C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/VC/Tools/MSVC/14.16.27023/include\vector(1812): here
instantiation of "std::vector<_Ty, _Alloc>::pointer std::vector<_Ty, _Alloc>::_Udefault(std::vector<_Ty, _Alloc>::pointer, std::vector<_Ty, _Alloc>::size_type) [with _Ty=int64_t, _Alloc=std::allocator]"
C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/VC/Tools/MSVC/14.16.27023/include\vector(665): here
instantiation of "std::vector<_Ty, _Alloc>::vector(std::vector<_Ty, _Alloc>::size_type, const _Alloc &) [with _Ty=int64_t, _Alloc=std::allocator]"
C:/ProgramData/Miniconda3/lib/site-packages/torch/include\c10/core/MemoryFormat.h(55): here
32 errors detected in the compilation of "C:/Users/ADMINI~1/AppData/Local/Temp/tmpxft_00004cc0_00000000-10_poly_nms_kernel.cpp1.ii".
error: command 'C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.1\bin\nvcc.exe' failed with exit status 1
请问又遇到的同仁吗?
win10 torch1.4 cuda10.1 在编译poly_nms提示错误,编译不成功, 编译使用:E:\Rotate_Net\Redet\ReDet-master\mmdet\ops\poly_nms>python setup.py develop 错误信息如下 C:/ProgramData/Miniconda3/lib/site-packages/torch/include\THC/THCAllocator.h(14): warning: field of class type without a DLL interface used in a class with a DLL interface
src/poly_nms_kernel.cu(107): error: expected a declaration
src/poly_nms_kernel.cu(108): error: expected a declaration
src/poly_nms_kernel.cu(109): error: identifier "n1" is undefined
src/poly_nms_kernel.cu(110): error: identifier "n2" is undefined
src/poly_nms_kernel.cu(112): error: expected a declaration
src/poly_nms_kernel.cu(117): warning: parsing restarts here after previous syntax error
src/poly_nms_kernel.cu(118): error: expected a declaration
src/poly_nms_kernel.cu(166): warning: parsing restarts here after previous syntax error
src/poly_nms_kernel.cu(167): error: expression must have a constant value src/poly_nms_kernel.cu(167): note: attempt to access run-time storage
src/poly_nms_kernel.cu(168): error: identifier "dev_polys" is undefined
src/poly_nms_kernel.cu(168): error: identifier "col_start" is undefined
src/poly_nms_kernel.cu(169): error: expression must have a constant value src/poly_nms_kernel.cu(169): note: attempt to access run-time storage
src/poly_nms_kernel.cu(169): error: variable "block_polys" has already been defined
src/poly_nms_kernel.cu(171): error: expression must have a constant value src/poly_nms_kernel.cu(171): note: attempt to access run-time storage
src/poly_nms_kernel.cu(171): error: variable "block_polys" has already been defined
src/poly_nms_kernel.cu(173): error: expected a declaration
src/poly_nms_kernel.cu(176): error: expected a declaration
src/poly_nms_kernel.cu(218): warning: parsing restarts here after previous syntax error
src/poly_nms_kernel.cu(219): error: this declaration has no storage class or type specifier
src/poly_nms_kernel.cu(219): error: expected a ";"
src/poly_nms_kernel.cu(222): warning: parsing restarts here after previous syntax error
src/poly_nms_kernel.cu(224): error: identifier "boxes_num" is undefined
src/poly_nms_kernel.cu(224): error: identifier "col_blocks" is undefined
src/poly_nms_kernel.cu(225): error: this declaration has no storage class or type specifier
src/poly_nms_kernel.cu(225): error: declaration is incompatible with "void __THCudaCheck(cudaError_t, const char *, int)" C:/ProgramData/Miniconda3/lib/site-packages/torch/include\THC/THCGeneral.h(70): here
src/poly_nms_kernel.cu(225): error: identifier "mask_dev" is undefined
src/poly_nms_kernel.cu(225): error: expected a ")"
src/poly_nms_kernel.cu(231): error: this declaration has no storage class or type specifier
src/poly_nms_kernel.cu(231): error: declaration is incompatible with "void memset(void , int, size_t)" C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/VC/Tools/MSVC/14.16.27023/include\vcruntime_string.h(60): here
src/poly_nms_kernel.cu(231): error: a value of type "size_t *" cannot be used to initialize an entity of type "int"
src/poly_nms_kernel.cu(231): error: expected a ")"
src/poly_nms_kernel.cu(233): error: identifier "boxes" is undefined
src/poly_nms_kernel.cu(237): error: expected a declaration
src/poly_nms_kernel.cu(250): warning: parsing restarts here after previous syntax error
src/poly_nms_kernel.cu(252): error: expected a declaration
src/poly_nms_kernel.cu(255): warning: parsing restarts here after previous syntax error
src/poly_nms_kernel.cu(256): error: expected a declaration
C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/VC/Tools/MSVC/14.16.27023/include\xmemory(313): error: expression preceding parentheses of apparent call must have (pointer-to-) function type detected during: instantiation of "_FwdIt std::_Zero_range(_FwdIt, _FwdIt) [with _FwdIt=int64_t ]" (336): here instantiation of "_FwdIt std::_Uninitialized_value_construct_n1(_FwdIt, _Diff, _Alloc &, std::true_type) [with _FwdIt=int64_t , _Diff=size_t, _Alloc=std::_Rebind_alloc_t<std::allocator, int64_t>]"
(346): here
instantiation of "_FwdIt std::_Uninitialized_value_construct_n(_FwdIt, _Diff, _Alloc &) [with _FwdIt=int64_t *, _Diff=size_t, _Alloc=std::_Rebind_alloc_t<std::allocator, int64_t>]"
C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/VC/Tools/MSVC/14.16.27023/include\vector(1812): here
instantiation of "std::vector<_Ty, _Alloc>::pointer std::vector<_Ty, _Alloc>::_Udefault(std::vector<_Ty, _Alloc>::pointer, std::vector<_Ty, _Alloc>::size_type) [with _Ty=int64_t, _Alloc=std::allocator]"
C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/VC/Tools/MSVC/14.16.27023/include\vector(665): here
instantiation of "std::vector<_Ty, _Alloc>::vector(std::vector<_Ty, _Alloc>::size_type, const _Alloc &) [with _Ty=int64_t, _Alloc=std::allocator]"
C:/ProgramData/Miniconda3/lib/site-packages/torch/include\c10/core/MemoryFormat.h(55): here
32 errors detected in the compilation of "C:/Users/ADMINI~1/AppData/Local/Temp/tmpxft_00004cc0_00000000-10_poly_nms_kernel.cpp1.ii". error: command 'C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.1\bin\nvcc.exe' failed with exit status 1 请问又遇到的同仁吗?