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

install error: #16

Open
gggah opened this issue May 21, 2024 · 3 comments
Open

install error: #16

gggah opened this issue May 21, 2024 · 3 comments

Comments

@gggah
Copy link

gggah commented May 21, 2024

您好,感谢您优秀的工作!我在利用指令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

@xiawj-hub
Copy link
Owner

xiawj-hub commented May 21, 2024 via email

@gggah
Copy link
Author

gggah commented May 26, 2024

您好,我在删除了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

@xiawj-hub
Copy link
Owner

xiawj-hub commented May 26, 2024 via email

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