04-30 12:17
Notice
Recent Posts
Recent Comments
관리 메뉴

Scientific Computing & Data Science

[CUDA] Tip / Visual Studio V11 (2012)에서 Platform Toolset 에러 발생 시 대처법 본문

Scientific Computing/NVIDIA CUDA

[CUDA] Tip / Visual Studio V11 (2012)에서 Platform Toolset 에러 발생 시 대처법

cinema4dr12 2014. 6. 11. 23:04

현재 CUDA 샘플 코드 프로젝트가 지원하는 Microsoft의 통합 개발환경 툴인 Visual Studio의 버전은 2008, 2010, 2012 세 가지를 지원한다.

샘플 프로젝트를 2008과 2010에서 열어 빌드하면 아무 에러가 발생하지 않는데 2012에서 열어 빌드하면 다음과 같은 에러가 발생할 것이다:

1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V110\BuildCustomizations\CUDA 6.0.targets(511,9): error : The Visual Studio 2013 platform toolset is not currently supported. Please change the Platform Toolset property in the VC++ project properties under Configuration Properties | General.


Visual Studio 2013 플랫폼 툴셋(platform toolset)이 현재 지원되지 않는다는 것인데, 이를 해결하는 방법은 간단하다.

우선 Solution Explorer에서 솔루션(프로젝트)를 선택한 상태에서 오른쪽 마우스를 클릭하여 Properties를 클릭한다.


Property Pages 창이 열리면 Configuration Properties > General > Platform Toolset을 Visual Studio 2010 (v100)으로 설정한다.


확인을 클릭하여 창을 닫은 후 솔루션을 빌드(Build)한다.

헤더, 라이브러리, DLL 파일 경로가 올바르게 설정되어 있다면 에러없이 성공적으로 빌드가 완료될 것이다.

빌드 완료되면 Platform Toolset을 Visual Studio 2012 (v110)으로 다시 변경한다.

재빌드(Rebuild)하면 역시 에러없이 성공적으로 빌드가 될 것이다.



Comments