Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Arsmart1 opened this issue Feb 9, 2022 · 1 comment
Open

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

Arsmart1 opened this issue Feb 9, 2022 · 1 comment

Comments

@Arsmart1
Copy link

Arsmart1 commented Feb 9, 2022

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

@Jingling1
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants