RuntimeError: CUDA out of memory. Tried to allocate 1000.00 MiB (GPU 1; 23.69 GiB total capacity; 20.28 GiB already allocated; 909.75 MiB free; 20.85 GiB reserved in total by PyTorch) If reserved memory is >> allocated memory try setting max_split_size_mb to avoid fragmentation. See documentation for Memory Management and PYTORCH_CUDA_ALLOC_CONF
아! 메모리 에러! 제발!
리눅스에서 메모리 확인하는 방법
터미널에 free 명령어를 친다.
free
다음은 G로 표현되는 명령어다.
free -h
리눅스에서 GPU 확인하는 방법
watch nvidia-smi
'프로그래밍' 카테고리의 다른 글
[Linux] 리눅스 프로세스 죽이기(프로세스 kill 하는 법) (0) | 2023.06.09 |
---|---|
[Anaconda] 패키지를 설치 했는데 인식이 안 될 때 (아나콘다 환경 변수 설정/아나콘다 패키지 오류) (0) | 2023.06.05 |
[Git] 특정 branch만 clone 하는 방법 (깃 브랜치 하나만 클론하기/git branch clone) (0) | 2023.06.05 |
[Linux] linux 서버에 아나콘다 설치 (Ubuntu 아나콘다 설치) (0) | 2023.06.05 |
[Linux] scp | 로컬에서 서버로 파일 전송 (윈도우와 리눅스 간 파일 전송) (0) | 2023.06.02 |