배움 - 차근차근 기록하자/[개발] 딥러닝 🍩

[Pytorch] Libtorch 1.9.1의 Visual Studio 2015 빌드 실패

직장인 조모씨 2024. 9. 10. 16:13
728x90
반응형

이슈: Libtorch 1.9.1의 Visual Studio 2015 빌드 실패

환경

  • 테스트: Windows 11 / Visual Studio 2015 / Libtorch 1.9.1
  • Inference Library 빌드 환경: Windows 10 / Visual Studio 2019 / Libtorch 1.9.1
문제 Libtorch 1.9.1이 Visual Studio 2015에서 빌드되지 않음.
상세 Visual Studio 2019에서 빌드된 Inference Library를 AI Tool에서 테스트하려 했으나, Visual Studio 2015로 빌드 시 컴파일 오류 발생.
원인 Libtorch 1.9.1은 C++14 이상의 컴파일러 환경이 필요하나, Visual Studio 2015는 C++14를 불완전하게 지원.
해결 Visual Studio 2019에서는 정상 빌드 확인. VS2017 이상으로 업그레이드 필요.
 
 


기록들...

 

 


vs2015 가 지원하는 c++ 버전의 libtorch 일정 버전 이상에서 요구하는 c++ 버전에 못미치기 때문에 문제가 발생하는 듯...

 

https://github.com/pytorch/pytorch/issues/48165

 

Libtorch 1.7,1.6, 1.5 did not work on visual studio 2015 · Issue #48165 · pytorch/pytorch

🐛 Bug Hi Guys: I try to run libtorch 1.7 on visual studio 2015, as your website recommends and solution was created by following CMake from pytorch.org website. I encounter 102 errors and have no c...

github.com

 

 


https://github.com/pytorch/pytorch/issues/33333

 

windows10 + Vs2015,Compiling libtorch1.4 failed · Issue #33333 · pytorch/pytorch

I downloaded the Release version of libtorch1.4, and built the project through cmake on win10, Vs2015. When generating a solution, the following error is prompted. Has anyone encountered this kind ...

github.com


https://github.com/pytorch/pytorch/issues/21768

 

compile error when using Libtorch 1.1 on windows 7 vs2015 · Issue #21768 · pytorch/pytorch

❓ Questions and Help I followed the guidence from pytorch.org to make a project which recall the libtorch using Vs2015. Cuda version 8.0 cudnn 7.0 libtorch version 1.1 but when i compile the projec...

github.com

Update3 설치?

https://go.microsoft.com/fwlink/?LinkId=691129

 

 

728x90
반응형