티스토리 뷰
CUDA에 대해 알아보겠습니다.
GPU 가 있는 윈도우 환경이고 visual studio 2022, cuda 12.9 를 기반으로 진행합니다.
CUDA Toolkit 12.9 Update 1 Downloads
developer.nvidia.com
여기서 설치하면 됩니다.
설치가 된 후에는 아래 cuda sample 을 확인합니다.
https://github.com/NVIDIA/cuda-samples/tree/v12.9
GitHub - NVIDIA/cuda-samples at v12.9
Samples for CUDA Developers which demonstrates features in CUDA Toolkit - NVIDIA/cuda-samples
github.com
여기서 window 설치방법에는 cmake 를 활용하고 있습니다. 그래서 cmake를 설치해서 진행해보겠습니다.
Download CMake
You can either download binaries or source code archives for the latest stable or previous release or access the current development (aka nightly) distribution through Git. This software may not be exported in violation of any U.S. export laws or regulatio
cmake.org
참고로 visual studio 2022이기 때문에 명령어는 아래와 같이 수정해서 진행하시면 됩니다.
cmake .. -G "Visual Studio 17 2022" -A x64

결과는 아래와 같습니다. 일부는 리눅스 버전에서만 돌아서 빌드되지 않는 것들도 있습니다.
