ashawkey / torch-ngp

A pytorch CUDA extension implementation of instant-ngp (sdf and nerf), with a GUI.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

LNK1181

sunmingyang666 opened this issue · comments

:\LeStoreDownload\anaconda\envs\Radnerf\lib\site-packages\torch\utils\cpp_extension.py:813: UserWarning: The detected CUDA version (11.6) has a minor version mismatch with the version that was used to compile PyTorch (11.3). Most likely this shouldn't be a problem.
        warnings.warn(CUDA_MISMATCH_WARN.format(cuda_str_version, torch.version.cuda))
      building '_freqencoder' extension
      Emitting ninja build file D:\github\RAD-NeRF\freqencoder\build\temp.win-amd64-cpython-39\Release\build.ninja...
      Compiling objects...
      Allowing ninja to set a default number of workers... (overridable by setting the environment variable MAX_JOBS=N)
      1.11.1.git.kitware.jobserver-1
      "C:\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:D:\LeStoreDownload\anaconda\envs\Radnerf\lib\site-packages\torch\lib "/LIBPATH:C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.6\lib/x64" /LIBPATH:D:\LeStoreDownload\anaconda\envs\Radnerf\libs /LIBPATH:D:\LeStoreDownload\anaconda\envs\Radnerf /LIBPATH:D:\LeStoreDownload\anaconda\envs\Radnerf\PCbuild\amd64 "/LIBPATH:C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30133\ATLMFC\lib\x64" "/LIBPATH:C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30133\lib\x64" "/LIBPATH:C:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\lib\um\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" 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__freqencoder D:\github\RAD-NeRF\freqencoder\build\temp.win-amd64-cpython-39\Release\github\RAD-NeRF\freqencoder\src\bindings.obj D:\github\RAD-NeRF\freqencoder\build\temp.win-amd64-cpython-39\Release\github\RAD-NeRF\freqencoder\src\freqencoder.obj /OUT:build\lib.win-amd64-cpython-39\_freqencoder.cp39-win_amd64.pyd /IMPLIB:D:\github\RAD-NeRF\freqencoder\build\temp.win-amd64-cpython-39\Release\github\RAD-NeRF\freqencoder\src\_freqencoder.cp39-win_amd64.lib
      LINK : fatal error LNK1181: 无法打开输入文件“D:\github\RAD-NeRF\freqencoder\build\temp.win-amd64-cpython-39\Release\github\RAD-NeRF\freqencoder\src\bindings.obj”
      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 1181

how can i fix it?

我也是,所以你现在解决了吗

commented

我也遇到了这个问题,请问是怎么解决的?