-
Notifications
You must be signed in to change notification settings - Fork 7
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
install error: #16
Comments
试下把library_dirs和extra_link_args删掉看看
From: gggah ***@***.***>
Sent: Tuesday, May 21, 2024 12:12 AM
To: xiawj-hub/CTLIB ***@***.***>
Cc: Subscribed ***@***.***>
Subject: [xiawj-hub/CTLIB] install error: (Issue #16)
您好,感谢您优秀的工作!我在利用指令python setup.py install的时候出现以下报错:
"E:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30133\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\v10.2\lib\x64" /LIBPATH:D:\ProgramData\anaconda3\envs\DDPM\lib\site-packages\torch\lib "/LIBPATH:C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.2\lib/x64" /LIBPATH:D:\ProgramData\anaconda3\envs\DDPM\libs /LIBPATH:D:\ProgramData\anaconda3\envs\DDPM /LIBPATH:D:\ProgramData\anaconda3\envs\DDPM\PCbuild\amd64 "/LIBPATH:E:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30133\ATLMFC\lib\x64" "/LIBPATH:E:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30133\lib\x64" "/LIBPATH:C:\Program Files (x86)\Windows Kits\10\lib\10.0.19041.0\ucrt\x64" "/LIBPATH:C:\Program Files (x86)\Windows Kits\10\lib\10.0.19041.0\um\x64" "/LIBPATH:E:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30133\lib\x64" "/LIBPATH:C:\Program Files (x86)\Windows Kits\10\Lib\10.0.19041.0\ucrt" "/LIBPATH:C:\Program Files (x86)\Windows Kits\10\Lib\10.0.19041.0\ucrt_enclave" "/LIBPATH:C:\Program Files (x86)\Windows Kits\10\Lib\10.0.19041.0\um" c10.lib torch.lib torch_cpu.lib torch_python.lib cudart.lib c10_cuda.lib torch_cuda.lib /EXPORT:PyInit_ctlib build\temp.win-amd64-cpython-38\Release\src/ctlib.obj build\temp.win-amd64-cpython-38\Release\src/fan_ea_kernel.obj build\temp.win-amd64-cpython-38\Release\src/fan_ed_kernel.obj build\temp.win-amd64-cpython-38\Release\src/laplacian_cuda_kernel.obj build\temp.win-amd64-cpython-38\Release\src/para_kernel.obj /OUT:build\lib.win-amd64-cpython-38\ctlib.cp38-win_amd64.pyd /IMPLIB:build\temp.win-amd64-cpython-38\Release\src\ctlib.cp38-win_amd64.lib c10_cuda.lib cudnn.lib cublas.lib
LINK : fatal error LNK1181: 无法打开输入文件“cudnn.lib”
error: command 'E:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30133\bin\HostX86\x64\link.exe' failed with exit code 1181v
—
Reply to this email directly, view it on GitHub <#16> , or unsubscribe <https://github.com/notifications/unsubscribe-auth/AJRVWQNRM3EX4K6XPCOAFALZDLCSPAVCNFSM6AAAAABIAZ7VA6VHI2DSMVQWIX3LMV43ASLTON2WKOZSGMYDOMRUGE3TGNI> .
You are receiving this because you are subscribed to this thread. <https://github.com/notifications/beacon/AJRVWQKJYS6KWWTI4TVWQMLZDLCSPA5CNFSM6AAAAABIAZ7VA6WGG33NNVSW45C7OR4XAZNFJFZXG5LFVJRW63LNMVXHIX3JMTHITBNXA4.gif> Message ID: ***@***.*** ***@***.***> >
|
您好,我在删除了ibrary_dirs和extra_link_args之后又出现了新的错误: 正在创建库 C:\Users\Administrator\Desktop\CTLIB-main\build\temp.win-amd64-cpython-37\Release\src\ctlib.cp37-win_amd64.lib 和对象 C:\Users\Administrator\Desktop\CTLIB-main\build\temp.win-amd64-cpython-37\Release\src\ctlib.cp37-win_amd64.exp |
那可能是需要加上这两句的
From: gggah ***@***.***>
Sent: Sunday, May 26, 2024 5:23 AM
To: xiawj-hub/CTLIB ***@***.***>
Cc: xiawj-hub ***@***.***>; Comment ***@***.***>
Subject: Re: [xiawj-hub/CTLIB] install error: (Issue #16)
您好,我在删除了ibrary_dirs和extra_link_args之后又出现了新的错误: 正在创建库 C:\Users\Administrator\Desktop\CTLIB-main\build\temp.win-amd64-cpython-37\Release\src\ctlib.cp37-win_amd64.lib 和对象 C:\Users\Administrator\Desktop\CTLIB-main\build\temp.win-amd64-cpython-37\Release\src\ctlib.cp37-win_amd64.exp
laplacian_cuda_kernel.obj : error LNK2001: 无法解析的外部符号 cublasCreate_v2
laplacian_cuda_kernel.obj : error LNK2001: 无法解析的外部符号 cublasDestroy_v2
laplacian_cuda_kernel.obj : error LNK2001: 无法解析的外部符号 cublasSgemm_v2
laplacian_cuda_kernel.obj : error LNK2001: 无法解析的外部符号 cublasDgemm_v2
build\lib.win-amd64-cpython-37\ctlib.cp37-win_amd64.pyd : fatal error LNK1120: 4 个无法解析的外部命令
error: command 'C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30133\bin\HostX86\x64\link.exe' failed with exit code 1120
—
Reply to this email directly, view it on GitHub <#16 (comment)> , or unsubscribe <https://github.com/notifications/unsubscribe-auth/AJRVWQN2OSZ62HXVGRQMMLTZEGSWTAVCNFSM6AAAAABIAZ7VA6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMZSGE2DSOJWGE> .
You are receiving this because you commented. <https://github.com/notifications/beacon/AJRVWQKUML3X7SOYGTM2ONTZEGSWTA5CNFSM6AAAAABIAZ7VA6WGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTT7CYDMS.gif> Message ID: ***@***.*** ***@***.***> >
|
您好,感谢您优秀的工作!我在利用指令python setup.py install的时候出现以下报错:
"E:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30133\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\v10.2\lib\x64" /LIBPATH:D:\ProgramData\anaconda3\envs\DDPM\lib\site-packages\torch\lib "/LIBPATH:C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.2\lib/x64" /LIBPATH:D:\ProgramData\anaconda3\envs\DDPM\libs /LIBPATH:D:\ProgramData\anaconda3\envs\DDPM /LIBPATH:D:\ProgramData\anaconda3\envs\DDPM\PCbuild\amd64 "/LIBPATH:E:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30133\ATLMFC\lib\x64" "/LIBPATH:E:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30133\lib\x64" "/LIBPATH:C:\Program Files (x86)\Windows Kits\10\lib\10.0.19041.0\ucrt\x64" "/LIBPATH:C:\Program Files (x86)\Windows Kits\10\lib\10.0.19041.0\um\x64" "/LIBPATH:E:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30133\lib\x64" "/LIBPATH:C:\Program Files (x86)\Windows Kits\10\Lib\10.0.19041.0\ucrt" "/LIBPATH:C:\Program Files (x86)\Windows Kits\10\Lib\10.0.19041.0\ucrt_enclave" "/LIBPATH:C:\Program Files (x86)\Windows Kits\10\Lib\10.0.19041.0\um" c10.lib torch.lib torch_cpu.lib torch_python.lib cudart.lib c10_cuda.lib torch_cuda.lib /EXPORT:PyInit_ctlib build\temp.win-amd64-cpython-38\Release\src/ctlib.obj build\temp.win-amd64-cpython-38\Release\src/fan_ea_kernel.obj build\temp.win-amd64-cpython-38\Release\src/fan_ed_kernel.obj build\temp.win-amd64-cpython-38\Release\src/laplacian_cuda_kernel.obj build\temp.win-amd64-cpython-38\Release\src/para_kernel.obj /OUT:build\lib.win-amd64-cpython-38\ctlib.cp38-win_amd64.pyd /IMPLIB:build\temp.win-amd64-cpython-38\Release\src\ctlib.cp38-win_amd64.lib c10_cuda.lib cudnn.lib cublas.lib
LINK : fatal error LNK1181: 无法打开输入文件“cudnn.lib”
error: command 'E:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30133\bin\HostX86\x64\link.exe' failed with exit code 1181v
The text was updated successfully, but these errors were encountered: