Giter VIP home page Giter VIP logo

Comments (4)

kevinhkhsu avatar kevinhkhsu commented on July 23, 2024

Can you try running sh lib/make.sh to re-build layer utils?

from da_detection.

kevinchow1993 avatar kevinchow1993 commented on July 23, 2024

Compiling crop_and_resize kernels by nvcc failed,did you solve this problem?

from da_detection.

lockonlxf avatar lockonlxf commented on July 23, 2024

from da_detection.

life97 avatar life97 commented on July 23, 2024

Yes, I did. I change the compiling environment. 2020-07-23 17:14:39>kevinchow 写道: Compiling crop_and_resize kernels by nvcc failed,did you solve this problem? — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

Please tell me, under what environment did you complete the compilation? I can't compile now, I am running the program under Windows server2016. The error is as follows, looking forward to your reply, thank you very much.

Compiling roi_pooling kernels by nvcc...
roi_pooling_kernel.cu
cl: 命令行 warning D9002 :忽略未知选项“-fPIC”
roi_pooling_kernel.cu
c:\program files\nvidia gpu computing toolkit\cuda\v9.0\include\crt/host_config.h(133): fatal error C1189: #error: -- unsupported Microsoft Visual Studio version! Only the versions 2012
, 2013, 2015 and 2017 are supported!
Including CUDA code.
H:\19xyy\project\DA_detection-master\lib\layer_utils\roi_pooling
generating C:\Users\ADMINI1\AppData\Local\Temp\2\tmpgk6wbb9i_roi_pooling.c
setting the current directory to 'C:\Users\ADMINI
1\AppData\Local\Temp\2\tmpgk6wbb9i'
running build_ext
building '_roi_pooling' extension
creating Release
creating Release\19xyy
creating Release\19xyy\project
creating Release\19xyy\project\DA_detection-master
creating Release\19xyy\project\DA_detection-master\lib
creating Release\19xyy\project\DA_detection-master\lib\layer_utils
creating Release\19xyy\project\DA_detection-master\lib\layer_utils\roi_pooling
creating Release\19xyy\project\DA_detection-master\lib\layer_utils\roi_pooling\src
C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -DWITH_CUDA -IG:\Anaconda3\envs\xyy_pro
gressive_da\lib\site-packages\torch\utils\ffi....\lib\include -IG:\Anaconda3\envs\xyy_progressive_da\lib\site-packages\torch\utils\ffi....\lib\include\TH -IG:\Anaconda3\envs\xyy_prog
ressive_da\lib\site-packages\torch\utils\ffi....\lib\include\THC "-IC:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v9.0/include" "-IC:\Program Files\NVIDIA Corporation\NvToolsExt/
include" -IG:\Anaconda3\envs\xyy_progressive_da\include -IG:\Anaconda3\envs\xyy_progressive_da\include "-IC:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.1
6.27023\ATLMFC\include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\include" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.6.1\include
um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\shared" "-IC:\Program Files (x86)\Windows Kits\10
include\10.0.17763.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\cppwinrt" /Tc_roi_pooling.c
/Fo.\Release_roi_pooling.obj -std=c99
cl: 命令行 warning D9002 :忽略未知选项“-std=c99”
roi_pooling.c
C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -DWITH_CUDA -IG:\Anaconda3\envs\xyy_pro
gressive_da\lib\site-packages\torch\utils\ffi....\lib\include -IG:\Anaconda3\envs\xyy_progressive_da\lib\site-packages\torch\utils\ffi....\lib\include\TH -IG:\Anaconda3\envs\xyy_prog
ressive_da\lib\site-packages\torch\utils\ffi....\lib\include\THC "-IC:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v9.0/include" "-IC:\Program Files\NVIDIA Corporation\NvToolsExt/
include" -IG:\Anaconda3\envs\xyy_progressive_da\include -IG:\Anaconda3\envs\xyy_progressive_da\include "-IC:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.1
6.27023\ATLMFC\include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\include" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.6.1\include
um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\shared" "-IC:\Program Files (x86)\Windows Kits\10
include\10.0.17763.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\cppwinrt" /TcH:\19xyy\projec
t\DA_detection-master\lib\layer_utils\roi_pooling\src\roi_pooling.c /Fo.\Release\19xyy\project\DA_detection-master\lib\layer_utils\roi_pooling\src\roi_pooling.obj -std=c99
cl: 命令行 warning D9002 :忽略未知选项“-std=c99”
roi_pooling.c
H:\19xyy\project\DA_detection-master\lib\layer_utils\roi_pooling\src\roi_pooling.c(46): warning C4244: “函数”: 从“int”转换到“float”,可能丢失数据
H:\19xyy\project\DA_detection-master\lib\layer_utils\roi_pooling\src\roi_pooling.c(47): warning C4244: “函数”: 从“int”转换到“float”,可能丢失数据
H:\19xyy\project\DA_detection-master\lib\layer_utils\roi_pooling\src\roi_pooling.c(64): warning C4244: “函数”: 从“int”转换到“float”,可能丢失数据
H:\19xyy\project\DA_detection-master\lib\layer_utils\roi_pooling\src\roi_pooling.c(64): warning C4244: “=”: 从“float”转换到“int”,可能丢失数据
H:\19xyy\project\DA_detection-master\lib\layer_utils\roi_pooling\src\roi_pooling.c(65): warning C4244: “函数”: 从“int”转换到“float”,可能丢失数据
H:\19xyy\project\DA_detection-master\lib\layer_utils\roi_pooling\src\roi_pooling.c(65): warning C4244: “=”: 从“float”转换到“int”,可能丢失数据
H:\19xyy\project\DA_detection-master\lib\layer_utils\roi_pooling\src\roi_pooling.c(66): warning C4244: “函数”: 从“int”转换到“float”,可能丢失数据
H:\19xyy\project\DA_detection-master\lib\layer_utils\roi_pooling\src\roi_pooling.c(66): warning C4244: “=”: 从“float”转换到“int”,可能丢失数据
H:\19xyy\project\DA_detection-master\lib\layer_utils\roi_pooling\src\roi_pooling.c(67): warning C4244: “函数”: 从“int”转换到“float”,可能丢失数据
H:\19xyy\project\DA_detection-master\lib\layer_utils\roi_pooling\src\roi_pooling.c(67): warning C4244: “=”: 从“float”转换到“int”,可能丢失数据
H:\19xyy\project\DA_detection-master\lib\layer_utils\roi_pooling\src\roi_pooling.c(14): warning C4244: “初始化”: 从“int64_t”转换到“int”,可能丢失数据
H:\19xyy\project\DA_detection-master\lib\layer_utils\roi_pooling\src\roi_pooling.c(15): warning C4244: “初始化”: 从“int64_t”转换到“int”,可能丢失数据
H:\19xyy\project\DA_detection-master\lib\layer_utils\roi_pooling\src\roi_pooling.c(17): warning C4244: “初始化”: 从“int64_t”转换到“int”,可能丢失数据
H:\19xyy\project\DA_detection-master\lib\layer_utils\roi_pooling\src\roi_pooling.c(23): warning C4244: “初始化”: 从“int64_t”转换到“int”,可能丢失数据
H:\19xyy\project\DA_detection-master\lib\layer_utils\roi_pooling\src\roi_pooling.c(25): warning C4244: “初始化”: 从“int64_t”转换到“int”,可能丢失数据
H:\19xyy\project\DA_detection-master\lib\layer_utils\roi_pooling\src\roi_pooling.c(27): warning C4244: “初始化”: 从“int64_t”转换到“int”,可能丢失数据
H:\19xyy\project\DA_detection-master\lib\layer_utils\roi_pooling\src\roi_pooling.c(38): warning C4244: “初始化”: 从“float”转换到“int”,可能丢失数据
H:\19xyy\project\DA_detection-master\lib\layer_utils\roi_pooling\src\roi_pooling.c(39): warning C4244: “初始化”: 从“double”转换到“int”,可能丢失数据
H:\19xyy\project\DA_detection-master\lib\layer_utils\roi_pooling\src\roi_pooling.c(40): warning C4244: “初始化”: 从“double”转换到“int”,可能丢失数据
H:\19xyy\project\DA_detection-master\lib\layer_utils\roi_pooling\src\roi_pooling.c(41): warning C4244: “初始化”: 从“double”转换到“int”,可能丢失数据
H:\19xyy\project\DA_detection-master\lib\layer_utils\roi_pooling\src\roi_pooling.c(42): warning C4244: “初始化”: 从“double”转换到“int”,可能丢失数据
H:\19xyy\project\DA_detection-master\lib\layer_utils\roi_pooling\src\roi_pooling.c(46): warning C4244: “初始化”: 从“float”转换到“int”,可能丢失数据
H:\19xyy\project\DA_detection-master\lib\layer_utils\roi_pooling\src\roi_pooling.c(47): warning C4244: “初始化”: 从“float”转换到“int”,可能丢失数据
H:\19xyy\project\DA_detection-master\lib\layer_utils\roi_pooling\src\roi_pooling.c(59): warning C4244: “初始化”: 从“double”转换到“int”,可能丢失数据
H:\19xyy\project\DA_detection-master\lib\layer_utils\roi_pooling\src\roi_pooling.c(60): warning C4244: “初始化”: 从“double”转换到“int”,可能丢失数据
H:\19xyy\project\DA_detection-master\lib\layer_utils\roi_pooling\src\roi_pooling.c(61): warning C4244: “初始化”: 从“double”转换到“int”,可能丢失数据
H:\19xyy\project\DA_detection-master\lib\layer_utils\roi_pooling\src\roi_pooling.c(62): warning C4244: “初始化”: 从“double”转换到“int”,可能丢失数据
C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -DWITH_CUDA -IG:\Anaconda3\envs\xyy_pro
gressive_da\lib\site-packages\torch\utils\ffi....\lib\include -IG:\Anaconda3\envs\xyy_progressive_da\lib\site-packages\torch\utils\ffi....\lib\include\TH -IG:\Anaconda3\envs\xyy_prog
ressive_da\lib\site-packages\torch\utils\ffi....\lib\include\THC "-IC:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v9.0/include" "-IC:\Program Files\NVIDIA Corporation\NvToolsExt/
include" -IG:\Anaconda3\envs\xyy_progressive_da\include -IG:\Anaconda3\envs\xyy_progressive_da\include "-IC:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.1
6.27023\ATLMFC\include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\include" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.6.1\include
um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\shared" "-IC:\Program Files (x86)\Windows Kits\10
include\10.0.17763.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\cppwinrt" /TcH:\19xyy\projec
t\DA_detection-master\lib\layer_utils\roi_pooling\src\roi_pooling_cuda.c /Fo.\Release\19xyy\project\DA_detection-master\lib\layer_utils\roi_pooling\src\roi_pooling_cuda.obj -std=c99
cl: 命令行 warning D9002 :忽略未知选项“-std=c99”
roi_pooling_cuda.c
H:\19xyy\project\DA_detection-master\lib\layer_utils\roi_pooling\src\roi_pooling_cuda.c(18): warning C4244: “初始化”: 从“int64_t”转换到“int”,可能丢失数据
H:\19xyy\project\DA_detection-master\lib\layer_utils\roi_pooling\src\roi_pooling_cuda.c(19): warning C4244: “初始化”: 从“int64_t”转换到“int”,可能丢失数据
H:\19xyy\project\DA_detection-master\lib\layer_utils\roi_pooling\src\roi_pooling_cuda.c(26): warning C4244: “初始化”: 从“int64_t”转换到“int”,可能丢失数据
H:\19xyy\project\DA_detection-master\lib\layer_utils\roi_pooling\src\roi_pooling_cuda.c(32): warning C4244: “初始化”: 从“int64_t”转换到“int”,可能丢失数据
H:\19xyy\project\DA_detection-master\lib\layer_utils\roi_pooling\src\roi_pooling_cuda.c(34): warning C4244: “初始化”: 从“int64_t”转换到“int”,可能丢失数据
H:\19xyy\project\DA_detection-master\lib\layer_utils\roi_pooling\src\roi_pooling_cuda.c(36): warning C4244: “初始化”: 从“int64_t”转换到“int”,可能丢失数据
H:\19xyy\project\DA_detection-master\lib\layer_utils\roi_pooling\src\roi_pooling_cuda.c(60): warning C4244: “初始化”: 从“int64_t”转换到“int”,可能丢失数据
H:\19xyy\project\DA_detection-master\lib\layer_utils\roi_pooling\src\roi_pooling_cuda.c(61): warning C4244: “初始化”: 从“int64_t”转换到“int”,可能丢失数据
H:\19xyy\project\DA_detection-master\lib\layer_utils\roi_pooling\src\roi_pooling_cuda.c(68): warning C4244: “初始化”: 从“int64_t”转换到“int”,可能丢失数据
H:\19xyy\project\DA_detection-master\lib\layer_utils\roi_pooling\src\roi_pooling_cuda.c(74): warning C4244: “初始化”: 从“int64_t”转换到“int”,可能丢失数据
H:\19xyy\project\DA_detection-master\lib\layer_utils\roi_pooling\src\roi_pooling_cuda.c(76): warning C4244: “初始化”: 从“int64_t”转换到“int”,可能丢失数据
H:\19xyy\project\DA_detection-master\lib\layer_utils\roi_pooling\src\roi_pooling_cuda.c(78): warning C4244: “初始化”: 从“int64_t”转换到“int”,可能丢失数据
C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\bin\HostX86\x64\link.exe /nologo /INCREMENTAL:NO /LTCG /DLL /MANIFEST:EMBED,ID=2 /MANIFESTUAC:NO "
/LIBPATH:C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v9.0/lib/x64" "/LIBPATH:C:\Program Files\NVIDIA Corporation\NvToolsExt/lib/x64" /LIBPATH:G:\Anaconda3\envs\xyy_progressive_da
\lib\site-packages\torch\utils\ffi....\lib /LIBPATH:G:\Anaconda3\envs\xyy_progressive_da\libs /LIBPATH:G:\Anaconda3\envs\xyy_progressive_da\PCbuild\amd64 "/LIBPATH:C:\Program Files (x8
6)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\ATLMFC\lib\x64" "/LIBPATH:C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\lib
x64" "/LIBPATH:C:\Program Files (x86)\Windows Kits\NETFXSDK\4.6.1\lib\um\x64" "/LIBPATH:C:\Program Files (x86)\Windows Kits\10\lib\10.0.17763.0\ucrt\x64" "/LIBPATH:C:\Program Files (x86)
\Windows Kits\10\lib\10.0.17763.0\um\x64" /EXPORT:PyInit__roi_pooling .\Release_roi_pooling.obj .\Release\19xyy\project\DA_detection-master\lib\layer_utils\roi_pooling\src\roi_pooling.o
bj .\Release\19xyy\project\DA_detection-master\lib\layer_utils\roi_pooling\src\roi_pooling_cuda.obj H:\19xyy\project\DA_detection-master\lib\layer_utils\roi_pooling\src/cuda/roi_pooling

