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

Failed to install pytorch_extension : link.exe problem? #481

Open
JumpingRobin opened this issue Dec 27, 2024 · 0 comments
Open

Failed to install pytorch_extension : link.exe problem? #481

JumpingRobin opened this issue Dec 27, 2024 · 0 comments

Comments

@JumpingRobin
Copy link

windows 11
python 3.10.16
cuda 11.6
torch 1.12.1
g++/gcc 8.1
cmake 3.23.0
VS 2022
When running"python setup.py install" in local clone step , problems come up:

"D:\Visual Studio\VC\Tools\MSVC\14.34.31933\bin\HostX86\x64\link.exe" /nologo /INCREMENTAL:NO /LTCG /DLL /MANIFEST:EMBED,ID=2 /MANIFESTUAC:NO /LIBPATH:D:\Anaconda\envs\nerf2mesh\lib\site-packages\torch\lib "/LIBPATH:D:\CUDA\Files\NVIDIA GPU Computing Toolkit\CUDA\v11.6\lib/x64" /LIBPATH:D:\Anaconda\envs\nerf2mesh\libs /LIBPATH:D:\Anaconda\envs\nerf2mesh /LIBPATH:D:\Anaconda\envs\nerf2mesh\PCbuild\amd64 "/LIBPATH:D:\Visual Studio\VC\Tools\MSVC\14.34.31933\ATLMFC\lib\x64" "/LIBPATH:D:\Visual Studio\VC\Tools\MSVC\14.34.31933\lib\x64" "/LIBPATH:C:\Program Files (x86)\Windows Kits\10\lib\10.0.22000.0\ucrt\x64" "/LIBPATH:C:\Program Files (x86)\Windows Kits\10\lib\10.0.22000.0\um\x64" cuda.lib cudadevrt.lib cudart_static.lib c10.lib torch.lib torch_cpu.lib torch_python.lib cudart.lib c10_cuda.lib torch_cuda_cu.lib torch_cuda_cpp.lib /EXPORT:PyInit__C D:\tiny_cuda_nn\tiny-cuda-nn\bindings\torch\build\temp.win-amd64-cpython-310\Release../../src/common.obj D:\tiny_cuda_nn\tiny-cuda-nn\bindings\torch\build\temp.win-amd64-cpython-310\Release../../src/common_device.obj D:\tiny_cuda_nn\tiny-cuda-nn\bindings\torch\build\temp.win-amd64-cpython-310\Release../../src/cpp_api.obj D:\tiny_cuda_nn\tiny-cuda-nn\bindings\torch\build\temp.win-amd64-cpython-310\Release../../src/cutlass_mlp.obj D:\tiny_cuda_nn\tiny-cuda-nn\bindings\torch\build\temp.win-amd64-cpython-310\Release../../src/encoding.obj D:\tiny_cuda_nn\tiny-cuda-nn\bindings\torch\build\temp.win-amd64-cpython-310\Release../../src/fully_fused_mlp.obj D:\tiny_cuda_nn\tiny-cuda-nn\bindings\torch\build\temp.win-amd64-cpython-310\Release../../src/network.obj D:\tiny_cuda_nn\tiny-cuda-nn\bindings\torch\build\temp.win-amd64-cpython-310\Release\tinycudann/bindings.obj /OUT:build\lib.win-amd64-cpython-310\tinycudann_bindings_C.cp310-win_amd64.pyd /IMPLIB:D:\tiny_cuda_nn\tiny-cuda-nn\bindings\torch\build\temp.win-amd64-cpython-310\Release../../src_C.cp310-win_amd64.lib
正在创建库 D:\tiny_cuda_nn\tiny-cuda-nn\bindings\torch\build\temp.win-amd64-cpython-310\Release../../src_C.cp310-win_amd64.lib 和对象 D:\tiny_cuda_nn\tiny-cuda-nn\bindings\torch\build\temp.win-amd64-cpython-310\Release../../src_C.cp310-win_amd64.exp
bindings.obj : error LNK2001: unresolved external symbol _imp___tls_offset?init@?1??lazy_init_num_threads@internal@at@@yaxxz@4_NA
bindings.obj : error LNK2001: unresolved external symbol _imp___tls_index?init@?1??lazy_init_num_threads@internal@at@@yaxxz@4_NA
build\lib.win-amd64-cpython-310\tinycudann_bindings_C.cp310-win_amd64.pyd : fatal error LNK1120: 2 unresolved external commands
error: command 'D:\Visual Studio\VC\Tools\MSVC\14.34.31933\bin\HostX86\x64\link.exe' failed with exit code 1120
wrong

I hope someone can help. Thank you so much!

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

1 participant