tensorflow 학습을 GPU로 돌리려고 하니 VSCode 커널이 계속 죽는 문제가 발생하였다.
error 16:56:55.300: Disposing session as kernel process died ExitCode: 3221226505, Reason: c:\\Users\\y0010\\anaconda3\\envs\\CV2\\lib\\site-packages\\traitlets\\traitlets.py:2392: FutureWarning: Supporting extra quotes around strings is deprecated in traitlets 5.0. You can use 'hmac-sha256' instead of '"hmac-sha256"' if you require traitlets >=5.
warn(
c:\\Users\\y0010\\anaconda3\\envs\\CV2\\lib\\site-packages\\traitlets\\traitlets.py:2346: FutureWarning: Supporting extra quotes around Bytes is deprecated in traitlets 5.0. Use '5b3a69ad-bb15-4fcf-9417-58c368705aae' instead of 'b"5b3a69ad-bb15-4fcf-9417-58c368705aae"'
이 문제를 해결하기 위해 stackoverflow에 비슷한 사례들을 계속 서칭하였고,
몇번의 삽질을 반복하고 위의 답변을 따라했더니 해결이 되었다.
본인의 컴퓨터는 CUDA 11.5 version 이었고, 이에 맞는 cuDNN 8.4.1을 설치하였는데 이게 문제였다.
이 문제는 CUDA 11.5 version에 cuDNN 8.3.0 이상의 버전을 설치할 경우 발생하는 것이었고
Cuda version: 11.4 에 맞는 cuDNN version: 8.2.4 를 설치하니 문제가 해결되었다.
어이가 없는 트러블 슈팅이었다.
..................
tensorflow에서 문제를 해결했더니 이게 pytorch에서 문제가 생겼다.
cuDNN 버전을 건드렸더니 pytorch에서 GPU를 인식하지 못하는 문제가 발생.
반응형
'IT > TroubleShooting' 카테고리의 다른 글
[Window]Tensorflow, Pytorch 둘 다 호환되는 Nvidia Cuda설치 (0) | 2022.08.06 |
---|---|
Flask 환경설정 debug mode:on 설정문제 (0) | 2021.10.06 |
Error: Failed to find Flask application or factory in module 오류 (0) | 2021.10.06 |
Docker 재부팅시 자동실행 안되게 하는 방법 (0) | 2021.10.02 |
Docker Git-bash 에러 : the input device is not a TTY. If you are using mintty, try prefixing the command with 'winpty' (0) | 2021.09.30 |