kernel.cu.o /OUT:._roi_pooling.pyd /IMPLIB:.\Release_roi_pooling.lib
正在创建库 .\Release_roi_pooling.lib 和对象 .\Release_roi_pooling.exp
LINK : warning LNK4098: 默认库“LIBCMT”与其他库的使用冲突;请使用 /NODEFAULTLIB:library
roi_pooling.obj : error LNK2001: 无法解析的外部符号 __imp_THFloatTensor_data
roi_pooling.obj : error LNK2001: 无法解析的外部符号 __imp_THFloatStorage_fill
roi_pooling.obj : error LNK2001: 无法解析的外部符号 __imp_THFloatTensor_storage
roi_pooling.obj : error LNK2001: 无法解析的外部符号 __imp_THFloatTensor_size
roi_pooling_cuda.obj : error LNK2001: 无法解析的外部符号 __imp_THCState_getCurrentStream
roi_pooling_cuda.obj : error LNK2001: 无法解析的外部符号 __imp_THCudaTensor_data
roi_pooling_cuda.obj : error LNK2001: 无法解析的外部符号 state
roi_pooling_cuda.obj : error LNK2001: 无法解析的外部符号 __imp_THCudaIntTensor_data
roi_pooling_cuda.obj : error LNK2001: 无法解析的外部符号 __imp_THCudaTensor_size
roi_pooling_kernel.cu.o : error LNK2001: 无法解析的外部符号 cudaGetLastError
roi_pooling_kernel.cu.o : error LNK2001: 无法解析的外部符号 cudaGetErrorString
roi_pooling_kernel.cu.o : error LNK2001: 无法解析的外部符号 cudaLaunchKernel
roi_pooling_kernel.cu.o : error LNK2001: 无法解析的外部符号 __cudaPushCallConfiguration
roi_pooling_kernel.cu.o : error LNK2001: 无法解析的外部符号 __cudaPopCallConfiguration
roi_pooling_kernel.cu.o : error LNK2001: 无法解析的外部符号 __cudaRegisterFatBinary
roi_pooling_kernel.cu.o : error LNK2001: 无法解析的外部符号 __cudaRegisterFatBinaryEnd
roi_pooling_kernel.cu.o : error LNK2001: 无法解析的外部符号 __cudaUnregisterFatBinary
roi_pooling_kernel.cu.o : error LNK2001: 无法解析的外部符号 __cudaRegisterFunction
._roi_pooling.pyd : fatal error LNK1120: 18 个无法解析的外部命令
Traceback (most recent call last):
File "G:\Anaconda3\envs\xyy_progressive_da\lib\distutils_msvccompiler.py", line 492, in link
self.spawn([self.linker] + ld_args)
File "G:\Anaconda3\envs\xyy_progressive_da\lib\distutils_msvccompiler.py", line 502, in spawn
return super().spawn(cmd)
File "G:\Anaconda3\envs\xyy_progressive_da\lib\distutils\ccompiler.py", line 910, in spawn
spawn(cmd, dry_run=self.dry_run)
File "G:\Anaconda3\envs\xyy_progressive_da\lib\distutils\spawn.py", line 38, in spawn
_spawn_nt(cmd, search_path, dry_run=dry_run)
File "G:\Anaconda3\envs\xyy_progressive_da\lib\distutils\spawn.py", line 81, in _spawn_nt
"command %r failed with exit status %d" % (cmd, rc))
distutils.errors.DistutilsExecError: command 'C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\bin\HostX86\x64\link.exe' failed with ex
it status 1120

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "G:\Anaconda3\envs\xyy_progressive_da\lib\site-packages\cffi\ffiplatform.py", line 51, in _build
dist.run_command('build_ext')
File "G:\Anaconda3\envs\xyy_progressive_da\lib\distutils\dist.py", line 985, in run_command
cmd_obj.run()
File "G:\Anaconda3\envs\xyy_progressive_da\lib\site-packages\setuptools\command\build_ext.py", line 79, in run
_build_ext.run(self)
File "G:\Anaconda3\envs\xyy_progressive_da\lib\distutils\command\build_ext.py", line 340, in run
self.build_extensions()
File "G:\Anaconda3\envs\xyy_progressive_da\lib\distutils\command\build_ext.py", line 449, in build_extensions
self._build_extensions_serial()
File "G:\Anaconda3\envs\xyy_progressive_da\lib\distutils\command\build_ext.py", line 474, in _build_extensions_serial
self.build_extension(ext)
File "G:\Anaconda3\envs\xyy_progressive_da\lib\site-packages\setuptools\command\build_ext.py", line 202, in build_extension
_build_ext.build_extension(self, ext)
File "G:\Anaconda3\envs\xyy_progressive_da\lib\distutils\command\build_ext.py", line 559, in build_extension
target_lang=language)
File "G:\Anaconda3\envs\xyy_progressive_da\lib\distutils\ccompiler.py", line 717, in link_shared_object
extra_preargs, extra_postargs, build_temp, target_lang)
File "G:\Anaconda3\envs\xyy_progressive_da\lib\distutils_msvccompiler.py", line 494, in link
raise LinkError(msg)
distutils.errors.LinkError: command 'C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\bin\HostX86\x64\link.exe' failed with exit status
1120

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "build.py", line 34, in
ffi.build()
File "G:\Anaconda3\envs\xyy_progressive_da\lib\site-packages\torch\utils\ffi_init_.py", line 189, in build
build_extension(ffi, cffi_wrapper_name, target_dir, verbose)
File "G:\Anaconda3\envs\xyy_progressive_da\lib\site-packages\torch\utils\ffi_init
.py", line 111, in _build_extension
outfile = ffi.compile(tmpdir=tmpdir, verbose=verbose, target=libname)
File "G:\Anaconda3\envs\xyy_progressive_da\lib\site-packages\cffi\api.py", line 727, in compile
compiler_verbose=verbose, debug=debug, **kwds)
File "G:\Anaconda3\envs\xyy_progressive_da\lib\site-packages\cffi\recompiler.py", line 1565, in recompile
compiler_verbose, debug)
File "G:\Anaconda3\envs\xyy_progressive_da\lib\site-packages\cffi\ffiplatform.py", line 22, in compile
outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
File "G:\Anaconda3\envs\xyy_progressive_da\lib\site-packages\cffi\ffiplatform.py", line 58, in _build
raise VerificationError('%s: %s' % (e.class.name, e))
cffi.VerificationError: LinkError: command 'C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\bin\HostX86\x64\link.exe' failed with exit
status 1120
Compiling crop_and_resize kernels by nvcc...
crop_and_resize_kernel.cu
cl: 命令行 warning D9002 :忽略未知选项“-fPIC”
crop_and_resize_kernel.cu
c:\program files\nvidia gpu computing toolkit\cuda\v9.0\include\crt/host_config.h(133): fatal error C1189: #error: -- unsupported Microsoft Visual Studio version! Only the versions 2012
, 2013, 2015 and 2017 are supported!
Including CUDA code.
H:\19xyy\project\DA_detection-master\lib\layer_utils\roi_align
generating C:\Users\ADMINI1\AppData\Local\Temp\2\tmpudpowv7y_crop_and_resize.c
setting the current directory to 'C:\Users\ADMINI
1\AppData\Local\Temp\2\tmpudpowv7y'
running build_ext
building '_crop_and_resize' extension
creating Release
creating Release\19xyy
creating Release\19xyy\project
creating Release\19xyy\project\DA_detection-master
creating Release\19xyy\project\DA_detection-master\lib
creating Release\19xyy\project\DA_detection-master\lib\layer_utils
creating Release\19xyy\project\DA_detection-master\lib\layer_utils\roi_align
creating Release\19xyy\project\DA_detection-master\lib\layer_utils\roi_align\src
C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -DWITH_CUDA -IG:\Anaconda3\envs\xyy_pro
gressive_da\lib\site-packages\torch\utils\ffi....\lib\include -IG:\Anaconda3\envs\xyy_progressive_da\lib\site-packages\torch\utils\ffi....\lib\include\TH -IG:\Anaconda3\envs\xyy_prog
ressive_da\lib\site-packages\torch\utils\ffi....\lib\include\THC "-IC:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v9.0/include" "-IC:\Program Files\NVIDIA Corporation\NvToolsExt/
include" -IG:\Anaconda3\envs\xyy_progressive_da\include -IG:\Anaconda3\envs\xyy_progressive_da\include "-IC:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.1
6.27023\ATLMFC\include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\include" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.6.1\include
um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\shared" "-IC:\Program Files (x86)\Windows Kits\10
include\10.0.17763.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\cppwinrt" /Tc_crop_and_resiz
e.c /Fo.\Release_crop_and_resize.obj -std=c99 -std=c99
cl: 命令行 warning D9002 :忽略未知选项“-std=c99”
cl: 命令行 warning D9002 :忽略未知选项“-std=c99”
_crop_and_resize.c
C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -DWITH_CUDA -IG:\Anaconda3\envs\xyy_pro
gressive_da\lib\site-packages\torch\utils\ffi....\lib\include -IG:\Anaconda3\envs\xyy_progressive_da\lib\site-packages\torch\utils\ffi....\lib\include\TH -IG:\Anaconda3\envs\xyy_prog
ressive_da\lib\site-packages\torch\utils\ffi....\lib\include\THC "-IC:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v9.0/include" "-IC:\Program Files\NVIDIA Corporation\NvToolsExt/
include" -IG:\Anaconda3\envs\xyy_progressive_da\include -IG:\Anaconda3\envs\xyy_progressive_da\include "-IC:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.1
6.27023\ATLMFC\include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\include" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.6.1\include
um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\shared" "-IC:\Program Files (x86)\Windows Kits\10
include\10.0.17763.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\cppwinrt" /TcH:\19xyy\projec
t\DA_detection-master\lib\layer_utils\roi_align\src\crop_and_resize.c /Fo.\Release\19xyy\project\DA_detection-master\lib\layer_utils\roi_align\src\crop_and_resize.obj -std=c99 -std=c99
cl: 命令行 warning D9002 :忽略未知选项“-std=c99”
cl: 命令行 warning D9002 :忽略未知选项“-std=c99”
crop_and_resize.c
H:\19xyy\project\DA_detection-master\lib\layer_utils\roi_align\src\crop_and_resize.c(54): warning C4244: “初始化”: 从“double”转换到“const float”,可能丢失数据
H:\19xyy\project\DA_detection-master\lib\layer_utils\roi_align\src\crop_and_resize.c(71): warning C4244: “初始化”: 从“float”转换到“const int”,可能丢失数据
H:\19xyy\project\DA_detection-master\lib\layer_utils\roi_align\src\crop_and_resize.c(72): warning C4244: “初始化”: 从“float”转换到“const int”,可能丢失数据
H:\19xyy\project\DA_detection-master\lib\layer_utils\roi_align\src\crop_and_resize.c(77): warning C4244: “初始化”: 从“double”转换到“const float”,可能丢失数据
H:\19xyy\project\DA_detection-master\lib\layer_utils\roi_align\src\crop_and_resize.c(89): warning C4244: “初始化”: 从“float”转换到“const int”,可能丢失数据
H:\19xyy\project\DA_detection-master\lib\layer_utils\roi_align\src\crop_and_resize.c(90): warning C4244: “初始化”: 从“float”转换到“const int”,可能丢失数据
H:\19xyy\project\DA_detection-master\lib\layer_utils\roi_align\src\crop_and_resize.c(124): error C2037: “size”的左侧部分指定未定义的结构/联合“THTensor”
H:\19xyy\project\DA_detection-master\lib\layer_utils\roi_align\src\crop_and_resize.c(125): error C2037: “size”的左侧部分指定未定义的结构/联合“THTensor”
H:\19xyy\project\DA_detection-master\lib\layer_utils\roi_align\src\crop_and_resize.c(126): error C2037: “size”的左侧部分指定未定义的结构/联合“THTensor”
H:\19xyy\project\DA_detection-master\lib\layer_utils\roi_align\src\crop_and_resize.c(127): error C2037: “size”的左侧部分指定未定义的结构/联合“THTensor”
H:\19xyy\project\DA_detection-master\lib\layer_utils\roi_align\src\crop_and_resize.c(129): error C2037: “size”的左侧部分指定未定义的结构/联合“THTensor”
H:\19xyy\project\DA_detection-master\lib\layer_utils\roi_align\src\crop_and_resize.c(165): error C2037: “size”的左侧部分指定未定义的结构/联合“THTensor”
H:\19xyy\project\DA_detection-master\lib\layer_utils\roi_align\src\crop_and_resize.c(166): error C2037: “size”的左侧部分指定未定义的结构/联合“THTensor”
H:\19xyy\project\DA_detection-master\lib\layer_utils\roi_align\src\crop_and_resize.c(167): error C2037: “size”的左侧部分指定未定义的结构/联合“THTensor”
H:\19xyy\project\DA_detection-master\lib\layer_utils\roi_align\src\crop_and_resize.c(168): error C2037: “size”的左侧部分指定未定义的结构/联合“THTensor”
H:\19xyy\project\DA_detection-master\lib\layer_utils\roi_align\src\crop_and_resize.c(170): error C2037: “size”的左侧部分指定未定义的结构/联合“THTensor”
H:\19xyy\project\DA_detection-master\lib\layer_utils\roi_align\src\crop_and_resize.c(171): error C2037: “size”的左侧部分指定未定义的结构/联合“THTensor”
H:\19xyy\project\DA_detection-master\lib\layer_utils\roi_align\src\crop_and_resize.c(172): error C2037: “size”的左侧部分指定未定义的结构/联合“THTensor”
H:\19xyy\project\DA_detection-master\lib\layer_utils\roi_align\src\crop_and_resize.c(212): warning C4244: “初始化”: 从“double”转换到“const float”,可能丢失数据
H:\19xyy\project\DA_detection-master\lib\layer_utils\roi_align\src\crop_and_resize.c(219): warning C4244: “初始化”: 从“float”转换到“const int”,可能丢失数据
H:\19xyy\project\DA_detection-master\lib\layer_utils\roi_align\src\crop_and_resize.c(220): warning C4244: “初始化”: 从“float”转换到“const int”,可能丢失数据
H:\19xyy\project\DA_detection-master\lib\layer_utils\roi_align\src\crop_and_resize.c(225): warning C4244: “初始化”: 从“double”转换到“const float”,可能丢失数据
H:\19xyy\project\DA_detection-master\lib\layer_utils\roi_align\src\crop_and_resize.c(232): warning C4244: “初始化”: 从“float”转换到“const int”,可能丢失数据
H:\19xyy\project\DA_detection-master\lib\layer_utils\roi_align\src\crop_and_resize.c(233): warning C4244: “初始化”: 从“float”转换到“const int”,可能丢失数据
Traceback (most recent call last):
File "G:\Anaconda3\envs\xyy_progressive_da\lib\distutils_msvccompiler.py", line 396, in compile
self.spawn(args)
File "G:\Anaconda3\envs\xyy_progressive_da\lib\distutils_msvccompiler.py", line 502, in spawn
return super().spawn(cmd)
File "G:\Anaconda3\envs\xyy_progressive_da\lib\distutils\ccompiler.py", line 910, in spawn
spawn(cmd, dry_run=self.dry_run)
File "G:\Anaconda3\envs\xyy_progressive_da\lib\distutils\spawn.py", line 38, in spawn
_spawn_nt(cmd, search_path, dry_run=dry_run)
File "G:\Anaconda3\envs\xyy_progressive_da\lib\distutils\spawn.py", line 81, in _spawn_nt
"command %r failed with exit status %d" % (cmd, rc))
distutils.errors.DistutilsExecError: command 'C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\bin\HostX86\x64\cl.exe' failed with exit
status 2

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "G:\Anaconda3\envs\xyy_progressive_da\lib\site-packages\cffi\ffiplatform.py", line 51, in _build
dist.run_command('build_ext')
File "G:\Anaconda3\envs\xyy_progressive_da\lib\distutils\dist.py", line 985, in run_command
cmd_obj.run()
File "G:\Anaconda3\envs\xyy_progressive_da\lib\site-packages\setuptools\command\build_ext.py", line 79, in run
_build_ext.run(self)
File "G:\Anaconda3\envs\xyy_progressive_da\lib\distutils\command\build_ext.py", line 340, in run
self.build_extensions()
File "G:\Anaconda3\envs\xyy_progressive_da\lib\distutils\command\build_ext.py", line 449, in build_extensions
self._build_extensions_serial()
File "G:\Anaconda3\envs\xyy_progressive_da\lib\distutils\command\build_ext.py", line 474, in _build_extensions_serial
self.build_extension(ext)
File "G:\Anaconda3\envs\xyy_progressive_da\lib\site-packages\setuptools\command\build_ext.py", line 202, in build_extension
_build_ext.build_extension(self, ext)
File "G:\Anaconda3\envs\xyy_progressive_da\lib\distutils\command\build_ext.py", line 534, in build_extension
depends=ext.depends)
File "G:\Anaconda3\envs\xyy_progressive_da\lib\distutils_msvccompiler.py", line 398, in compile
raise CompileError(msg)
distutils.errors.CompileError: command 'C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\bin\HostX86\x64\cl.exe' failed with exit statu
s 2

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "build.py", line 40, in
ffi.build()
File "G:\Anaconda3\envs\xyy_progressive_da\lib\site-packages\torch\utils\ffi_init_.py", line 189, in build
build_extension(ffi, cffi_wrapper_name, target_dir, verbose)
File "G:\Anaconda3\envs\xyy_progressive_da\lib\site-packages\torch\utils\ffi_init
.py", line 111, in _build_extension
outfile = ffi.compile(tmpdir=tmpdir, verbose=verbose, target=libname)
File "G:\Anaconda3\envs\xyy_progressive_da\lib\site-packages\cffi\api.py", line 727, in compile
compiler_verbose=verbose, debug=debug, **kwds)
File "G:\Anaconda3\envs\xyy_progressive_da\lib\site-packages\cffi\recompiler.py", line 1565, in recompile
compiler_verbose, debug)
File "G:\Anaconda3\envs\xyy_progressive_da\lib\site-packages\cffi\ffiplatform.py", line 22, in compile
outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
File "G:\Anaconda3\envs\xyy_progressive_da\lib\site-packages\cffi\ffiplatform.py", line 58, in _build
raise VerificationError('%s: %s' % (e.class.name, e))
cffi.VerificationError: CompileError: command 'C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\bin\HostX86\x64\cl.exe' failed with exi
t status 2
Compiling nms kernels by nvcc...
nms_kernel.cu
cl: 命令行 warning D9002 :忽略未知选项“-fPIC”
nms_kernel.cu
c:\program files\nvidia gpu computing toolkit\cuda\v9.0\include\crt/host_config.h(133): fatal error C1189: #error: -- unsupported Microsoft Visual Studio version! Only the versions 2012
, 2013, 2015 and 2017 are supported!
Including CUDA code.
H:\19xyy\project\DA_detection-master\lib\nms
generating C:\Users\ADMINI1\AppData\Local\Temp\2\tmpnbsorbtu_nms.c
setting the current directory to 'C:\Users\ADMINI
1\AppData\Local\Temp\2\tmpnbsorbtu'
running build_ext
building '_nms' extension
creating Release
creating Release\19xyy
creating Release\19xyy\project
creating Release\19xyy\project\DA_detection-master
creating Release\19xyy\project\DA_detection-master\lib
creating Release\19xyy\project\DA_detection-master\lib\nms
creating Release\19xyy\project\DA_detection-master\lib\nms\src
C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -DWITH_CUDA -IG:\Anaconda3\envs\xyy_pro
gressive_da\lib\site-packages\torch\utils\ffi....\lib\include -IG:\Anaconda3\envs\xyy_progressive_da\lib\site-packages\torch\utils\ffi....\lib\include\TH -IG:\Anaconda3\envs\xyy_prog
ressive_da\lib\site-packages\torch\utils\ffi....\lib\include\THC "-IC:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v9.0/include" "-IC:\Program Files\NVIDIA Corporation\NvToolsExt/
include" -IG:\Anaconda3\envs\xyy_progressive_da\include -IG:\Anaconda3\envs\xyy_progressive_da\include "-IC:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.1
6.27023\ATLMFC\include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\include" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.6.1\include
um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\shared" "-IC:\Program Files (x86)\Windows Kits\10
include\10.0.17763.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\cppwinrt" /Tc_nms.c /Fo.\Rel
ease_nms.obj -std=c99
cl: 命令行 warning D9002 :忽略未知选项“-std=c99”
_nms.c
C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -DWITH_CUDA -IG:\Anaconda3\envs\xyy_pro
gressive_da\lib\site-packages\torch\utils\ffi....\lib\include -IG:\Anaconda3\envs\xyy_progressive_da\lib\site-packages\torch\utils\ffi....\lib\include\TH -IG:\Anaconda3\envs\xyy_prog
ressive_da\lib\site-packages\torch\utils\ffi....\lib\include\THC "-IC:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v9.0/include" "-IC:\Program Files\NVIDIA Corporation\NvToolsExt/
include" -IG:\Anaconda3\envs\xyy_progressive_da\include -IG:\Anaconda3\envs\xyy_progressive_da\include "-IC:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.1
6.27023\ATLMFC\include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\include" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.6.1\include
um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\shared" "-IC:\Program Files (x86)\Windows Kits\10
include\10.0.17763.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\cppwinrt" /TcH:\19xyy\projec
t\DA_detection-master\lib\nms\src\nms.c /Fo.\Release\19xyy\project\DA_detection-master\lib\nms\src\nms.obj -std=c99
cl: 命令行 warning D9002 :忽略未知选项“-std=c99”
nms.c
H:\19xyy\project\DA_detection-master\lib\nms\src\nms.c(11): warning C4244: “初始化”: 从“int64_t”转换到“long”,可能丢失数据
H:\19xyy\project\DA_detection-master\lib\nms\src\nms.c(12): warning C4244: “初始化”: 从“int64_t”转换到“long”,可能丢失数据
H:\19xyy\project\DA_detection-master\lib\nms\src\nms.c(14): warning C4133: “初始化”: 从“int64_t *”到“long *”的类型不兼容
H:\19xyy\project\DA_detection-master\lib\nms\src\nms.c(16): warning C4133: “初始化”: 从“int64_t *”到“long *”的类型不兼容
H:\19xyy\project\DA_detection-master\lib\nms\src\nms.c(65): warning C4133: “初始化”: 从“int64_t *”到“long *”的类型不兼容
C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -DWITH_CUDA -IG:\Anaconda3\envs\xyy_pro
gressive_da\lib\site-packages\torch\utils\ffi....\lib\include -IG:\Anaconda3\envs\xyy_progressive_da\lib\site-packages\torch\utils\ffi....\lib\include\TH -IG:\Anaconda3\envs\xyy_prog
ressive_da\lib\site-packages\torch\utils\ffi....\lib\include\THC "-IC:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v9.0/include" "-IC:\Program Files\NVIDIA Corporation\NvToolsExt/
include" -IG:\Anaconda3\envs\xyy_progressive_da\include -IG:\Anaconda3\envs\xyy_progressive_da\include "-IC:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.1
6.27023\ATLMFC\include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\include" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.6.1\include
um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\shared" "-IC:\Program Files (x86)\Windows Kits\10
include\10.0.17763.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\cppwinrt" /TcH:\19xyy\projec
t\DA_detection-master\lib\nms\src\nms_cuda.c /Fo.\Release\19xyy\project\DA_detection-master\lib\nms\src\nms_cuda.obj -std=c99
cl: 命令行 warning D9002 :忽略未知选项“-std=c99”
nms_cuda.c
H:\19xyy\project\DA_detection-master\lib\nms\src\nms_cuda.c(22): warning C4244: “初始化”: 从“int64_t”转换到“int”,可能丢失数据
H:\19xyy\project\DA_detection-master\lib\nms\src\nms_cuda.c(23): warning C4244: “初始化”: 从“int64_t”转换到“int”,可能丢失数据
H:\19xyy\project\DA_detection-master\lib\nms\src\nms_cuda.c(43): warning C4133: “初始化”: 从“int64_t *”到“long *”的类型不兼容
H:\19xyy\project\DA_detection-master\lib\nms\src\nms_cuda.c(60): warning C4133: “初始化”: 从“int64_t *”到“long *”的类型不兼容
C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\bin\HostX86\x64\link.exe /nologo /INCREMENTAL:NO /LTCG /DLL /MANIFEST:EMBED,ID=2 /MANIFESTUAC:NO "
/LIBPATH:C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v9.0/lib/x64" "/LIBPATH:C:\Program Files\NVIDIA Corporation\NvToolsExt/lib/x64" /LIBPATH:G:\Anaconda3\envs\xyy_progressive_da
\lib\site-packages\torch\utils\ffi....\lib /LIBPATH:G:\Anaconda3\envs\xyy_progressive_da\libs /LIBPATH:G:\Anaconda3\envs\xyy_progressive_da\PCbuild\amd64 "/LIBPATH:C:\Program Files (x8
6)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\ATLMFC\lib\x64" "/LIBPATH:C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\lib
x64" "/LIBPATH:C:\Program Files (x86)\Windows Kits\NETFXSDK\4.6.1\lib\um\x64" "/LIBPATH:C:\Program Files (x86)\Windows Kits\10\lib\10.0.17763.0\ucrt\x64" "/LIBPATH:C:\Program Files (x86)
\Windows Kits\10\lib\10.0.17763.0\um\x64" /EXPORT:PyInit__nms .\Release_nms.obj .\Release\19xyy\project\DA_detection-master\lib\nms\src\nms.obj .\Release\19xyy\project\DA_detection-mast
er\lib\nms\src\nms_cuda.obj H:\19xyy\project\DA_detection-master\lib\nms\src/cuda/nms_kernel.cu.o /OUT:._nms.pyd /IMPLIB:.\Release_nms.lib
正在创建库 .\Release_nms.lib 和对象 .\Release_nms.exp
LINK : warning LNK4098: 默认库“LIBCMT”与其他库的使用冲突;请使用 /NODEFAULTLIB:library
nms.obj : error LNK2001: 无法解析的外部符号 __imp_THFloatTensor_data
nms.obj : error LNK2001: 无法解析的外部符号 __imp_THByteTensor_fill
nms.obj : error LNK2001: 无法解析的外部符号 __imp_THByteTensor_data
nms.obj : error LNK2001: 无法解析的外部符号 __imp_THByteTensor_free
nms.obj : error LNK2001: 无法解析的外部符号 __imp__THArgCheck
nms.obj : error LNK2001: 无法解析的外部符号 __imp_THByteTensor_newWithSize1d
nms.obj : error LNK2001: 无法解析的外部符号 __imp_THLongTensor_isContiguous
nms.obj : error LNK2001: 无法解析的外部符号 __imp_THLongTensor_data
nms.obj : error LNK2001: 无法解析的外部符号 __imp_THFloatTensor_size
nms_cuda.obj : error LNK2001: 无法解析的外部符号 __imp_THLongTensor_free
nms_cuda.obj : error LNK2001: 无法解析的外部符号 __imp_THLongTensor_newWithSize2d
nms_cuda.obj : error LNK2001: 无法解析的外部符号 __imp_THCudaLongTensor_newWithSize2d
nms_cuda.obj : error LNK2001: 无法解析的外部符号 __imp_THLongTensor_copyCuda
nms_cuda.obj : error LNK2001: 无法解析的外部符号 __imp_THLongTensor_newWithSize1d
nms_cuda.obj : error LNK2001: 无法解析的外部符号 __imp_THLongTensor_fill
nms_cuda.obj : error LNK2001: 无法解析的外部符号 __imp_THCudaTensor_data
nms_cuda.obj : error LNK2001: 无法解析的外部符号 state
nms_cuda.obj : error LNK2001: 无法解析的外部符号 __imp_THCudaTensor_isContiguous
nms_cuda.obj : error LNK2001: 无法解析的外部符号 __imp_THCudaLongTensor_data
nms_cuda.obj : error LNK2001: 无法解析的外部符号 __imp_THCudaTensor_size
nms_cuda.obj : error LNK2001: 无法解析的外部符号 __imp_THCudaLongTensor_free
nms_kernel.cu.o : error LNK2001: 无法解析的外部符号 cudaLaunchKernel
nms_kernel.cu.o : error LNK2001: 无法解析的外部符号 __cudaPushCallConfiguration
nms_kernel.cu.o : error LNK2001: 无法解析的外部符号 __cudaPopCallConfiguration
nms_kernel.cu.o : error LNK2001: 无法解析的外部符号 __cudaRegisterFatBinary
nms_kernel.cu.o : error LNK2001: 无法解析的外部符号 __cudaRegisterFatBinaryEnd
nms_kernel.cu.o : error LNK2001: 无法解析的外部符号 __cudaUnregisterFatBinary
nms_kernel.cu.o : error LNK2001: 无法解析的外部符号 __cudaRegisterFunction
._nms.pyd : fatal error LNK1120: 28 个无法解析的外部命令
Traceback (most recent call last):
File "G:\Anaconda3\envs\xyy_progressive_da\lib\distutils_msvccompiler.py", line 492, in link
self.spawn([self.linker] + ld_args)
File "G:\Anaconda3\envs\xyy_progressive_da\lib\distutils_msvccompiler.py", line 502, in spawn
return super().spawn(cmd)
File "G:\Anaconda3\envs\xyy_progressive_da\lib\distutils\ccompiler.py", line 910, in spawn
spawn(cmd, dry_run=self.dry_run)
File "G:\Anaconda3\envs\xyy_progressive_da\lib\distutils\spawn.py", line 38, in spawn
_spawn_nt(cmd, search_path, dry_run=dry_run)
File "G:\Anaconda3\envs\xyy_progressive_da\lib\distutils\spawn.py", line 81, in _spawn_nt
"command %r failed with exit status %d" % (cmd, rc))
distutils.errors.DistutilsExecError: command 'C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\bin\HostX86\x64\link.exe' failed with ex
it status 1120

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "G:\Anaconda3\envs\xyy_progressive_da\lib\site-packages\cffi\ffiplatform.py", line 51, in _build
dist.run_command('build_ext')
File "G:\Anaconda3\envs\xyy_progressive_da\lib\distutils\dist.py", line 985, in run_command
cmd_obj.run()
File "G:\Anaconda3\envs\xyy_progressive_da\lib\site-packages\setuptools\command\build_ext.py", line 79, in run
_build_ext.run(self)
File "G:\Anaconda3\envs\xyy_progressive_da\lib\distutils\command\build_ext.py", line 340, in run
self.build_extensions()
File "G:\Anaconda3\envs\xyy_progressive_da\lib\distutils\command\build_ext.py", line 449, in build_extensions
self._build_extensions_serial()
File "G:\Anaconda3\envs\xyy_progressive_da\lib\distutils\command\build_ext.py", line 474, in _build_extensions_serial
self.build_extension(ext)
File "G:\Anaconda3\envs\xyy_progressive_da\lib\site-packages\setuptools\command\build_ext.py", line 202, in build_extension
_build_ext.build_extension(self, ext)
File "G:\Anaconda3\envs\xyy_progressive_da\lib\distutils\command\build_ext.py", line 559, in build_extension
target_lang=language)
File "G:\Anaconda3\envs\xyy_progressive_da\lib\distutils\ccompiler.py", line 717, in link_shared_object
extra_preargs, extra_postargs, build_temp, target_lang)
File "G:\Anaconda3\envs\xyy_progressive_da\lib\distutils_msvccompiler.py", line 494, in link
raise LinkError(msg)
distutils.errors.LinkError: command 'C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\bin\HostX86\x64\link.exe' failed with exit status
1120

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "build.py", line 34, in
ffi.build()
File "G:\Anaconda3\envs\xyy_progressive_da\lib\site-packages\torch\utils\ffi_init_.py", line 189, in build
build_extension(ffi, cffi_wrapper_name, target_dir, verbose)
File "G:\Anaconda3\envs\xyy_progressive_da\lib\site-packages\torch\utils\ffi_init
.py", line 111, in _build_extension
outfile = ffi.compile(tmpdir=tmpdir, verbose=verbose, target=libname)
File "G:\Anaconda3\envs\xyy_progressive_da\lib\site-packages\cffi\api.py", line 727, in compile
compiler_verbose=verbose, debug=debug, **kwds)
File "G:\Anaconda3\envs\xyy_progressive_da\lib\site-packages\cffi\recompiler.py", line 1565, in recompile
compiler_verbose, debug)
File "G:\Anaconda3\envs\xyy_progressive_da\lib\site-packages\cffi\ffiplatform.py", line 22, in compile
outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
File "G:\Anaconda3\envs\xyy_progressive_da\lib\site-packages\cffi\ffiplatform.py", line 58, in _build
raise VerificationError('%s: %s' % (e.class.name, e))
cffi.VerificationError: LinkError: command 'C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\bin\HostX86\x64\link.exe' failed with exit
status 1120

from da_detection.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.