hyunjin

Error in using cuda (ValueError: Expected a cuda device with a specified index or an integer, but got: ) 본문

개인 공부/환경세팅

Error in using cuda (ValueError: Expected a cuda device with a specified index or an integer, but got: )

_h.j 2022. 3. 3. 19:52
728x90

BaRF를 서버컴에서 실행하니 다음과 같은 에러 발생

코드 따라가 보니

true가 나와야함. 이유가 뭐지

python 버전이 현재는 3.9인데 3.7로 가상 환경 다시 만들어보자

 

python과 cuda 사이 호환 버전 정리 페이지

내가 사용 중인 PC cud 10.2 이므로 python 버전 저 범위 내에서 설치해야겠다.

 

 

참고

https://discuss.pytorch.org/t/error-in-using-cuda-valueerror-expected-a-cuda-device-with-a-specified-index-or-an-integer-but-got/99027

 

 

728x90

'개인 공부 > 환경세팅' 카테고리의 다른 글

visdom port  (0) 2022.03.04
우분투 가상환경 관련 명령어, pytorch cuda python 호환 버전  (0) 2022.03.03
우분투 18.04 vscode 설치  (0) 2022.02.26
ubuntu server 접속  (0) 2022.02.26
Tensorboard 사용법 익히기  (0) 2021.12.17