근황 토크 및 자유게시판
[Cuda 11.8] unsupported Microsoft Visual Studio version!
scone
2025. 1. 27. 01:49
Error Message
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.8\include\crt/host_config.h(153): fatal error C1189: #error: -- unsupported Microsoft Visual Studio version! Only the versions between 2017 and 2022 (inclusive) are supported! The nvcc flag '-allow-unsupported-compiler' can be used to override this version check; however, using an unsupported host compiler may cause compilation failure or incorrect run time execution. Use at your own risk.
문제 상황
C++ 컴파일이 필요한 DinoGrounding을 설치하는 과정에서 build tool 버전이 안맞는다는 오류가 났다.
알고보니 Cuda 11.8은 Visual Build Tools 최신 버전인 17.10 을 인식하지 못하는 것.
Visual Build Tools 17.10 보다 낮은 버전을 설치하여 문제를 해결하고 싶었지만
더 이상 지원하지 않기 때문에, 일반적인 설치 화면에서는 버전 다운이 불가능했다.
그러던 중 디스코드에 이를 해결한 사람의 글을 발견하게 되었다.
문제 해결
아래 경로에서 VS Build Tools 17.8을 설치해주었다.
SDK를 제외한 나머지 전부를 같이 설치해주고
일단 GroundingDino의 설치는 잘 되었다.