pytorch-parallel icon indicating copy to clipboard operation
pytorch-parallel copied to clipboard

LINK : fatal error LNK1181: 无法打开输入文件 Error

Open Arsmart1 opened this issue 3 years ago • 1 comments
trafficstars

I meet this when compile the python setup.py install in cuda file.... Any help will be highly appreciated!!!

(new_env) C:\Users\20247\Downloads\pytorch-parallel-master\pytorch-parallel-master\cuda>python setup.py install running install running bdist_egg running egg_info writing sigmoid_cuda_linear_cpp.egg-info\PKG-INFO writing dependency_links to sigmoid_cuda_linear_cpp.egg-info\dependency_links.txt writing top-level names to sigmoid_cuda_linear_cpp.egg-info\top_level.txt reading manifest file 'sigmoid_cuda_linear_cpp.egg-info\SOURCES.txt' writing manifest file 'sigmoid_cuda_linear_cpp.egg-info\SOURCES.txt' installing library code to build\bdist.win-amd64\egg running install_lib running build_ext building 'sigmoid_cuda' extension Emitting ninja build file C:\Users\20247\Downloads\pytorch-parallel-master\pytorch-parallel-master\cuda\build\temp.win-amd64-3.7\Release\build.ninja... Compiling objects... Allowing ninja to set a default number of workers... (overridable by setting the environment variable MAX_JOBS=N) 1.10.0 creating C:\Users\20247\Downloads\pytorch-parallel-master\pytorch-parallel-master\cuda\build\lib.win-amd64-3.7 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:\Users\20247.conda\envs\new_env\lib\site-packages\torch\lib "/LIBPATH:C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.0\lib/x64" /LIBPATH:C:\Users\20247.conda\envs\new_env\libs /LIBPATH:C:\Users\20247.conda\envs\new_env\PCbuild\amd64 "/LIBPATH:C:\Program Files (x86)\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" c10.lib torch.lib torch_cpu.lib torch_python.lib cudart.lib c10_cuda.lib torch_cuda.lib /EXPORT:PyInit_sigmoid_cuda C:\Users\20247\Downloads\pytorch-parallel-master\pytorch-parallel-master\cuda\build\temp.win-amd64-3.7\Release\sigmoid_cuda.obj C:\Users\20247\Downloads\pytorch-parallel-master\pytorch-parallel-master\cuda\build\temp.win-amd64-3.7\Release\sigmoid_cuda_kernel.obj /OUT:build\lib.win-amd64-3.7\sigmoid_cuda.cp37-win_amd64.pyd /IMPLIB:C:\Users\20247\Downloads\pytorch-parallel-master\pytorch-parallel-master\cuda\build\temp.win-amd64-3.7\Release\sigmoid_cuda.cp37-win_amd64.lib LINK : fatal error LNK1181: 无法打开输入文件“C:\Users\20247\Downloads\pytorch-parallel-master\pytorch-parallel-master\cuda\build\temp.win-amd64-3.7\Release\sigmoid_cuda_kernel.obj” error: 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 1181

Arsmart1 avatar Feb 09 '22 12:02 Arsmart1

Hello, I get the same problem with yours, have you solve this problem? Thanks!!!

Jingling1 avatar May 12 '22 04:05 Jingling1