본문 바로가기

CUDA4

Nvidia GPU dpkg dependency error CUDA 11.8과 520 드라이버 또는 525, 535 드라이버 관련해서설치 중 dependency error 가 발생하거나 부팅이 되지 않는 현상해결 정리 https://docs.nvidia.com/cuda/cuda-installation-guide-linux/index.html#network-repo-installation-for-ubuntu CUDA Installation Guide for LinuxThe installation instructions for the CUDA Toolkit on Linux. 13. Post-installation Actions The post-installation actions must be manually performed. These actions are sp.. 2024. 9. 19.
Ubuntu, torch-tensorrt 설치 및 사용 Ubuntu 20.04 Nvidia graphic driver version: 515.65.01 CUDA version: 11.6 Cudnn version: 8.4.1 1. 주의할점 pip 명령줄 한줄이면 설치가 되나, CUDA, cudnn, torch, torchivision, torchaudio, 그리고 마지막 torch-tensorrt 의 버전이 모두 맞아야 작동한다. 또한, 설치가 꼬였을때, torch, torchvision, torchaudio, torch-tensorrt 모두 지웠다가 새로 설치를 해야한다. (CUDA, cudnn은 그대로 둬도 된다) 2. torch 설치 현재 torch 1.13 버전이 배포되고 있으나, 에러가 발생하여 1.12.1 버전으로 진행 공식 링크(Previous P.. 2022. 11. 27.
Nvidia 그래픽 드라이버/CUDA/cudnn 설치 및 제거 Ubuntu 20.04 기준 Nvidia 그래픽 드라이버 삭제 sudo apt-get purge nvidia* sudo apt-get autoremove sudo apt-get autoclean CUDA 삭제 sudo rm -rf /usr/local/cuda* sudo apt-get --purge remove 'cuda*' sudo apt-get autoremove --purge 'cuda*' 제거 확인 #그래픽 드라이버 sudo dpkg -l|grep nvidia # CUDA sudo dpkg -l|grep cuda # 만약 설치된게 남았다면: sudo apt-get remove --purge 남은 찌꺼기 이름 이후 재부팅 Nvidia 그래픽 드라이버 설치 ubuntu-drivers devices 를 .. 2022. 11. 14.
WSL2, Nvidia GPU, CUDA 환경에서 super-resolution 모델 (SwinIR) 돌려보기 시스템 사양 (환경) CPU - i7-10700F Memory - 32GB Mainboard - MSI, B460M GPU - Geforce RTX 3060 Ti WSL - Ubuntu 20.04 WSL2 환경에서 Nvidia gpu를 (3060ti) 사용하여 SwinIR 이라는 모델로 super-resolution을 돌려보았다. SwinIR은 이전에 리뷰했던 super-resolution 모델과 달리 transformer 기반이라 따로 시도해 보았다. 먼저 AMD GPU를 이용한 DirectML로 구현을 해보고자 하였으나, DirectML의 pytorch에 attention 관련 함수들이 아직 완벽하게 구현되지 않아 코드를 돌릴수 없었던 관계로 결국, CUDA를 사용하였다. https://github... 2022. 7. 29.