AssertionError: Torch not compiled with CUDA enabled

2024. 7. 29. 23:57·2024-여름
728x90

GPU와 Pytorch가 맞지 않아 생기는 오류로 내 GPU는 사용할 수 있는 종류였지만 에러가 사라지지 않았다.

https://developer.nvidia.com/cuda-gpus

 

CUDA GPUs - Compute Capability

Explore your GPU compute capability and CUDA-enabled products.

developer.nvidia.com

 

위 사이트에 들어간다. 자신이 사용하는 GPU 종류에 맞게 클릭해보면 지원 여부를 확인할 수 있다.

 

기존 torch를 삭제하고 재설치하는 코드다. 

pip uninstall torch
pip cache purge
pip install torch -f https://download.pytorch.org/whl/torch_stable.html

 또는

pip install torch===1.5.0 torchvision===0.6.0 -f https://download.pytorch.org/whl/torch_stable.html

 

처럼 torch를 다시 설치해주면 된다.

 

나는 안 된다...

728x90

'2024-여름' 카테고리의 다른 글

Defaulting to user installation because normal site-packages is not writeable  (0) 2024.07.30
UnicodeDecodeError: 'cp949' codec can't decode byte 0xec in position 9: illegal multibyte sequence  (0) 2024.07.29
ModuleNotFoundError: No module named ‘fastai.callback.all’; ‘fastai.callback’ is not a package  (0) 2024.07.29
IProgress not found. Please update jupyter and ipywidgets.  (0) 2024.07.29
pip install 오류 : This error might have occurred since this system does not have Windows Long Path support enabled.  (0) 2024.07.25
'2024-여름' 카테고리의 다른 글
  • Defaulting to user installation because normal site-packages is not writeable
  • UnicodeDecodeError: 'cp949' codec can't decode byte 0xec in position 9: illegal multibyte sequence
  • ModuleNotFoundError: No module named ‘fastai.callback.all’; ‘fastai.callback’ is not a package
  • IProgress not found. Please update jupyter and ipywidgets.
돌멩이수프
돌멩이수프
Information technology
  • 돌멩이수프
    WHAT DOES "IT" STAND FOR?
    돌멩이수프
  • 전체
    오늘
    어제
    • 분류 전체보기 (239)
      • 언어 (73)
        • html (3)
        • css (1)
        • java (6)
        • C (26)
        • C++ (2)
        • C# (29)
      • 공부 (7)
        • Unity (43)
        • 게임 서버 (26)
        • 네트워크 (5)
        • 데이터베이스 (7)
        • EFCore (19)
        • 기타 (14)
        • Git (5)
        • 운영체제 (1)
        • 소프트웨어공학 (21)
      • 2024-여름 (12)
      • 자기 관리 (4)
  • 블로그 메뉴

    • 홈
    • 태그
    • 방명록
  • 링크

  • 공지사항

  • 인기 글

  • 태그

    EFCore
    C
    라즈베리파이
    tcp
    C#
    백준
    java
    Python
    디자인패턴
    자바
    EntityFramework
    게임서버
    코딩
    HTML
    네트워크
    Entityfamework
    unity
    C언어
    coding
    유니티
  • 최근 댓글

  • 최근 글

  • hELLO· Designed By정상우.v4.10.2
돌멩이수프
AssertionError: Torch not compiled with CUDA enabled
상단으로

티스토리툴바