처음엔 CUDA도 설치를 제대로 못해서 CUDA 설치하는것도 되게 어려워했다.
막상 설치 해보려고 나니 CUDA 설치하는것은 되게 단순하다
이번에는 CUDA 설치하는 법에대해서 빠르게 알아보자!
먼저 CUDA 설치전에 꼭 다운로드 받아야 하는것이있다. 이것만 설치하고가자
(설치하지않으면 install중 Error가 발생한다)
apt install libxml2
그다음 이제 본격적으로 CUDA를 설치해보자!
먼저 CUDA archive를 가서 자기가 원하는 버전을 설치해보자
https://developer.nvidia.com/cuda-toolkit-archive
CUDA Toolkit Archive
Previous releases of the CUDA Toolkit, GPU Computing SDK, documentation and developer drivers can be found using the links below. Please select the release you want from the list below, and be sure to check www.nvidia.com/drivers for more recent production
developer.nvidia.com
여기 링크에 접속하면 바로 CUDA 툴킷을 받을수있다. 해당 링크에서도 친절하게 설명을 하고있지만 여기서도 한번 설명하고 가려고한다
먼저 가장 빠른방법으로 wget을이용해서 설치하였다
내가 필요한 버전은 CUDA 11.0.2 였다
wget http://developer.download.nvidia.com/compute/cuda/11.0.2/local_installers/cuda_11.0.2_450.51.05_linux.run
sudo sh cuda_11.0.2_450.51.05_linux.run
여기서
install 이 진행되는데 install 화면에서 NVIDIA Driver 항목은 제외시켜도된다!
그렇게 한후 install 을 엔터키 누른후
그다음 화면에서 All Upgrade 엔터키눌러주면
install이 진행된다.
보시다싶이 너무 간단하다!