When I tried to compile the energonai library, an error is reported:
D:\Anaconda3\lib\site-packages\torch\utils\cpp_extension.py:358: UserWarning: Error checking compiler version for cl: [WinError 2] 系统找不到指定的文件。 warnings.warn(f'Error checking compiler version for {compiler}: {error}') building 'energonai_scale_mask' extension Emitting ninja build file F:\Project\python\AI\EnergonAI-main\build\temp.win-amd64-cpython-38\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:\Anaconda3\lib\site-packages\torch\lib /LIBPATH:D:\Anaconda3\lib\x64 /LIBPATH:D:\Anaconda3\libs /LIBPATH:D:\Anaconda3 /LIBPATH:D:\Anaconda 3\PCbuild\amd64 "/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\10\lib\10.0.16299.0\ucrt\x64" "/LIBPATH:C:\Program Files (x86)\Windows Kits\10\lib\10.0.16299.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_energonai_scale_mask F:\Project\python\AI\EnergonAI-main\build\temp.win-amd64-cpython-38\Release\energonai/kernel/cuda_native/csrc\scale_mask_softmax_kernel.obj F:\Project\python\AI\EnergonAI-main\build\temp.win-amd64-cpython-38\Release\energonai/kernel/cuda_native/csrc\sca le_mask_softmax_wrapper.obj /OUT:build\lib.win-amd64-cpython-38\energonai_scale_mask.cp38-win_amd64.pyd /IMPLIB:F:\Project\python\AI\EnergonAI-main\build\temp.win-amd64-cpython-38\Release\energonai/kernel/cuda_native/csrc\energonai_scale_mask.cp38-win_amd64.lib LINK : fatal error LNK1181: 无法打开输入文件“F:\Project\python\AI\EnergonAI-main\build\temp.win-amd64-cpython-38\Release\energonai\kernel\cuda_native\csrc\scale_mask_softmax_kernel.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
This may be caused by the exception of the link library on the Windows platform when the .obj and .lib are specified.
Looking forward to reply!
When I tried to compile the energonai library, an error is reported:
D:\Anaconda3\lib\site-packages\torch\utils\cpp_extension.py:358: UserWarning: Error checking compiler version for cl: [WinError 2] 系统找不到指定的文件。 warnings.warn(f'Error checking compiler version for {compiler}: {error}') building 'energonai_scale_mask' extension Emitting ninja build file F:\Project\python\AI\EnergonAI-main\build\temp.win-amd64-cpython-38\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:\Anaconda3\lib\site-packages\torch\lib /LIBPATH:D:\Anaconda3\lib\x64 /LIBPATH:D:\Anaconda3\libs /LIBPATH:D:\Anaconda3 /LIBPATH:D:\Anaconda 3\PCbuild\amd64 "/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\10\lib\10.0.16299.0\ucrt\x64" "/LIBPATH:C:\Program Files (x86)\Windows Kits\10\lib\10.0.16299.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_energonai_scale_mask F:\Project\python\AI\EnergonAI-main\build\temp.win-amd64-cpython-38\Release\energonai/kernel/cuda_native/csrc\scale_mask_softmax_kernel.obj F:\Project\python\AI\EnergonAI-main\build\temp.win-amd64-cpython-38\Release\energonai/kernel/cuda_native/csrc\sca le_mask_softmax_wrapper.obj /OUT:build\lib.win-amd64-cpython-38\energonai_scale_mask.cp38-win_amd64.pyd /IMPLIB:F:\Project\python\AI\EnergonAI-main\build\temp.win-amd64-cpython-38\Release\energonai/kernel/cuda_native/csrc\energonai_scale_mask.cp38-win_amd64.lib LINK : fatal error LNK1181: 无法打开输入文件“F:\Project\python\AI\EnergonAI-main\build\temp.win-amd64-cpython-38\Release\energonai\kernel\cuda_native\csrc\scale_mask_softmax_kernel.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
This may be caused by the exception of the link library on the Windows platform when the .obj and .lib are specified. Looking forward to reply!